/* ==========================================================================
   Elvun.space — Obsidian Signal
   Pure HTML5 + CSS3
   ========================================================================== */

:root {
  --bg: #080A0D;
  --bg-secondary: #101419;
  --surface: #171D22;
  --teal: #6FA6A0;
  --bronze: #C59A5B;
  --silver: #D9E2DA;
  --violet: #7C6D96;
  --forest: #273B3A;
  --text: #EAE8E1;
  --text-muted: #858B8C;
  --border: rgba(234, 232, 225, 0.12);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-secondary: "Archivo", "Helvetica Neue", sans-serif;
  --font-ui: "Inter", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --max: 1180px;
  --max-wide: 1360px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glow-teal: 0 0 28px rgba(111, 166, 160, 0.18);
  --glow-bronze: 0 0 22px rgba(197, 154, 91, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.skip-link:focus {
  top: var(--space-sm);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn--primary {
  background: var(--teal);
  color: var(--bg);
  border-color: var(--teal);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: transparent;
  color: var(--silver);
  border-color: var(--teal);
  box-shadow: var(--glow-teal);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: rgba(111, 166, 160, 0.55);
  color: var(--silver);
}

.btn--block {
  width: 100%;
}

/* Shared room shells */
.room {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8.5rem) clamp(1.25rem, 4vw, 3.5rem);
}

.room__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.room__inner--wide {
  max-width: var(--max-wide);
}

.room__inner--split {
  max-width: var(--max-wide);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.section-label {
  color: var(--text-muted);
  font-size: 0.68rem;
  margin-bottom: var(--space-md);
}

.room__header {
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.room__header--split {
  display: grid;
  gap: 1rem;
}

.room__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.room__title--xl {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
}

/* ==========================================================================
   1. NIGHT ENTRANCE
   ========================================================================== */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
  background:
    radial-gradient(ellipse 55% 45% at 78% 42%, rgba(39, 59, 58, 0.55), transparent 70%),
    radial-gradient(ellipse 40% 35% at 18% 70%, rgba(124, 109, 150, 0.08), transparent 65%),
    linear-gradient(165deg, #0a0d11 0%, var(--bg) 45%, #0b0f13 100%);
  overflow: hidden;
}

.cover__grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.cover__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.cover__brand,
.cover__edition {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.cover__brand {
  color: var(--silver);
}

.cover__stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 6vh, 4rem) 0;
}

.cover__copy {
  max-width: 34rem;
  animation: fade-up 1.1s var(--ease) both;
}

.cover__status {
  font-size: 0.62rem;
  color: var(--teal);
  margin-bottom: 1.75rem;
}

.cover__status::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: var(--glow-teal);
  vertical-align: middle;
  animation: soft-pulse 3.2s ease-in-out infinite;
}

.cover__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.2rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 1.35rem;
}

.cover__lead {
  font-family: var(--font-secondary);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 28rem;
  margin-bottom: 2.25rem;
}

.cover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

.cover__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.58rem;
  color: rgba(234, 232, 225, 0.38);
}

.cover__art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: clamp(320px, 48vh, 560px);
  animation: fade-in 1.4s var(--ease) 0.2s both;
}

.art-install {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 4 / 5;
}

.art-install__panel {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
}

