:root {
  --ink: #07100d;
  --ink-2: #0e1813;
  --ink-3: #15231b;
  --bamboo: #d6a95b;
  --bamboo-bright: #f2d08b;
  --green: #7fa456;
  --green-deep: #314d35;
  --porcelain: #f7f1de;
  --paper: #efe2bf;
  --muted: #a9b09e;
  --line: rgba(214, 169, 91, 0.32);
  --glass: rgba(10, 18, 14, 0.72);
  --glass-soft: rgba(247, 241, 222, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  color-scheme: dark;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 4%, rgba(214, 169, 91, 0.14), transparent 28rem),
    linear-gradient(180deg, #050906 0%, #101a13 42%, #07100d 100%);
  color: var(--porcelain);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.11;
  background-image:
    linear-gradient(110deg, transparent 0 45%, rgba(240, 202, 124, 0.44) 46% 47%, transparent 48% 100%),
    linear-gradient(18deg, transparent 0 46%, rgba(125, 160, 82, 0.34) 47% 48%, transparent 49% 100%);
  background-size: 76px 76px, 58px 58px;
  filter: blur(0.1px);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.cursor-halo {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  width: 220px;
  height: 220px;
  pointer-events: none;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(242, 208, 139, 0.18), transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 180ms ease;
}

.thread-trail {
  position: fixed;
  inset: 0;
  z-index: 16;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.86;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 13px 18px;
  color: rgba(247, 241, 222, 0.88);
  border: 1px solid rgba(214, 169, 91, 0.26);
  background: rgba(5, 9, 6, 0.46);
  backdrop-filter: blur(18px);
}

.transition-loom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  pointer-events: none;
  visibility: hidden;
}

.transition-loom span {
  transform: translateY(-104%) scaleY(0.08);
  transform-origin: top;
  background:
    linear-gradient(90deg, rgba(247, 241, 222, 0.08), transparent 42%, rgba(5, 9, 6, 0.34)),
    linear-gradient(180deg, rgba(214, 169, 91, 0.92), rgba(68, 93, 47, 0.88) 58%, rgba(5, 9, 6, 0.98));
  box-shadow: inset -1px 0 rgba(247, 241, 222, 0.18), inset 1px 0 rgba(5, 9, 6, 0.32);
}

.transition-loom.is-active,
.transition-loom.is-intro {
  visibility: visible;
}

.transition-loom.is-active span {
  animation: loom-sweep 980ms cubic-bezier(0.75, 0, 0.18, 1) forwards;
  animation-delay: calc(var(--i) * 24ms);
}

.transition-loom.is-intro span {
  animation: loom-intro 1180ms cubic-bezier(0.74, 0, 0.18, 1) forwards;
  animation-delay: calc(var(--i) * 32ms);
}

@keyframes loom-sweep {
  0% {
    transform: translateY(-104%) scaleY(0.08);
  }
  42% {
    transform: translateY(0) scaleY(1);
  }
  100% {
    transform: translateY(104%) scaleY(0.96);
  }
}

@keyframes loom-intro {
  0% {
    transform: translateY(0) scaleY(1);
  }
  100% {
    transform: translateY(104%) scaleY(0.96);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 128px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--bamboo);
  background:
    linear-gradient(90deg, transparent 0 39%, var(--bamboo) 40% 46%, transparent 47% 100%),
    linear-gradient(0deg, transparent 0 39%, var(--green) 40% 46%, transparent 47% 100%);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 52px);
  font-size: 15px;
  color: rgba(247, 241, 222, 0.76);
}

.site-nav a {
  position: relative;
  padding: 7px 0;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--bamboo-bright);
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 13px;
  color: var(--porcelain);
  border: 1px solid rgba(214, 169, 91, 0.42);
  background: rgba(214, 169, 91, 0.08);
  cursor: pointer;
}

.sound-icon {
  width: 14px;
  height: 14px;
  border: 1px solid var(--bamboo);
  background: linear-gradient(90deg, var(--bamboo) 0 38%, transparent 38%);
}

.sound-toggle[aria-pressed="true"] {
  background: rgba(214, 169, 91, 0.22);
  color: var(--bamboo-bright);
}

body.has-sound .sound-icon {
  animation: sound-pulse 1100ms ease-in-out infinite;
}

@keyframes sound-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(242, 208, 139, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(242, 208, 139, 0.58);
  }
}

.section {
  position: relative;
  scroll-margin-top: 96px;
  min-height: 100vh;
  padding: 112px clamp(24px, 5vw, 76px) 76px;
}

