/* ============================================
   ORVIO.BOND — Digital Archive of Bonds
   Deep Ink + Gold Thread Theme
   ============================================ */

:root {
  --deep-ink: #121826;
  --gold-thread: #D4AF37;
  --soft-paper: #F7F3EA;
  --text-primary: #1A1A1A;
  --muted-steel: #6C7A89;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-soft: rgba(212, 175, 55, 0.12);
  --ink-soft: rgba(18, 24, 38, 0.85);

  --font-heading: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Source Sans 3', system-ui, sans-serif;

  --transition-soft: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-glow: 0.8s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-primary);
  background: var(--soft-paper);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--gold-thread);
  color: var(--deep-ink);
  text-decoration: none;
  font-weight: 500;
  border-radius: 2px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   SECTION BASE
   ============================================ */

.section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.section--dark {
  background: var(--deep-ink);
  color: var(--soft-paper);
}

.section--paper {
  background: var(--soft-paper);
  color: var(--text-primary);
}

.section canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================
   FLOATING THREAD NAVIGATION
   ============================================ */

.thread-nav {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9000;
}

.thread-nav__trigger {
  position: relative;
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thread-nav__thread {
  display: block;
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--gold-thread), transparent);
  border-radius: 1px;
  box-shadow: 0 0 12px var(--gold-glow);
  transition: transform var(--transition-soft), height var(--transition-soft);
}

.thread-nav__trigger:hover .thread-nav__thread,
.thread-nav__trigger:focus-visible .thread-nav__thread {
  height: 40px;
  box-shadow: 0 0 20px var(--gold-glow);
}

.thread-nav__trigger:focus-visible {
  outline: 2px solid var(--gold-thread);
  outline-offset: 4px;
  border-radius: 50%;
}

.thread-nav__menu {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  width: 280px;
  height: 280px;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-soft);
}

.thread-nav__menu[aria-hidden="false"],
.thread-nav__menu:not([hidden]) {
  pointer-events: auto;
  opacity: 1;
}

.thread-nav.is-open .thread-nav__thread {
  height: 48px;
  transform: rotate(45deg);
}

.thread-nav__network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.thread-nav__ring {
  stroke: var(--gold-thread);
  stroke-width: 0.5;
  opacity: 0.3;
  stroke-dasharray: 4 8;
  animation: ringRotate 60s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); transform-origin: center; }
}

.thread-nav__nodes {
  list-style: none;
  position: absolute;
  inset: 0;
}

.thread-nav__nodes li {
  position: absolute;
  top: 50%;
  left: 50%;
}

.thread-nav__nodes a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gold-thread);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  transition: color var(--transition-soft), text-shadow var(--transition-glow);
  position: relative;
}

.thread-nav__nodes a::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold-thread);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform var(--transition-soft), opacity var(--transition-soft);
  box-shadow: 0 0 8px var(--gold-glow);
}

.thread-nav__nodes a:hover,
.thread-nav__nodes a:focus-visible {
  color: var(--soft-paper);
  text-shadow: 0 0 12px var(--gold-glow);
  outline: none;
}

.thread-nav__nodes a:hover::before,
.thread-nav__nodes a:focus-visible::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Radial node positions */
.thread-nav.is-open .thread-nav__nodes li:nth-child(1) { transform: translate(calc(-50% + 0px), calc(-50% - 110px)); }
.thread-nav.is-open .thread-nav__nodes li:nth-child(2) { transform: translate(calc(-50% + 95px), calc(-50% - 55px)); }
.thread-nav.is-open .thread-nav__nodes li:nth-child(3) { transform: translate(calc(-50% + 95px), calc(-50% + 55px)); }
.thread-nav.is-open .thread-nav__nodes li:nth-child(4) { transform: translate(calc(-50% + 0px), calc(-50% + 110px)); }
.thread-nav.is-open .thread-nav__nodes li:nth-child(5) { transform: translate(calc(-50% - 95px), calc(-50% + 55px)); }
.thread-nav.is-open .thread-nav__nodes li:nth-child(6) { transform: translate(calc(-50% - 95px), calc(-50% - 55px)); }