.art-install__panel--tall {
  left: 18%;
  top: 6%;
  width: 34%;
  height: 78%;
  background:
    linear-gradient(180deg, rgba(23, 29, 34, 0.2), transparent 40%),
    linear-gradient(90deg, #12171c, #1a2127 55%, #101419);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.art-install__panel--mid {
  right: 10%;
  top: 22%;
  width: 42%;
  height: 48%;
  background: linear-gradient(135deg, #141a1f, #1c242b);
}

.art-install__panel--wide {
  left: 8%;
  bottom: 10%;
  width: 58%;
  height: 18%;
  background: linear-gradient(90deg, #0f1317, #1a2128);
}

.art-install__silver {
  position: absolute;
  right: 18%;
  top: 14%;
  width: 18%;
  height: 28%;
  background: linear-gradient(160deg, rgba(217, 226, 218, 0.28), rgba(217, 226, 218, 0.05));
  border: 1px solid rgba(217, 226, 218, 0.22);
  animation: float-y 8s ease-in-out infinite;
}

.art-install__line {
  position: absolute;
  left: 34%;
  top: 4%;
  width: 1px;
  height: 84%;
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
  box-shadow: var(--glow-teal);
  animation: line-breathe 5.5s ease-in-out infinite;
}

.art-install__bronze {
  position: absolute;
  right: 22%;
  bottom: 28%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(197, 154, 91, 0.65);
  background:
    radial-gradient(circle at 35% 30%, rgba(197, 154, 91, 0.35), transparent 45%),
    radial-gradient(circle at 50% 50%, #1a1610 0%, #0d0c0a 70%);
  box-shadow: var(--glow-bronze);
  animation: slow-spin 28s linear infinite;
}

.art-install__violet {
  position: absolute;
  left: 0;
  top: 30%;
  width: 36%;
  height: 42%;
  background: radial-gradient(ellipse at center, rgba(124, 109, 150, 0.22), transparent 70%);
  filter: blur(8px);
  animation: opacity-drift 7s ease-in-out infinite;
}

.art-install__hair {
  position: absolute;
  background: rgba(234, 232, 225, 0.18);
}

.art-install__hair--1 {
  left: 8%;
  top: 18%;
  width: 1px;
  height: 46%;
}

.art-install__hair--2 {
  left: 8%;
  top: 18%;
  width: 28%;
  height: 1px;
}

.art-install__hair--3 {
  right: 8%;
  bottom: 22%;
  width: 36%;
  height: 1px;
}

.art-install__hair--4 {
  right: 8%;
  top: 36%;
  width: 1px;
  height: 40%;
}

.cover__scroll {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  transition: color 0.3s var(--ease);
}

.cover__scroll:hover,
.cover__scroll:focus-visible {
  color: var(--teal);
}

/* ==========================================================================
   2. MANIFESTO
   ========================================================================== */
.room--manifesto {
  background:
    linear-gradient(180deg, rgba(16, 20, 25, 0.65), transparent 30%),
    var(--bg);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.manifesto {
  max-width: 52rem;
  padding-top: clamp(2rem, 8vh, 6rem);
  padding-bottom: clamp(2rem, 8vh, 5rem);
}

.manifesto__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.4rem, 6.5vw, 4.8rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  animation: fade-up 1s var(--ease) both;
}

.manifesto__text {
  max-width: 34rem;
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  margin-bottom: 3.5rem;
}

.manifesto__decor {
  position: relative;
  height: 80px;
  max-width: 420px;
}

.manifesto__line {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--silver), transparent);
  opacity: 0.35;
}

.manifesto__accent {
  position: absolute;
  left: 0;
  top: 50%;
  width: 48px;
  height: 1px;
  background: var(--teal);
  box-shadow: var(--glow-teal);
  transform: translateY(-50%);
}

.manifesto__bronze {
  position: absolute;
  right: 12%;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%) rotate(45deg);
  border: 1px solid var(--bronze);
  background: rgba(197, 154, 91, 0.12);
}

/* ==========================================================================
   3. LIGHT STUDIES
   ========================================================================== */
.room--studies {
  background: var(--bg-secondary);
}

.studies {
  display: flex;
  flex-direction: column;
}

.study {
  position: relative;
  display: grid;
  grid-template-columns: minmax(4rem, 8rem) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.45s var(--ease);
}

.study:last-child {
  border-bottom: 1px solid var(--border);
}

.study::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--teal);
  opacity: 0.25;
  transition: opacity 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.study:hover,
.study:focus-within {
  background: rgba(23, 29, 34, 0.55);
}

.study:hover::before,
.study:focus-within::before {
  opacity: 1;
  box-shadow: var(--glow-teal);
}

.study__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(217, 226, 218, 0.18);
  transition: transform 0.55s var(--ease), color 0.45s var(--ease);
}

.study:hover .study__num,
.study:focus-within .study__num {
  transform: translateX(10px) translateY(-4px);
  color: rgba(111, 166, 160, 0.45);
}

.study__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.study__desc {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-size: 0.98rem;
}