.hero {
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: 960px;
  padding-top: 116px;
}

.hero-media,
.hero-shade,
.hero-canvas {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -3;
  background-image: url("./assets/hands.png");
  background-position: center right;
  background-size: cover;
  filter: saturate(0.88) contrast(1.02);
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 9, 6, 0.98) 0%, rgba(5, 9, 6, 0.82) 28%, rgba(5, 9, 6, 0.28) 67%, rgba(5, 9, 6, 0.86) 100%),
    linear-gradient(180deg, rgba(5, 9, 6, 0.12) 0%, rgba(5, 9, 6, 0.76) 84%, #07100d 100%);
}

.hero-canvas {
  z-index: -1;
  opacity: 0.72;
}

.hero-inner {
  max-width: 720px;
  padding-top: 40px;
}

.course {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
}

.hero h1 {
  margin: 0;
  font-size: clamp(76px, 10vw, 154px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--bamboo-bright);
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.46);
}

.hero-line {
  margin: 24px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: var(--green);
}

.hero-copy {
  max-width: 640px;
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 1.9;
  color: rgba(247, 241, 222, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.primary-btn,
.secondary-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid rgba(214, 169, 91, 0.58);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.primary-btn::before,
.secondary-btn::before {
  content: "";
  position: absolute;
  inset: -50% auto -50% -70%;
  width: 46%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 245, 205, 0.48), transparent);
  opacity: 0;
}

.primary-btn {
  color: #251608;
  background: linear-gradient(135deg, #f2d08b, #bd8330);
  box-shadow: 0 12px 28px rgba(189, 131, 48, 0.24);
}

.secondary-btn {
  color: var(--porcelain);
  background: rgba(247, 241, 222, 0.04);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
  border-color: var(--bamboo-bright);
}

.primary-btn:hover::before,
.secondary-btn:hover::before {
  opacity: 1;
  animation: button-shine 780ms ease forwards;
}

@keyframes button-shine {
  to {
    left: 128%;
  }
}

.compact {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.heritage-tag {
  position: absolute;
  right: 34px;
  top: 154px;
  display: grid;
  gap: 14px;
  writing-mode: vertical-rl;
  color: rgba(247, 241, 222, 0.72);
  font-size: 15px;
  letter-spacing: 0.18em;
}

.heritage-tag span:last-child {
  color: var(--bamboo);
}

.hero-cards {
  position: absolute;
  right: clamp(26px, 6vw, 112px);
  bottom: 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(128px, 1fr));
  gap: 12px;
  max-width: 680px;
}

.hero-card {
  position: relative;
  height: 96px;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(214, 169, 91, 0.28);
  color: var(--porcelain);
  background: rgba(5, 9, 6, 0.48);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-card span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  font-size: 15px;
  font-weight: 700;
}

.hero-card:hover img,
.hero-card.is-active img {
  opacity: 0.82;
  transform: scale(1.05);
}

.hero-card.is-active {
  border-color: var(--green);
}

.hero-card:hover {
  transform: translateY(-6px) rotateX(3deg);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.section-heading {
  max-width: 620px;
  margin-bottom: 42px;
}

.section-heading.wide {
  max-width: 920px;
}

.story .section-heading {
  max-width: 820px;
}

.section-heading span,
.exhibit-copy span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}

.section-heading h2,
.exhibit-copy h2,
.closing-content h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.06;
  letter-spacing: 0;
}

.story {
  background:
    linear-gradient(180deg, rgba(7, 16, 13, 0) 0%, rgba(12, 22, 16, 0.92) 18%, rgba(12, 22, 16, 0.98) 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  grid-template-areas:
    "copy photo"
    "value photo";
  gap: 30px 52px;
  align-items: end;
}

.story-copy {
  grid-area: copy;
  max-width: 580px;
}

.story-copy h3 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.18;
  color: var(--bamboo-bright);
}

.story-copy p,
.process-detail p,
.exhibit-copy p,
.closing-content p,
.archive-card p {
  color: rgba(247, 241, 222, 0.76);
  line-height: 1.8;
  font-size: 18px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--bamboo-bright);
  border-bottom: 1px solid var(--bamboo);
}

.story-photo {
  grid-area: photo;
}

.layered-photo {
  position: relative;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(247, 241, 222, 0.06);
  box-shadow: var(--shadow);
}