.thread-nav__nodes li {
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.thread-nav.is-open .thread-nav__nodes li {
  opacity: 1;
}

.thread-nav.is-open .thread-nav__nodes li:nth-child(1) { transition-delay: 0.05s; }
.thread-nav.is-open .thread-nav__nodes li:nth-child(2) { transition-delay: 0.1s; }
.thread-nav.is-open .thread-nav__nodes li:nth-child(3) { transition-delay: 0.15s; }
.thread-nav.is-open .thread-nav__nodes li:nth-child(4) { transition-delay: 0.2s; }
.thread-nav.is-open .thread-nav__nodes li:nth-child(5) { transition-delay: 0.25s; }
.thread-nav.is-open .thread-nav__nodes li:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   SECTION 1 — BOND FIELD
   ============================================ */

.bond-field {
  cursor: crosshair;
}

/* ============================================
   SECTION 2 — ARCHIVE OF AGREEMENTS
   ============================================ */

.archive {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.archive__inner {
  width: 100%;
  max-width: 1200px;
}

.archive__wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  perspective: 1200px;
}

.sealed-doc {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(145deg, #EDE8DC 0%, #F7F3EA 40%, #E8E2D4 100%);
  border: 1px solid rgba(108, 122, 137, 0.2);
  padding: 2rem 1.5rem;
  cursor: pointer;
  transition: transform var(--transition-soft), box-shadow var(--transition-soft);
  transform-style: preserve-3d;
  animation: docFloat 8s ease-in-out infinite;
}

.sealed-doc:nth-child(2) { animation-delay: -1.5s; }
.sealed-doc:nth-child(3) { animation-delay: -3s; }
.sealed-doc:nth-child(4) { animation-delay: -4.5s; }
.sealed-doc:nth-child(5) { animation-delay: -2s; }
.sealed-doc:nth-child(6) { animation-delay: -5.5s; }

@keyframes docFloat {
  0%, 100% { transform: translateY(0) rotateX(1deg); }
  50% { transform: translateY(-8px) rotateX(-1deg); }
}

.sealed-doc:hover,
.sealed-doc:focus-visible {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(18, 24, 38, 0.12), 0 0 0 1px rgba(212, 175, 55, 0.2);
  outline: none;
}

.sealed-doc__seal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  color: var(--gold-thread);
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s ease;
  z-index: 2;
}

.sealed-doc:hover .sealed-doc__seal,
.sealed-doc:focus-visible .sealed-doc__seal {
  transform: translate(-50%, -80%) scale(0.6) rotate(15deg);
  opacity: 0.3;
}

.sealed-doc__content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.sealed-doc:hover .sealed-doc__content,
.sealed-doc:focus-visible .sealed-doc__content {
  opacity: 1;
  transform: translateY(0);
}

.sealed-doc__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-ink);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.sealed-doc__text {
  font-size: 0.9rem;
  color: var(--muted-steel);
  line-height: 1.7;
  font-style: italic;
}

/* ============================================
   SECTION 3 — CONNECTION WEB
   ============================================ */

.connection-web {
  cursor: grab;
}

.connection-web:active {
  cursor: grabbing;
}

/* ============================================
   SECTION 4 — TRUST CHAMBERS
   ============================================ */

.trust-chambers {
  background: var(--deep-ink);
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.trust-chambers::-webkit-scrollbar {
  display: none;
}

.trust-chambers__track {
  display: flex;
  min-width: 100%;
}

.chamber {
  flex: 0 0 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-glow);
}