.study__light {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 166, 160, 0.35), transparent 68%);
  opacity: 0.55;
  transition: transform 0.7s var(--ease), opacity 0.45s var(--ease);
}

.study__light--b {
  border-radius: 0;
  background: linear-gradient(135deg, rgba(197, 154, 91, 0.28), transparent);
}

.study__light--c {
  width: 90px;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: var(--glow-teal);
}

.study__light--d {
  width: 48px;
  height: 90px;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(217, 226, 218, 0.2), transparent);
}

.study__light--e {
  background: radial-gradient(circle, rgba(124, 109, 150, 0.4), transparent 70%);
}

.study:hover .study__light,
.study:focus-within .study__light {
  transform: translateX(-12px) scale(1.08);
  opacity: 0.95;
}

.study__arrow {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.45s var(--ease), color 0.45s var(--ease);
}

.study:hover .study__arrow,
.study:focus-within .study__arrow {
  transform: translateX(10px);
  color: var(--teal);
}

.study__divider {
  display: none;
}

/* ==========================================================================
   4. DARK ARCHIVE
   ========================================================================== */
.room--archive {
  background: var(--bg);
}

.archive {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
}

.object {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

.object--tall {
  grid-column: span 4;
  grid-row: span 2;
}

.object--wide {
  grid-column: span 8;
}

.object--square {
  grid-column: span 4;
}

.object--narrow {
  grid-column: span 3;
}

.object--circle {
  grid-column: span 5;
}

.object--full {
  grid-column: 1 / -1;
}

.object__visual {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.4s var(--ease);
}

.object__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  transition: transform 0.8s var(--ease);
}

.object:hover .object__visual {
  border-color: rgba(111, 166, 160, 0.35);
}

.object:hover .object__visual::after {
  transform: scale(1.05);
}

.object--tall .object__visual {
  aspect-ratio: 3 / 4.4;
  min-height: 420px;
}

.object--wide .object__visual {
  aspect-ratio: 16 / 7;
}

.object--square .object__visual {
  aspect-ratio: 1;
}

.object--narrow .object__visual {
  aspect-ratio: 2 / 5;
  min-height: 280px;
}

.object--circle .object__visual {
  aspect-ratio: 1;
  border-radius: 50%;
}

.object--full .object__visual {
  aspect-ratio: 21 / 7;
  min-height: 220px;
}