.layered-photo img {
  width: 100%;
  height: clamp(330px, 45vw, 540px);
  object-fit: cover;
  filter: sepia(0.16) saturate(0.9);
}

.layered-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.value-panel {
  grid-area: value;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: rgba(5, 9, 6, 0.36);
}

.value-panel div {
  padding: 24px;
  min-height: 142px;
  border-right: 1px solid rgba(214, 169, 91, 0.18);
}

.value-panel div:last-child {
  border-right: 0;
}

.value-panel strong {
  display: block;
  margin-bottom: 12px;
  color: var(--bamboo-bright);
  font-size: 34px;
  line-height: 1;
}

.value-panel span {
  color: rgba(247, 241, 222, 0.72);
  line-height: 1.55;
}

.process {
  background:
    linear-gradient(180deg, rgba(12, 22, 16, 0.98), rgba(7, 16, 13, 0.96)),
    url("./assets/research-board.png") center / cover fixed;
}

.process-stage {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(320px, 0.5fr);
  gap: 44px;
  align-items: stretch;
}

.process-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.process-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(242, 208, 139, 0.34), transparent);
  pointer-events: none;
}

.process-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.process-stage.is-switching .process-visual::before {
  animation: process-slit 760ms ease forwards;
}

.process-stage.is-switching #process-image {
  animation: process-image-settle 620ms ease both;
}

@keyframes process-slit {
  to {
    transform: translateX(128%) skewX(-18deg);
  }
}

@keyframes process-image-settle {
  0% {
    filter: saturate(0.7) brightness(0.72);
    transform: scale(1.035);
  }
  100% {
    filter: saturate(1) brightness(1);
    transform: scale(1);
  }
}

.process-overlay {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-grid;
  gap: 8px;
  padding: 18px 22px;
  background: rgba(5, 9, 6, 0.68);
  border: 1px solid rgba(214, 169, 91, 0.38);
  backdrop-filter: blur(14px);
}

.process-overlay span {
  color: var(--bamboo);
  font-size: 24px;
  font-weight: 800;
}

.process-overlay strong {
  font-size: 30px;
}

.process-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-detail p:first-child {
  color: var(--porcelain);
  font-size: 28px;
  line-height: 1.5;
}

.process-note {
  margin-top: 26px;
  color: var(--bamboo-bright) !important;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.process-node {
  position: relative;
  overflow: hidden;
  min-height: 86px;
  color: rgba(247, 241, 222, 0.78);
  border: 0;
  background: rgba(5, 9, 6, 0.72);
  cursor: pointer;
  font-size: 20px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.process-node::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  opacity: 0.64;
  transition: transform 220ms ease;
}

.process-node:hover,
.process-node.is-active {
  color: #1f1608;
  background: var(--bamboo);
}

.process-node:hover::after,
.process-node.is-active::after {
  transform: scaleX(1);
}

.lab {
  background:
    linear-gradient(180deg, #07100d 0%, #0e1912 100%);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: rgba(247, 241, 222, 0.04);
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 25px 28px;
  border-right: 1px solid rgba(214, 169, 91, 0.18);
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(242, 208, 139, 0.1), transparent);
}

.metric:hover::before {
  animation: metric-scan 800ms ease forwards;
}

@keyframes metric-scan {
  to {
    transform: translateX(100%);
  }
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  color: var(--bamboo-bright);
  font-size: 42px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 12px;
  color: rgba(247, 241, 222, 0.72);
  line-height: 1.4;
}

.lab-workbench {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr) 190px;
  gap: 24px;
  align-items: start;
}

.lab-controls,
.pattern-frame,
.lab-actions {
  border: 1px solid var(--line);
  background: rgba(247, 241, 222, 0.05);
}

.lab-controls {
  display: grid;
  gap: 18px;
  padding: 26px;
  align-content: start;
}

.lab-controls label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  color: var(--porcelain);
}

.lab-controls label span {
  font-size: 16px;
  font-weight: 700;
}

.lab-controls output {
  color: var(--bamboo-bright);
  font-weight: 800;
}

input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--bamboo);
}

.shape-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 4px;
}

.shape-option {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid rgba(247, 241, 222, 0.18);
  background: rgba(5, 9, 6, 0.42);
  color: rgba(247, 241, 222, 0.76);
  cursor: pointer;
  text-align: left;
}

.shape-option:last-child {
  grid-column: 1 / -1;
}

.shape-option span {
  font-size: 16px;
  font-weight: 800;
}

.shape-option small {
  color: rgba(247, 241, 222, 0.5);
  font-size: 12px;
}