.chamber--1 { background: linear-gradient(180deg, #0D1117 0%, #121826 100%); }
.chamber--2 { background: linear-gradient(180deg, #151A24 0%, #1A2030 100%); }
.chamber--3 { background: linear-gradient(180deg, #1A2030 0%, #222838 100%); }
.chamber--4 { background: linear-gradient(180deg, #222838 0%, #2A3040 100%); }
.chamber--5 { background: linear-gradient(180deg, #2A3040 0%, #353D50 100%); }

.chamber__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  pointer-events: none;
  transition: opacity var(--transition-glow), transform var(--transition-glow);
}

.chamber--1 .chamber__glow { background: radial-gradient(circle, rgba(108,122,137,0.08) 0%, transparent 70%); }
.chamber--2 .chamber__glow { background: radial-gradient(circle, rgba(108,122,137,0.12) 0%, transparent 70%); }
.chamber--3 .chamber__glow { background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%); }
.chamber--4 .chamber__glow { background: radial-gradient(circle, rgba(212,175,55,0.12) 0%, transparent 70%); }
.chamber--5 .chamber__glow { background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%); }

.chamber:hover .chamber__glow,
.chamber.is-active .chamber__glow {
  transform: scale(1.5);
  opacity: 1.5;
}

.chamber__name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--soft-paper);
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.chamber--4 .chamber__name,
.chamber--5 .chamber__name {
  color: var(--gold-thread);
}

.chamber__desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted-steel);
  max-width: 400px;
  text-align: center;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.chamber--5 .chamber__desc {
  color: rgba(247, 243, 234, 0.7);
}

/* ============================================
   SECTION 5 — MEMORY THREAD ROOM
   ============================================ */

.memory-room {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.memory-room__space {
  position: relative;
  width: 100%;
  max-width: 900px;
  min-height: 70vh;
}

.memory-thread {
  position: absolute;
  cursor: pointer;
  outline: none;
}

.memory-thread:nth-child(1) { top: 8%; left: 10%; }
.memory-thread:nth-child(2) { top: 25%; right: 8%; }
.memory-thread:nth-child(3) { top: 45%; left: 20%; }
.memory-thread:nth-child(4) { top: 60%; right: 15%; }
.memory-thread:nth-child(5) { bottom: 25%; left: 8%; }
.memory-thread:nth-child(6) { bottom: 10%; right: 25%; }

.memory-thread__line {
  display: block;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-thread), transparent);
  box-shadow: 0 0 10px var(--gold-glow);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.memory-thread:nth-child(odd) .memory-thread__line {
  transform: rotate(-15deg);
  width: 100px;
}

.memory-thread:nth-child(even) .memory-thread__line {
  transform: rotate(20deg);
  width: 140px;
}

.memory-thread:hover .memory-thread__line,
.memory-thread:focus-visible .memory-thread__line,
.memory-thread.is-vibrating .memory-thread__line {
  animation: threadVibrate 0.15s ease-in-out infinite alternate;
}

@keyframes threadVibrate {
  0% { transform: rotate(var(--thread-rot, -15deg)) translateY(0); }
  100% { transform: rotate(var(--thread-rot, -15deg)) translateY(-2px) scaleX(1.02); }
}

.memory-thread:nth-child(odd) { --thread-rot: -15deg; }
.memory-thread:nth-child(even) { --thread-rot: 20deg; }

.memory-thread__content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 1rem;
  width: max-content;
  max-width: 280px;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}

.memory-thread:hover .memory-thread__content,
.memory-thread:focus-visible .memory-thread__content {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

.memory-thread__text {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(247, 243, 234, 0.85);
  text-align: center;
  line-height: 1.6;
}

/* ============================================
   SECTION 6 — COLLABORATION TABLE
   ============================================ */

.collaboration-table {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  min-height: 100vh;
}

.collaboration-table__scene {
  position: relative;
  width: min(90vw, 600px);
  aspect-ratio: 1;
}

.table-surface {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #EDE8DC 0%, #E0DACE 60%, #D4CFC0 100%);
  border: 1px solid rgba(108, 122, 137, 0.15);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 20px 80px rgba(18, 24, 38, 0.08),
    inset 0 2px 20px rgba(255, 255, 255, 0.3);
}

.table-surface__center {
  position: absolute;
  inset: 25%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.table-outcome {
  text-align: center;
  padding: 0.5rem 1rem;
  transition: transform var(--transition-soft);
  cursor: default;
}

.table-outcome:hover,
.table-outcome:focus-visible {
  transform: scale(1.05);
  outline: none;
}

.table-outcome__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-steel);
  margin-bottom: 0.25rem;
}

.table-outcome__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--deep-ink);
}

.table-seat {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--deep-ink);
  border: 2px solid var(--gold-thread);
  box-shadow: 0 0 8px var(--gold-glow);
  transition: transform var(--transition-soft), box-shadow var(--transition-soft);
}

.table-seat:hover {
  transform: scale(1.3);
  box-shadow: 0 0 16px var(--gold-glow);
}

.table-seat--1 { top: -4%; left: 50%; transform: translateX(-50%); }
.table-seat--2 { top: 15%; right: -2%; }
.table-seat--3 { bottom: 15%; right: -2%; }
.table-seat--4 { bottom: -4%; left: 50%; transform: translateX(-50%); }
.table-seat--5 { bottom: 15%; left: -2%; }
.table-seat--6 { top: 15%; left: -2%; }

.table-seat--1:hover { transform: translateX(-50%) scale(1.3); }
.table-seat--4:hover { transform: translateX(-50%) scale(1.3); }

/* ============================================
   SECTION 7 — EMOTIONAL MAP
   ============================================ */

.emotional-map {
  cursor: crosshair;
}

/* ============================================
   SECTION 8 — SIGNATURE VAULT
   ============================================ */

.signature-vault {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.signature-vault__inner {
  width: 100%;
  max-width: 800px;
}

.signature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem;
}

.signature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1rem;
  background: transparent;
  border: 1px solid rgba(108, 122, 137, 0.15);
  cursor: pointer;
  transition: border-color var(--transition-soft), box-shadow var(--transition-glow), background var(--transition-soft);
}