.object__visual--a {
  background:
    linear-gradient(90deg, transparent 72%, rgba(111, 166, 160, 0.55) 72.4%, transparent 73%),
    linear-gradient(180deg, #151b20, #0d1115 60%, #12181d);
}

.object__visual--b {
  background:
    radial-gradient(circle at 78% 55%, rgba(197, 154, 91, 0.35) 0 4%, transparent 5%),
    linear-gradient(105deg, #101419 20%, #1a2128 55%, #0f1317);
}

.object__visual--c {
  background:
    linear-gradient(160deg, rgba(217, 226, 218, 0.16) 18%, transparent 18.5%),
    linear-gradient(180deg, #171d22, #101419);
}

.object__visual--d {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(124, 109, 150, 0.28), transparent 55%),
    linear-gradient(180deg, #12171c, #0a0d10);
}

.object__visual--e {
  background:
    radial-gradient(circle at 50% 50%, #14191e 0 42%, transparent 43%),
    radial-gradient(circle at 50% 50%, transparent 46%, rgba(197, 154, 91, 0.45) 46.5%, transparent 47.5%),
    radial-gradient(circle at 40% 35%, rgba(111, 166, 160, 0.12), transparent 50%),
    #101419;
}

.object__visual--f {
  background:
    linear-gradient(90deg, transparent 18%, rgba(111, 166, 160, 0.55) 18.15%, transparent 18.4%),
    linear-gradient(90deg, #0e1216 0%, #171d22 28%, #101419 52%, #1a2128 78%, #0c1014 100%);
}

.object__cat,
.object__tech {
  font-size: 0.58rem;
  color: var(--text-muted);
}

.object__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0.35rem 0;
}

.object__desc {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-size: 0.92rem;
  max-width: 28rem;
  margin-bottom: 0.5rem;
}

.object--circle .object__meta {
  text-align: center;
  padding-inline: 1rem;
}

/* ==========================================================================
   5. SIGNAL CORRIDOR
   ========================================================================== */
.room--corridor {
  background:
    linear-gradient(180deg, rgba(8, 10, 13, 0.2), rgba(16, 20, 25, 0.95)),
    var(--bg-secondary);
  overflow: hidden;
}

.corridor__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  letter-spacing: 0.04em;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.corridor {
  position: relative;
  padding: 2.5rem 0 1rem;
}

.corridor__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 1.15rem;
  height: 1px;
  background: rgba(234, 232, 225, 0.08);
}

.corridor__line {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.55;
}

.corridor__pulse {
  position: absolute;
  top: 50%;
  left: 0;
  width: 90px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, var(--teal), var(--silver));
  box-shadow: var(--glow-teal);
  animation: signal-travel 7.5s linear infinite;
}

.corridor__stages {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

.corridor__stages::before {
  display: none;
}

.stage {
  padding-top: 2.5rem;
  border-top: 1px solid transparent;
}

.stage__num {
  display: block;
  font-size: 0.62rem;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.stage__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.stage__text {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-size: 0.88rem;
  max-width: 12rem;
}

/* ==========================================================================
   6. ARCHITECTURE OF IDEAS
   ========================================================================== */
.room--architecture {
  background: var(--bg);
}

.arch-copy__quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.arch-copy__text {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  max-width: 28rem;
  font-size: 1.02rem;
}

.arch-compose {
  position: relative;
  min-height: clamp(340px, 48vw, 520px);
  background:
    radial-gradient(ellipse at 70% 40%, rgba(39, 59, 58, 0.4), transparent 55%),
    var(--bg-secondary);
  border: 1px solid var(--border);
  overflow: hidden;
}

.arch-compose__plane {
  position: absolute;
  border: 1px solid var(--border);
  background: var(--surface);
}

.arch-compose__plane--a {
  left: 10%;
  top: 14%;
  width: 38%;
  height: 62%;
  background: linear-gradient(160deg, #1a2128, #101419);
  animation: float-y 10s ease-in-out infinite;
}

.arch-compose__plane--b {
  right: 12%;
  top: 22%;
  width: 34%;
  height: 28%;
  background: linear-gradient(120deg, #141a1f, #1c242b);
}

.arch-compose__plane--c {
  right: 18%;
  bottom: 14%;
  width: 46%;
  height: 22%;
  background: #12181d;
  animation: opacity-drift 8s ease-in-out infinite;
}

.arch-compose__cutout {
  position: absolute;
  left: 34%;
  top: 36%;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(234, 232, 225, 0.18);
  background: radial-gradient(circle, rgba(8, 10, 13, 0.9) 55%, transparent 56%);
  box-shadow: inset 0 0 0 1px rgba(111, 166, 160, 0.15);
}

.arch-compose__line {
  position: absolute;
  background: rgba(234, 232, 225, 0.18);
}

.arch-compose__line--h {
  left: 8%;
  top: 48%;
  width: 70%;
  height: 1px;
}

.arch-compose__line--v {
  left: 48%;
  top: 12%;
  width: 1px;
  height: 70%;
}

.arch-compose__teal {
  position: absolute;
  left: 48%;
  top: 12%;
  width: 1px;
  height: 48%;
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
  box-shadow: var(--glow-teal);
  animation: line-breathe 6s ease-in-out infinite;
}

.arch-compose__bronze {
  position: absolute;
  right: 24%;
  top: 30%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bronze);
  box-shadow: var(--glow-bronze);
  animation: soft-pulse 4s ease-in-out infinite;
}

.arch-compose__label {
  position: absolute;
  font-size: 0.58rem;
  color: rgba(234, 232, 225, 0.45);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.arch-compose__label--space {
  left: 4%;
  top: 18%;
}

.arch-compose__label--structure {
  right: 5%;
  top: 28%;
  writing-mode: horizontal-tb;
  transform: none;
}

.arch-compose__label--light {
  left: 56%;
  bottom: 8%;
  writing-mode: horizontal-tb;
  transform: none;
  color: var(--teal);
}

/* ==========================================================================
   7. NIGHT NOTES
   ========================================================================== */
.room--notes {
  background: var(--bg-secondary);
}

.notes {
  display: flex;
  flex-direction: column;
  gap: clamp(3.5rem, 8vw, 6rem);
}

.note {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.note--rtl {
  direction: rtl;
}

.note--rtl > * {
  direction: ltr;
}

.note__media {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.note__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transition: transform 0.9s var(--ease);
}

.note:hover .note__media::before {
  transform: scale(1.06);
}

.note__media--a::before {
  background:
    linear-gradient(120deg, transparent 40%, rgba(111, 166, 160, 0.18)),
    linear-gradient(180deg, #1a2128, #0d1115);
}

.note__media--b::before {
  background:
    radial-gradient(circle at 70% 35%, rgba(197, 154, 91, 0.22), transparent 28%),
    linear-gradient(135deg, #12171c, #1a2128 50%, #0a0d10);
}

.note__media--c::before {
  background:
    linear-gradient(90deg, rgba(217, 226, 218, 0.12) 0 12%, transparent 12%),
    linear-gradient(160deg, #171d22, #101419 60%, #0c1014);
}

.note__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 10, 13, 0.45));
  pointer-events: none;
}

.note__cat {
  font-size: 0.6rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.note__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.note__desc {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  margin-bottom: 1.75rem;
  max-width: 28rem;
}

.note__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.note__date {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.note__link {
  font-family: var(--font-secondary);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.note__link:hover,
.note__link:focus-visible {
  color: var(--teal);
}

.note__link span {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.note__link:hover span,
.note__link:focus-visible span {
  transform: translateX(5px);
}

/* ==========================================================================
   8. OBSIDIAN NUMBERS
   ========================================================================== */
.room--numbers {
  background: var(--surface);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  border-top: 1px solid var(--border);
  padding-top: clamp(2.5rem, 5vw, 4rem);
}

.number {
  position: relative;
  padding: 0.5rem 0 1.5rem;
}

.number__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.8rem, 5.5vw, 4.4rem);
  line-height: 1;
  color: var(--silver);
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}

.number__plus,
.number__unit {
  color: var(--teal);
  font-size: 0.55em;
}

.number__label {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.number__mark {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: var(--bronze);
}

/* ==========================================================================
   9. ELVUN ACCESS
   ========================================================================== */
.room--access {
  background: var(--bg);
}

.access {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: stretch;
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.75rem, 3vw, 2.4rem);
  background: var(--surface);
  border: 1px solid var(--border);
  min-height: 100%;
}

.tier--featured {
  border-color: rgba(111, 166, 160, 0.55);
  background:
    linear-gradient(180deg, rgba(111, 166, 160, 0.06), transparent 40%),
    var(--surface);
  transform: translateY(-10px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.tier__badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.58rem;
  color: var(--bronze);
  letter-spacing: 0.16em;
}

.tier__level {
  font-size: 0.62rem;
  color: var(--text-muted);
}

.tier__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 400;
  color: var(--silver);
}

.tier__desc {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  margin-bottom: 0.5rem;
}

.tier__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.75rem 0 1.5rem;
  flex: 1;
}

.tier__list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 1px;
  background: var(--teal);
}

.tier--featured .tier__list li {
  color: var(--text);
}

/* ==========================================================================
   10. FINAL ROOM
   ========================================================================== */
.room--final {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(5rem, 12vw, 9rem);
  background: var(--bg);
  overflow: hidden;
}

.final__sculpture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sculpture__mass {
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(72vw, 720px);
  height: min(52vw, 420px);
  transform: translate(-50%, -50%);
  background:
    radial-gradient(ellipse at 40% 40%, rgba(39, 59, 58, 0.55), transparent 55%),
    radial-gradient(ellipse at 65% 55%, rgba(124, 109, 150, 0.18), transparent 45%),
    linear-gradient(135deg, rgba(23, 29, 34, 0.7), transparent);
  filter: blur(2px);
}

.sculpture__plane {
  position: absolute;
  left: 52%;
  top: 42%;
  width: min(28vw, 280px);
  height: min(38vw, 340px);
  transform: translate(-30%, -50%) rotate(-8deg);
  border: 1px solid rgba(217, 226, 218, 0.12);
  background: linear-gradient(180deg, rgba(23, 29, 34, 0.55), rgba(8, 10, 13, 0.2));
}

.sculpture__ring {
  position: absolute;
  left: 38%;
  top: 54%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(197, 154, 91, 0.4);
  box-shadow: var(--glow-bronze);
  transform: translate(-50%, -50%);
}

.sculpture__shard {
  position: absolute;
  left: 62%;
  top: 36%;
  width: 1px;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--teal), transparent);
  box-shadow: var(--glow-teal);
}

.sculpture__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(111, 166, 160, 0.16), transparent 65%);
  animation: soft-pulse 4.8s ease-in-out infinite;
}

.final__content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding-inline: 1rem;
}

.final__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.12;
  margin-bottom: 1.4rem;
}

.final__text {
  color: var(--text-muted);
  font-family: var(--font-secondary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 0 auto 2.25rem;
  max-width: 32rem;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.footer {
  background: #06080a;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem) 2rem;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 3rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 1rem;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 18rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.footer__heading {
  font-size: 0.62rem;
  color: var(--bronze);
  margin-bottom: 1.1rem;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer__col a {
  font-family: var(--font-secondary);
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease);
}

.footer__col a:hover,
.footer__col a:focus-visible {
  color: var(--silver);
}

.footer__divider {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bronze), transparent);
  opacity: 0.55;
}

.footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  font-size: 0.62rem;
  color: var(--text-muted);
  letter-spacing: 0.16em;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes soft-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.cover__status::before {
  animation: soft-pulse 3.2s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes line-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes opacity-drift {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.9; }
}

@keyframes slow-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes signal-travel {
  0% { left: -10%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { left: 105%; opacity: 0; }
}

/* Sculpture pulse without conflicting transforms */
.sculpture__pulse {
  animation: glow-pulse 4.8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.35; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.08); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .corridor__stages {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.5rem;
  }

  .corridor__track {
    display: none;
  }

  .object--tall {
    grid-column: span 6;
  }

  .object--wide {
    grid-column: span 6;
  }

  .object--square,
  .object--narrow,
  .object--circle {
    grid-column: span 6;
  }
}

@media (max-width: 900px) {
  .cover__stage {
    grid-template-columns: 1fr;
    padding-top: 2rem;
  }

  .cover__art {
    order: -1;
    justify-content: center;
    min-height: auto;
  }

  .art-install {
    width: min(100%, 340px);
  }

  .room__inner--split {
    grid-template-columns: 1fr;
  }

  .note,
  .note--rtl {
    grid-template-columns: 1fr;
    direction: ltr;
  }

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

  .tier--featured {
    transform: none;
    order: -1;
  }

  .numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .study__light {
    display: none;
  }
}

@media (max-width: 700px) {
  .corridor {
    padding-top: 0;
  }

  .corridor__stages {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(111, 166, 160, 0.25);
  }

  .corridor__stages::before {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--teal), transparent);
    box-shadow: var(--glow-teal);
    animation: line-breathe 5s ease-in-out infinite;
  }

  .stage {
    padding: 0 0 2rem 0.75rem;
    border-top: none;
    position: relative;
  }

  .stage::before {
    content: "";
    position: absolute;
    left: -1.55rem;
    top: 0.35rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--teal);
  }

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

  .object--tall,
  .object--wide,
  .object--square,
  .object--narrow,
  .object--circle,
  .object--full {
    grid-column: 1 / -1;
  }

  .object--tall .object__visual,
  .object--narrow .object__visual {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .object--circle .object__visual {
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .object--full .object__visual {
    aspect-ratio: 16 / 9;
  }

  .cover__actions {
    width: 100%;
  }

  .cover__actions .btn {
    flex: 1 1 auto;
  }

  .footer__cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

  .study {
    grid-template-columns: 1fr auto;
    gap: 0.75rem 1rem;
  }

  .study__num {
    grid-column: 1 / -1;
    font-size: 3.2rem;
  }

  .cover__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

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

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

  .cover__copy,
  .cover__art,
  .manifesto__quote {
    animation: none;
  }
}