.shape-option:hover,
.shape-option.is-active {
  border-color: rgba(242, 208, 139, 0.86);
  background: linear-gradient(135deg, rgba(242, 208, 139, 0.18), rgba(127, 164, 86, 0.08));
  color: var(--porcelain);
}

.shape-option.is-active small {
  color: var(--bamboo-bright);
}

.palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.swatch {
  height: 46px;
  border: 1px solid rgba(247, 241, 222, 0.22);
  cursor: pointer;
}

.swatch[data-palette="classic"] {
  background: linear-gradient(90deg, #d8b76a, #f2deb0, #7fa456);
}

.swatch[data-palette="green"] {
  background: linear-gradient(90deg, #273f2b, #8fb065, #e8c476);
}

.swatch[data-palette="night"] {
  background: linear-gradient(90deg, #0b0f0c, #d49b45, #693c1f);
}

.swatch.is-active {
  outline: 2px solid var(--bamboo-bright);
  outline-offset: 3px;
}

.pattern-frame {
  position: relative;
  overflow: hidden;
  height: min(48vw, 640px);
  min-height: 520px;
  padding: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(214, 169, 91, 0.13), transparent 34rem),
    linear-gradient(180deg, rgba(5, 9, 6, 0.96), rgba(8, 15, 11, 1));
}

.pattern-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(242, 208, 139, 0.2) 47% 49%, transparent 50%),
    linear-gradient(0deg, transparent 0 46%, rgba(127, 164, 86, 0.18) 47% 49%, transparent 50%);
  background-size: 56px 56px;
}

.loom-flash {
  position: absolute;
  inset: 0;
  z-index: 6;
  transform: translateX(-118%);
  background: linear-gradient(90deg, transparent, rgba(255, 238, 176, 0.26), transparent);
  pointer-events: none;
}

.weft-shuttle {
  position: absolute;
  z-index: 7;
  left: 0;
  top: 50%;
  width: 92px;
  height: 16px;
  transform: translate(-120%, -50%);
  border-radius: 999px;
  background:
    radial-gradient(circle at 12px 50%, #f7e0a2 0 8px, transparent 9px),
    linear-gradient(90deg, rgba(242, 208, 139, 0), rgba(242, 208, 139, 0.86), rgba(105, 60, 31, 0.22));
  box-shadow: 0 0 26px rgba(242, 208, 139, 0.42);
  pointer-events: none;
  opacity: 0;
}

.pattern-frame.is-weaving .loom-flash {
  animation: loom-flash 760ms ease forwards;
}

.pattern-frame.is-weaving .weft-shuttle {
  animation: shuttle-pass 960ms cubic-bezier(0.16, 0.82, 0.28, 1) forwards;
}

.pattern-frame.is-saved {
  box-shadow: 0 0 0 1px rgba(242, 208, 139, 0.62), 0 0 38px rgba(242, 208, 139, 0.18);
}

@keyframes loom-flash {
  to {
    transform: translateX(118%);
  }
}

@keyframes shuttle-pass {
  0% {
    opacity: 0;
    transform: translate(-120%, -50%);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(100vw + 120px), -50%);
  }
}

#pattern-canvas {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  width: 168px;
  height: 96px;
  min-height: 0;
  background: #101810;
  border: 1px solid rgba(242, 208, 139, 0.36);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(247, 241, 222, 0.08);
}

#basket-canvas {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.object-readout {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.object-readout span {
  padding: 7px 10px;
  color: var(--bamboo-bright);
  border: 1px solid rgba(242, 208, 139, 0.38);
  background: rgba(5, 9, 6, 0.62);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.lab-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  padding: 20px;
}

.lab-actions p {
  margin: 8px 0 0;
  color: rgba(247, 241, 222, 0.68);
  font-size: 14px;
  line-height: 1.55;
}

.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.55fr);
  gap: 44px;
  align-items: center;
  background: #050906;
}

.exhibit-image {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.exhibit-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.exhibit-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 9, 6, 0.4), rgba(5, 9, 6, 0.04));
}

.scan-line {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--bamboo-bright), transparent);
  box-shadow: 0 0 34px rgba(242, 208, 139, 0.8);
}