.signature:hover,
.signature:focus-visible,
.signature.is-active {
  border-color: var(--gold-thread);
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 20px var(--gold-soft);
  background: rgba(212, 175, 55, 0.04);
  outline: none;
}

.signature__mark {
  width: 100px;
  height: 50px;
  color: var(--deep-ink);
  transition: color var(--transition-soft), filter var(--transition-glow);
}

.signature.is-active .signature__mark,
.signature:hover .signature__mark {
  color: var(--gold-thread);
  filter: drop-shadow(0 0 6px var(--gold-glow));
}

.signature__type {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-steel);
  transition: color var(--transition-soft);
}

.signature.is-active .signature__type,
.signature:hover .signature__type {
  color: var(--deep-ink);
}

/* ============================================
   SECTION 9 — FRAGILITY ZONE
   ============================================ */

.fragility-zone {
  cursor: crosshair;
}

/* ============================================
   SECTION 10 — BOND CORE
   ============================================ */

.bond-core {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.bond-core__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  pointer-events: none;
}

.bond-core__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--soft-paper);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: titleReveal 1.2s ease 0.5s forwards;
}

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

.bond-core__seal-interface {
  pointer-events: auto;
}

.seal-button {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(18, 24, 38, 0.6);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-soft), box-shadow var(--transition-glow), transform var(--transition-soft);
}

.seal-button:hover,
.seal-button:focus-visible {
  border-color: var(--gold-thread);
  box-shadow: 0 0 40px var(--gold-glow), 0 0 80px rgba(212, 175, 55, 0.15);
  transform: scale(1.05);
  outline: none;
}

.seal-button.is-aligned {
  border-color: var(--gold-thread);
  box-shadow: 0 0 60px var(--gold-glow);
  transform: scale(1.08);
}

.seal-button__ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  animation: sealRotate 20s linear infinite;
}

.seal-button:hover .seal-button__ring {
  animation-duration: 8s;
  border-color: rgba(212, 175, 55, 0.6);
}

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

.seal-button__text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-thread);
  position: relative;
  z-index: 1;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .thread-nav {
    top: 1rem;
    right: 1rem;
  }

  .thread-nav__menu {
    width: 240px;
    height: 240px;
  }

  .thread-nav.is-open .thread-nav__nodes li:nth-child(1) { transform: translate(calc(-50% + 0px), calc(-50% - 90px)); }
  .thread-nav.is-open .thread-nav__nodes li:nth-child(2) { transform: translate(calc(-50% + 78px), calc(-50% - 45px)); }
  .thread-nav.is-open .thread-nav__nodes li:nth-child(3) { transform: translate(calc(-50% + 78px), calc(-50% + 45px)); }
  .thread-nav.is-open .thread-nav__nodes li:nth-child(4) { transform: translate(calc(-50% + 0px), calc(-50% + 90px)); }
  .thread-nav.is-open .thread-nav__nodes li:nth-child(5) { transform: translate(calc(-50% - 78px), calc(-50% + 45px)); }
  .thread-nav.is-open .thread-nav__nodes li:nth-child(6) { transform: translate(calc(-50% - 78px), calc(-50% - 45px)); }

  .archive__wall {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .memory-room__space {
    min-height: 80vh;
  }

  .memory-thread:nth-child(1) { top: 5%; left: 5%; }
  .memory-thread:nth-child(2) { top: 20%; right: 5%; }
  .memory-thread:nth-child(3) { top: 38%; left: 10%; }
  .memory-thread:nth-child(4) { top: 55%; right: 10%; }
  .memory-thread:nth-child(5) { bottom: 22%; left: 5%; }
  .memory-thread:nth-child(6) { bottom: 5%; right: 10%; }

  .memory-thread__line {
    width: 80px !important;
  }

  .memory-thread__content {
    max-width: 200px;
  }

  .collaboration-table__scene {
    width: 95vw;
  }

  .signature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .seal-button {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 480px) {
  .signature-grid {
    grid-template-columns: 1fr;
  }

  .chamber__name {
    font-size: 1.8rem;
  }
}