.ar-hud {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.ar-hud span {
  width: max-content;
  padding: 8px 12px;
  color: var(--bamboo-bright);
  border: 1px solid rgba(242, 208, 139, 0.42);
  background: rgba(5, 9, 6, 0.62);
  box-shadow: 0 0 22px rgba(242, 208, 139, 0.1);
  backdrop-filter: blur(12px);
}

.exhibit-image.is-scanning .ar-hud {
  opacity: 1;
  transform: translateY(0);
}

.exhibit-image.is-scanning .scan-line {
  opacity: 1;
  animation: scan 2.4s linear infinite;
}

@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(620px);
  }
}

#ar-canvas {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 240ms ease;
}

.exhibit-image.is-scanning #ar-canvas {
  opacity: 0.86;
}

.exhibit.is-armed .exhibit-copy h2 {
  color: var(--bamboo-bright);
  text-shadow: 0 0 24px rgba(242, 208, 139, 0.18);
}

.exhibit-copy {
  max-width: 460px;
}

.scan-status {
  color: var(--bamboo-bright) !important;
  font-size: 15px !important;
}

.archive {
  background:
    linear-gradient(180deg, #07100d 0%, #101a13 100%);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.archive-card {
  border: 1px solid var(--line);
  background: rgba(247, 241, 222, 0.05);
  overflow: hidden;
}

.archive-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.archive-card h3 {
  margin: 24px 24px 8px;
  font-size: 28px;
  color: var(--bamboo-bright);
}

.archive-card p {
  margin: 0 24px 28px;
  font-size: 17px;
}

.closing {
  min-height: 76vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.closing-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("./assets/weave-lab.png") center / cover;
  opacity: 0.42;
}

.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 9, 6, 0.96), rgba(5, 9, 6, 0.54));
}

.closing-content {
  max-width: 820px;
}

.closing-content p {
  max-width: 660px;
}

.scroll-dots {
  position: fixed;
  left: 28px;
  top: 50%;
  z-index: 18;
  display: grid;
  gap: 15px;
  transform: translateY(-50%);
}

.scroll-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(247, 241, 222, 0.32);
}

.scroll-dots span.is-active {
  outline: 1px solid var(--bamboo);
  outline-offset: 6px;
  background: var(--bamboo);
}

.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  filter: blur(8px);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 760ms ease var(--reveal-delay, 0ms),
    transform 760ms ease var(--reveal-delay, 0ms),
    filter 760ms ease var(--reveal-delay, 0ms),
    clip-path 900ms cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

.section.is-current .section-heading h2 {
  text-shadow: 0 0 28px rgba(242, 208, 139, 0.12);
}

@media (max-width: 1080px) {
  .site-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    min-height: 860px;
  }

  .hero-cards {
    left: 24px;
    right: 24px;
    grid-template-columns: repeat(2, 1fr);
  }

  .heritage-tag {
    display: none;
  }

  .story-grid,
  .process-stage,
  .exhibit {
    grid-template-columns: 1fr;
  }

  .lab-workbench {
    grid-template-columns: 1fr;
  }

  .shape-switcher {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .shape-option,
  .shape-option:last-child {
    grid-column: auto;
  }

  .pattern-frame,
  #basket-canvas {
    height: 520px;
    min-height: 520px;
  }

  .lab-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

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

@media (max-width: 720px) {
  .section {
    padding: 92px 18px 56px;
  }

  .site-header {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .brand {
    min-width: 0;
  }

  .sound-label {
    display: none;
  }

  .hero {
    min-height: 880px;
  }

  .hero h1 {
    font-size: clamp(58px, 19vw, 86px);
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
    bottom: 20px;
  }

  .hero-card {
    height: 78px;
  }

  .value-panel,
  .metrics-row {
    grid-template-columns: 1fr;
  }

  .value-panel div,
  .metric {
    border-right: 0;
    border-bottom: 1px solid rgba(214, 169, 91, 0.18);
  }

  .process-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-node {
    min-height: 64px;
  }

  .lab-controls {
    padding: 22px;
  }

  .shape-switcher {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
    margin-right: -4px;
  }

  .shape-option {
    min-height: 54px;
    padding: 9px 10px;
  }

  .pattern-frame,
  #basket-canvas {
    height: 420px;
    min-height: 420px;
  }

  #pattern-canvas {
    right: 12px;
    bottom: 12px;
    width: 126px;
    height: 72px;
  }

  .object-readout {
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 160px);
  }

  .object-readout span {
    padding: 6px 8px;
    font-size: 12px;
  }

  .exhibit-image,
  .exhibit-image img {
    min-height: 420px;
    height: 420px;
  }

  .scroll-dots,
  .cursor-halo {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
