:root {
  --ink: #0b0a08;
  --coal: #12100d;
  --surface: #1a1713;
  --surface-soft: #242018;
  --paper: #f4efe5;
  --muted: #b9ae9e;
  --quiet: #7c7368;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.18);
  --red: #d82936;
  --blood: #6f1219;
  --green: #5e7259;
  --border: rgba(244, 239, 229, 0.14);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 22%, rgba(216, 41, 54, 0.18), transparent 26rem),
    radial-gradient(circle at 88% 70%, rgba(94, 114, 89, 0.12), transparent 25rem),
    linear-gradient(180deg, rgba(11, 10, 8, 0.1), var(--ink) 720px),
    var(--ink);
  color: var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

button,
input,
textarea {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  left: 50%;
  top: 12px;
  z-index: 100;
  transform: translate(-50%, -140%);
  background: var(--gold);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 40;
  pointer-events: none;
}

.nav-shell {
  position: relative;
  pointer-events: auto;
  width: calc(100% - 28px);
  max-width: 830px;
  min-height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 16, 13, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font-weight: 900;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  width: 100%;
}

.nav-links a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(212, 175, 55, 0.13);
  color: var(--gold);
}

.nav-links .nav-cta {
  background: var(--gold);
  color: var(--ink);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
}

.minimal-home .site-header {
  inset: 16px 0 auto;
}

.minimal-home .nav-shell {
  width: auto;
  min-height: 54px;
  padding: 0.36rem;
  gap: 0.72rem;
}

.minimal-home .brand-mark {
  background: transparent;
}

.minimal-home .minimal-nav {
  width: auto;
  gap: 0.18rem;
}

.minimal-home .minimal-nav a {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(244, 239, 229, 0.36);
  transition: transform 0.2s ease, background 0.2s ease;
}

.minimal-nav a:hover .nav-dot,
.minimal-nav a[aria-current="page"] .nav-dot {
  background: var(--gold);
  transform: scale(1.45);
}

.minimal-home .nav-toggle {
  display: none;
}

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--border);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.mica-canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), backdrop-filter 1.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(0px);
}

.mica-canvas.glassphomore {
  opacity: 0.72;
  backdrop-filter: blur(16px);
  background-color: rgba(11, 10, 8, 0.22);
  box-shadow: inset 0 0 100px rgba(255, 159, 28, 0.15);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: 52% 28%;
  filter: saturate(0.96) contrast(1.05);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, 0.9), rgba(11, 10, 8, 0.32) 45%, rgba(11, 10, 8, 0.72)),
    linear-gradient(0deg, var(--ink), rgba(11, 10, 8, 0.28) 42%, rgba(11, 10, 8, 0.18));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 8.8rem 0 5.4rem;
}

.minimal-home .hero {
  min-height: 100svh;
  align-items: stretch;
}

.minimal-home .hero::before {
  background:
    radial-gradient(circle at 50% 46%, rgba(11, 10, 8, 0.04), rgba(11, 10, 8, 0.72) 66%),
    linear-gradient(90deg, rgba(11, 10, 8, 0.75), rgba(11, 10, 8, 0.04) 48%, rgba(11, 10, 8, 0.52)),
    linear-gradient(0deg, rgba(11, 10, 8, 0.78), transparent 38%, rgba(11, 10, 8, 0.2));
}

.minimal-home .hero-media img {
  object-position: 50% 30%;
  filter: saturate(0.94) contrast(1.08) brightness(0.9);
}

.minimal-hero-inner {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 7rem 0 2.2rem;
}

.minimal-signature {
  color: rgba(244, 239, 229, 0.78);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 6.8rem);
  line-height: 0.85;
  letter-spacing: 0;
  mix-blend-mode: screen;
}

.minimal-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  margin-bottom: 0.3rem;
}

.minimal-actions a {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244, 239, 229, 0.24);
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.22);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.minimal-actions a:nth-child(1) {
  background: var(--gold);
}

.minimal-actions a:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--gold);
}

.minimal-wall {
  padding: 0;
  background: #050403;
}

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

.minimal-piece {
  grid-column: span 4;
  min-height: 56vw;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.minimal-piece--large {
  grid-column: span 6;
}

.minimal-piece--tall {
  grid-column: span 3;
}

.minimal-piece--wide {
  grid-column: span 5;
}

.minimal-piece img {
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: grayscale(0.08) saturate(0.92);
  transition: opacity 0.25s ease, filter 0.25s ease, transform 0.6s ease;
}

.minimal-piece:hover img {
  opacity: 1;
  filter: grayscale(0) saturate(1.04);
  transform: scale(1.025);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 34px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 999px;
  background: rgba(11, 10, 8, 0.38);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero h1,
.page-hero h1,
.section-title,
.feature-title {
  margin: 0;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero h1 {
  max-width: 980px;
  margin-top: 1.1rem;
  font-size: clamp(3.4rem, 10.6vw, 9.2rem);
  text-wrap: balance;
  text-shadow: 0 18px 52px rgba(0, 0, 0, 0.42);
}

.hero-claim {
  max-width: 680px;
  margin: 0.7rem 0 0;
  color: var(--gold);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.05;
  text-wrap: balance;
}

.hero-copy {
  max-width: 680px;
  margin: 1rem 0 0;
  color: var(--paper);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
}

.hero-actions,
.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(244, 239, 229, 0.06);
  color: var(--paper);
  font-weight: 850;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.64);
  background: rgba(212, 175, 55, 0.14);
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.button-primary:hover {
  background: var(--paper);
  color: var(--ink);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  width: 100%;
  max-width: 780px;
  margin-top: 3.2rem;
}

.fact {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(216, 41, 54, 0.1), transparent 46%),
    linear-gradient(180deg, rgba(244, 239, 229, 0.06), rgba(244, 239, 229, 0.02));
  backdrop-filter: blur(8px);
}

.soul-strip {
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 6vw, 5.6rem) 0;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(90deg, rgba(111, 18, 25, 0.34), transparent 42%, rgba(94, 114, 89, 0.18)),
    var(--coal);
}

.soul-strip::before {
  content: "AORAN  NAROA  AORAN  NAROA";
  position: absolute;
  left: -4vw;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(244, 239, 229, 0.035);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(6rem, 18vw, 18rem);
  font-weight: 900;
  line-height: 0.8;
  white-space: nowrap;
  pointer-events: none;
}

.soul-strip__inner {
  position: relative;
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto;
}

.soul-strip p {
  max-width: 980px;
  margin: 0;
  color: var(--paper);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: clamp(2rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
}

.soul-strip p:nth-child(2) {
  color: var(--gold);
  transform: translateX(clamp(0rem, 6vw, 5rem));
}

.soul-strip p:nth-child(3) {
  max-width: 760px;
  margin-top: 0.7rem;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.55;
}

.fact span {
  display: block;
  color: var(--quiet);
  font-size: 0.75rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fact strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--paper);
}

.section,
.page-section {
  padding: clamp(4.8rem, 8vw, 8rem) 0;
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.section-alt {
  background:
    linear-gradient(135deg, rgba(111, 18, 25, 0.16), transparent 38%),
    var(--coal);
  border-block: 1px solid var(--border);
}

.container {
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2.3rem, 7vw, 5.4rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.studio-ritual {
  padding-top: clamp(3rem, 7vw, 7rem);
}

.ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.78fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.ritual-copy p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.ritual-stack {
  position: relative;
  min-height: clamp(390px, 52vw, 610px);
}

.ritual-stack img {
  position: absolute;
  width: 56%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ritual-stack img:nth-child(1) {
  left: 0;
  top: 8%;
  transform: rotate(-7deg);
}

.ritual-stack img:nth-child(2) {
  right: 0;
  top: 0;
  z-index: 2;
  transform: rotate(5deg);
}

.ritual-stack img:nth-child(3) {
  left: 24%;
  bottom: 0;
  z-index: 3;
  transform: rotate(-1deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.8rem;
}

.art-card {
  grid-column: span 4;
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.12), transparent 45%),
    var(--surface);
  cursor: zoom-in;
}

@supports (animation-timeline: view()) {
  .art-card,
  .process-step,
  .price-card,
  .value-card,
  .contact-block {
    animation: reveal-by-scroll linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes reveal-by-scroll {
  from {
    opacity: 0.1;
    transform: translateY(22px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.art-card.large {
  grid-column: span 8;
  min-height: 520px;
}

.art-card.tall {
  min-height: 520px;
}

.art-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.art-card:hover img {
  transform: scale(1.045);
  filter: brightness(0.86);
}

.art-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.1rem;
  background: linear-gradient(0deg, rgba(11, 10, 8, 0.88), transparent);
}

.art-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.art-card p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.process-grid,
.price-grid,
.values-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-step,
.price-card,
.value-card,
.contact-block {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(111, 18, 25, 0.13), transparent 40%),
    linear-gradient(180deg, rgba(244, 239, 229, 0.055), rgba(244, 239, 229, 0.02));
}

.process-step span,
.price-card span,
.contact-label {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.process-step h3,
.price-card h3,
.value-card h3,
.contact-block h3 {
  margin: 0.6rem 0 0.4rem;
  font-size: 1.15rem;
}

.process-step p,
.price-card p,
.value-card p,
.contact-block p {
  margin: 0;
  color: var(--muted);
}

.price-card strong {
  display: block;
  margin: 0.6rem 0;
  font-size: 1.45rem;
  color: var(--paper);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: clamp(1.4rem, 5vw, 4rem);
  align-items: center;
}

.portrait-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.portrait-frame img {
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
}

.rich-text p,
.rich-text li {
  color: var(--muted);
}

.rich-text p {
  max-width: 68ch;
}

.rich-text strong {
  color: var(--paper);
}

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(244, 239, 229, 0.045);
}

.faq summary {
  min-height: 58px;
  padding: 1rem 1.1rem;
  cursor: pointer;
  color: var(--paper);
  font-weight: 850;
}

.faq p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
}

.page-hero {
  padding: 9.5rem 0 4rem;
  background:
    linear-gradient(90deg, rgba(11, 10, 8, 0.93), rgba(11, 10, 8, 0.78)),
    url("/assets/artworks/amy.webp") center / cover;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  max-width: 980px;
  margin-top: 1rem;
  font-size: clamp(3rem, 9vw, 7rem);
}

.page-hero p {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.16rem;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: #080706;
  color: var(--quiet);
}

.minimal-home .site-footer {
  display: none;
}

.gallery-room-page {
  background: #050403;
}

.gallery-room-page .site-header {
  inset: 16px 0 auto;
}

.gallery-room-page .nav-shell {
  width: auto;
  min-height: 54px;
  padding: 0.36rem;
  gap: 0.72rem;
}

.gallery-room-page .brand-mark {
  background: transparent;
}

.gallery-room-page .brand-mark--silent span {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: rgba(244, 239, 229, 0.68);
  box-shadow: 0 0 0 8px rgba(244, 239, 229, 0.04);
}

.gallery-room-page .brand-mark--silent:hover span,
.gallery-room-page .brand-mark--silent:focus-visible span {
  background: var(--gold);
}

.gallery-room-page .minimal-nav {
  width: auto;
  gap: 0.18rem;
}

.gallery-room-page .minimal-nav a {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
}

.gallery-room-page .nav-toggle,
.gallery-room-page .site-footer {
  display: none;
}

.room {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(212, 175, 55, 0.06), transparent 24rem),
    #050403;
}

.room-signal {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  pointer-events: none;
  mix-blend-mode: difference;
}

.room-signal span {
  display: block;
  width: 2px;
  height: 46px;
  background: rgba(244, 239, 229, 0.62);
  transform-origin: bottom;
}

.room-signal span:nth-child(2) {
  height: 22px;
  opacity: 0.54;
}

.room-signal span:nth-child(3) {
  height: 10px;
  opacity: 0.36;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 7vw;
  grid-auto-flow: dense;
  gap: 1px;
  padding: 0;
}

.room-piece {
  --mx: 50%;
  --my: 50%;
  position: relative;
  grid-column: span 3;
  grid-row: span 4;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: #090807;
  cursor: zoom-in;
  outline: 0;
}

.room-piece--wide {
  grid-column: span 6;
  grid-row: span 6;
}

.room-piece--tall {
  grid-column: span 3;
  grid-row: span 6;
}

.room-piece:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(244, 239, 229, 0.72);
  z-index: 3;
}

.room-piece img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.02) brightness(0.78);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.room-piece::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(244, 239, 229, 0.22), rgba(212, 175, 55, 0.08) 10rem, transparent 16rem),
    linear-gradient(180deg, transparent, rgba(5, 4, 3, 0.28));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.room-piece:hover img {
  transform: scale(1.025);
  filter: saturate(1.02) contrast(1.05) brightness(0.96);
}

.room-piece:focus-visible img {
  filter: saturate(1.02) contrast(1.05) brightness(0.96);
}

.room-piece:hover::after {
  opacity: 1;
}

.room-piece:focus-visible::after {
  opacity: 1;
}

.room-piece figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
  color: rgba(244, 239, 229, 0.8);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.room-piece:hover figcaption {
  opacity: 1;
  transform: translateY(0);
}

.footer-inner {
  width: calc(100% - 36px);
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner a {
  color: var(--muted);
}

.consult-toggle,
.consult-panel button {
  border: 0;
  cursor: pointer;
}

.consult-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  min-height: 52px;
  padding: 0 1.1rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.consult-panel {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 51;
  width: calc(100vw - 36px);
  max-width: 390px;
  display: none;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 16, 13, 0.96);
  box-shadow: var(--shadow);
}

.consult-panel.open {
  display: block;
}

.consult-panel h2 {
  margin: 0;
  font-size: 1.1rem;
}

.consult-panel p {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
}

.consult-actions {
  display: grid;
  gap: 0.5rem;
}

.consult-actions a {
  display: block;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--paper);
}

@media (max-width: 860px) {
  .site-header {
    inset: 12px 0 auto;
    z-index: 1000;
  }

  .nav-shell {
    align-items: flex-start;
    border-radius: 28px;
  }

  .nav-toggle {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    z-index: 2;
    display: block;
  }

  .minimal-home .nav-toggle,
  .gallery-room-page .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 76px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(18, 16, 13, 0.98);
    box-shadow: var(--shadow);
    z-index: 1001;
  }

  body.menu-open .nav-links {
    display: flex;
  }

  .minimal-home .nav-links,
  .gallery-room-page .nav-links {
    position: fixed;
    inset: 76px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(18, 16, 13, 0.98);
    box-shadow: var(--shadow);
    z-index: 1001;
  }

  body.menu-open.minimal-home .nav-links,
  body.menu-open.gallery-room-page .nav-links {
    display: flex;
  }

  .minimal-home .minimal-nav a,
  .gallery-room-page .minimal-nav a {
    width: auto;
    min-width: 0;
    min-height: 0;
    padding: 0.55rem 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-links.minimal-nav a .sr-only {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    border: 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--clay);
  }

  .nav-links.minimal-nav a:hover .sr-only,
  .nav-links.minimal-nav a[aria-current="page"] .sr-only {
    color: var(--paper);
  }

  .nav-links.minimal-nav a .nav-dot {
    margin-right: 0.25rem;
  }

  /* Hamburger to 'X' animation */
  body.menu-open .nav-toggle span {
    opacity: 0;
  }
  body.menu-open .nav-toggle::before {
    transform: translateY(6px) rotate(45deg);
  }
  body.menu-open .nav-toggle::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .nav-links a {
    justify-content: flex-start;
  }

  .hero-inner {
    padding-bottom: 3.2rem;
  }

  .hero h1 {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2.6rem, 13.4vw, 4.1rem);
    line-height: 1;
  }

  .minimal-hero-inner {
    padding: 6.2rem 0 1.6rem;
  }

  .minimal-signature {
    font-size: clamp(2.2rem, 16vw, 4.2rem);
  }

  .minimal-actions a {
    width: 42px;
    height: 42px;
  }

  .minimal-wall__grid {
    grid-template-columns: 1fr 1fr;
  }

  .room-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 28vw;
  }

  .room-piece {
    grid-column: auto;
    grid-row: span 2;
  }

  .room-piece--wide {
    grid-column: span 2;
    grid-row: span 3;
  }

  .room-piece--tall {
    grid-column: auto;
    grid-row: span 3;
  }

  .room-piece figcaption {
    display: none;
  }

  .room-signal {
    left: 14px;
    bottom: 14px;
  }

  .minimal-piece,
  .minimal-piece--large,
  .minimal-piece--tall,
  .minimal-piece--wide {
    grid-column: auto;
    min-height: 62vw;
  }

  .hero-claim {
    font-size: clamp(1.45rem, 8vw, 2.3rem);
  }

  .hero-copy {
    font-size: 1.05rem;
    overflow-wrap: break-word;
  }

  .mica-canvas {
    opacity: 0;
  }

  .mica-canvas.glassphomore {
    opacity: 0.48;
  }

  .hero-facts,
  .section-head,
  .split,
  .ritual-grid,
  .process-grid,
  .price-grid,
  .values-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ritual-stack {
    min-height: 420px;
  }

  .soul-strip p:nth-child(2) {
    transform: none;
  }

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

  .art-card,
  .art-card.large,
  .art-card.tall {
    grid-column: auto;
    min-height: 360px;
  }

  .page-hero {
    padding-top: 8rem;
  }
}

@media (max-width: 520px) {
  .eyebrow {
    max-width: 100%;
    white-space: normal;
    letter-spacing: 0.08em;
  }

  .hero-actions,
  .actions-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

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

  .mica-canvas {
    display: none;
  }
}

@supports (view-transition-name: root) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.42s;
  }
}

/* ==========================================================================
   SOVEREIGN KINETICS & DISRUPTIVE PORTRAIT (MOSKV AESTHETIC 2026)
   ========================================================================== */

/* Draggable Disruptive Card */
.disruptive-card {
  position: absolute;
  top: 72vh;
  right: 8vw;
  width: 320px;
  z-index: 100;
  cursor: grab;
  touch-action: none;
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.disruptive-card:active {
  cursor: grabbing;
}

.disruptive-card__content {
  position: relative;
  background: var(--surface);
  border: 7px solid var(--surface-soft);
  outline: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 4px;
  box-shadow: 
    var(--shadow),
    0 0 50px rgba(212, 175, 55, 0.05);
  overflow: hidden;
  transition: border-color 0.4s ease, outline-color 0.4s ease, box-shadow 0.4s ease;
}

.disruptive-card:hover .disruptive-card__content {
  border-color: #2b251e;
  outline-color: rgba(212, 175, 55, 0.62);
  box-shadow: 
    var(--shadow),
    0 0 60px rgba(212, 175, 55, 0.15);
}

.disruptive-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(1.02) contrast(1.03);
  pointer-events: none;
}

.disruptive-card__glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.22) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.disruptive-card:hover .disruptive-card__glow {
  opacity: 1;
}

.disruptive-card__tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--green);
  color: var(--paper);
  padding: 0.3rem 0.65rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid rgba(244, 239, 229, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transform: translateZ(20px);
}

/* Custom Premium Cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate3d(-50%, -50%, 0);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
  display: none;
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: difference;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  opacity: 0;
  transition: 
    width 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
    height 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
    border-color 0.3s, 
    background-color 0.3s, 
    opacity 0.3s;
}

/* Hover & Active States for Cursor */
body.has-custom-cursor .custom-cursor,
body.has-custom-cursor .custom-cursor-ring {
  display: flex;
}

body.cursor-hover .custom-cursor {
  background-color: var(--paper);
  width: 4px;
  height: 4px;
}

body.cursor-hover .custom-cursor-ring {
  width: 68px;
  height: 68px;
  border-color: var(--paper);
  background-color: rgba(244, 239, 229, 0.08);
  opacity: 1;
}

body.cursor-drag .custom-cursor-ring {
  width: 76px;
  height: 76px;
  border-color: var(--gold);
  background-color: rgba(212, 175, 55, 0.15);
  opacity: 1;
}

/* 3D Perspective Context for Cards */
.art-card,
.minimal-piece,
.room-piece {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.art-card img,
.minimal-piece img,
.room-piece img {
  will-change: transform;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), filter 0.3s ease;
}

/* Smooth Return Transition */
.art-card.resetting,
.minimal-piece.resetting,
.room-piece.resetting {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-card.resetting img,
.minimal-piece.resetting img,
.room-piece.resetting img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Magnetic buttons smooth tracking override */
.brand-mark,
.nav-links a,
.minimal-actions a,
.consult-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), background 0.2s ease, border-color 0.2s ease;
}

/* Hide default cursor on desktop pointer device */
@media (pointer: fine) {
  body.has-custom-cursor,
  body.has-custom-cursor a,
  body.has-custom-cursor button,
  body.has-custom-cursor .art-card,
  body.has-custom-cursor .minimal-piece,
  body.has-custom-cursor .room-piece,
  body.has-custom-cursor .disruptive-card {
    cursor: none !important;
  }
}

/* Mobile responsive styles for the disruptive card */
@media (max-width: 860px) {
  .disruptive-card {
    position: relative;
    top: auto;
    right: auto;
    width: calc(100% - 32px);
    max-width: 380px;
    margin: 3rem auto 1rem;
    transform: rotate(2deg) !important;
    touch-action: auto;
  }
  
  .disruptive-card__glow {
    display: none;
  }
}

/* ==========================================================================
   NEW SOVEREIGN PORTFOLIO IMPROVEMENTS (SOTD STAGE)
   ========================================================================== */

/* 1. Visor Lightbox Dinámico de Alta Resolución */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: rgba(8, 7, 6, 0.95);
  backdrop-filter: blur(15px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(244, 239, 229, 0.08);
  color: var(--paper);
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background-color 0.25s, transform 0.25s;
}

.lightbox-close:hover {
  background: rgba(244, 239, 229, 0.18);
  transform: scale(1.05);
}

.lightbox-content-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
}

.lightbox-image-wrap {
  position: relative;
  width: 100%;
  max-height: 75vh;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--ink);
  cursor: zoom-in;
}

.lightbox-image-wrap.zoomed {
  cursor: zoom-out;
}

.lightbox-image-wrap img {
  width: 100%;
  height: 100%;
  max-height: 75vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-image-wrap.zoomed img {
  transform: scale(2.5);
  transition: transform 0.05s linear; /* Ultra-fast responsive panning */
}

/* Loader de Carga Progresiva */
.lightbox-loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gold);
  z-index: 95;
  transition: width 0.3s ease, opacity 0.3s ease;
}

/* Botón Encargar Obra Similar (CTA de Conversión) */
.lightbox-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  cursor: pointer;
}

.lightbox-cta:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
}

/* Controles de Navegación */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(26, 23, 19, 0.8);
  color: var(--paper);
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 92;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(26, 23, 19, 0.95);
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

@media (max-width: 1160px) {
  .lightbox-prev { left: 1rem; }
  .lightbox-next { right: 1rem; }
  .lightbox-nav {
    width: 44px;
    height: 44px;
    background: rgba(8, 7, 6, 0.85);
  }
}

/* 2. Sección de Testimonios Reales */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(212, 175, 55, 0.06), transparent 50%),
    linear-gradient(180deg, rgba(244, 239, 229, 0.055), rgba(244, 239, 229, 0.02));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-card p {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--paper);
  margin: 0 0 1.5rem;
}

.testimonial-card cite {
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 860px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}

/* 3. Cronología / Timeline en Trayectoria */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem 0;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: calc(-2rem - 6px);
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 0 0 0 4px var(--gold-soft);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: scale(1.3);
  background: var(--paper);
}

.timeline-year {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.timeline-title {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.timeline-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* 4. Formularios de Contacto Premium Interactivos */
.interactive-form {
  max-width: 720px;
  margin: 2.5rem 0 0;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(18, 16, 13, 0.6);
  backdrop-filter: blur(10px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1.1rem;
  background: rgba(26, 23, 19, 0.7);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(26, 23, 19, 0.9);
  outline: none;
  box-shadow: 0 0 12px var(--gold-soft);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 1.1rem;
  padding-right: 2.8rem;
}

.form-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.form-submit-row button {
  min-width: 180px;
  cursor: pointer;
}

/* Consult Panel custom form styling */
.consult-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

.consult-form input,
.consult-form textarea {
  padding: 0.7rem 0.9rem;
  background: rgba(26, 23, 19, 0.8);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--paper);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.consult-form input:focus,
.consult-form textarea:focus {
  border-color: var(--gold);
  outline: none;
}

.consult-form button {
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consult-form button:hover {
  background: transparent;
  color: var(--gold);
}

/* 5. Muro Colaborativo (El Muro de Naroa) */
.mural-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--ink), var(--coal));
}

.mural-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1.5rem;
  margin-top: 2rem;
  min-height: 520px;
}

@media (max-width: 960px) {
  .mural-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.mural-canvas-wrapper {
  position: relative;
  background: #0f0d0b;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  touch-action: none;
  min-height: 480px;
  display: flex;
}

#mural-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Glassmorphism Floating Toolbar */
.mural-toolbar {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(18, 16, 13, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 239, 229, 0.12);
  border-radius: 99px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  max-width: 95%;
  flex-wrap: wrap;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mural-tools-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mural-tool-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mural-tool-btn:hover {
  background: rgba(244, 239, 229, 0.06);
  color: var(--paper);
}

.mural-tool-btn.active {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.mural-sep {
  width: 1px;
  height: 24px;
  background: rgba(244, 239, 229, 0.1);
}

.mural-settings-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mural-preview-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  background: var(--gold);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.mural-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 16px);
  gap: 4px;
}

.mural-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.5);
  box-shadow: 0 0 0 1px transparent;
  transition: transform 0.15s ease;
}

.mural-swatch:hover {
  transform: scale(1.2);
}

.mural-swatch.active {
  box-shadow: 0 0 0 2px var(--paper);
}

.mural-color-picker-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(244, 239, 229, 0.2);
  cursor: pointer;
}

.mural-color-custom {
  position: absolute;
  top: -5px;
  left: -5px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.picker-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: rgba(255, 255, 255, 0.8);
  mix-blend-mode: difference;
}

.mural-sliders {
  display: flex;
  gap: 0.75rem;
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mural-slider-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 70px;
}

.mural-slider-item label {
  font-size: 0.6rem;
  font-weight: 800;
}

.mural-slider-item input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 3px;
  background: rgba(244, 239, 229, 0.12);
  border-radius: 2px;
  outline: none;
}

.mural-slider-item input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.mural-slider-item input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

/* Canvas loading message */
.mural-canvas-loader {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 11, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  z-index: 5;
  backdrop-filter: blur(4px);
  transition: opacity 0.4s ease;
  pointer-events: none;
  opacity: 0;
}

.mural-canvas-loader.active {
  opacity: 1;
}

/* Sidebar and Log details */
.mural-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.mural-contrib-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mural-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mural-input-group label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mural-input-group input {
  padding: 0.65rem 0.85rem;
  background: rgba(11, 10, 8, 0.6);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--paper);
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.mural-input-group input:focus {
  border-color: var(--gold);
  background: rgba(11, 10, 8, 0.9);
  outline: none;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.15);
}

.mural-form-actions {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0.4rem;
}

.mural-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.mural-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.mural-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: var(--border) !important;
  color: var(--muted) !important;
  background: transparent !important;
}

.mural-btn--primary {
  grid-column: span 3;
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  gap: 0.4rem;
  padding: 0.75rem;
}

.mural-btn--primary:hover {
  background: var(--gold);
  color: var(--ink);
}

.mural-btn--danger:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(216, 41, 54, 0.05);
}

/* History List style */
.mural-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.mural-history-header h3 {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.mural-history-count {
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(244, 239, 229, 0.08);
  color: var(--gold);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.mural-history-list {
  flex: 1;
  overflow-y: auto;
  max-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-right: 2px;
}

.mural-history-list::-webkit-scrollbar {
  width: 4px;
}

.mural-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.mural-history-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.mural-mark-card {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(11, 10, 8, 0.3);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  animation: muralFadeIn 0.3s ease;
}

@keyframes muralFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mural-mark-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.65rem;
}

.mural-mark-author {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 700;
}

.mural-mark-time {
  color: var(--quiet);
}

.mural-mark-preview-wrap {
  width: 100%;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f0d0b;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.mural-mark-preview-wrap::after {
  content: 'Ampliar';
  position: absolute;
  inset: 0;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(2px);
}

.mural-mark-preview-wrap:hover::after {
  opacity: 1;
}

.mural-mark-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.mural-mark-preview-wrap:hover .mural-mark-preview {
  opacity: 1;
}

/* Floating dynamic text input styles */
#mural-text-input {
  position: absolute;
  display: none;
  background: rgba(15, 13, 11, 0.9);
  border: 1px solid var(--gold);
  border-radius: 6px;
  color: var(--paper);
  font-family: 'Caveat', cursive, sans-serif;
  outline: none;
  padding: 0.4rem 0.8rem;
  z-index: 15;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Custom interactive pointer follower */
.mural-cursor-follower {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 12;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.2s, width 0.1s, height 0.1s;
  box-shadow: 0 0 10px var(--gold);
}

.mural-canvas-wrapper:hover .mural-cursor-follower {
  opacity: 1;
}

@media (hover: none) {
  .mural-cursor-follower {
    display: none;
  }
}

/* ==========================================================================
   PHYSICS ARCADE - LA SINGULARIDAD
   ========================================================================== */
.arcade-section {
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.arcade-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .arcade-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.arcade-cabinet {
  background: #14120f;
  border: 4px solid #1a1713;
  border-radius: 12px;
  box-shadow: 
    0 0 0 1px rgba(212, 175, 55, 0.15),
    0 30px 70px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
}

/* CRT Screen scanning line simulation */
.arcade-cabinet::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 13, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  z-index: 5;
  pointer-events: none;
}

.arcade-header {
  background: #0b0a08;
  padding: 1.2rem 1.8rem;
  border-bottom: 2px solid #1a1713;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.arcade-title-glow {
  font-family: monospace;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--paper);
  text-shadow: 0 0 8px rgba(244, 239, 229, 0.3);
}

.arcade-status-panel {
  display: flex;
  gap: 1.5rem;
  font-family: monospace;
}

.arcade-status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.arcade-status-val {
  color: var(--gold);
  font-weight: 800;
  text-shadow: 0 0 6px var(--gold-soft);
}

.arcade-canvas-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  background: #090807;
  overflow: hidden;
}

#arcade-canvas {
  display: block;
  cursor: crosshair;
  touch-action: none;
}

/* Glass screen reflection simulation */
.arcade-screen-glass {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  z-index: 4;
}

#arcade-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(11, 10, 8, 0.92);
  backdrop-filter: blur(8px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

.arcade-intro {
  max-width: 380px;
  animation: arcadePulseIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.arcade-intro h2 {
  font-family: monospace;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--paper);
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(244,239,229,0.3);
}

.arcade-intro p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

@keyframes arcadePulseIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Submit initials form */
#arcade-submit-form {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  width: 100%;
}

.arcade-initials-input-wrap {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

#arcade-initials {
  width: 90px;
  height: 48px;
  background: #000;
  border: 1px solid var(--border);
  color: var(--gold);
  font-family: monospace;
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 4px;
  outline: none;
}

#arcade-initials:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-soft);
}

/* Leaderboard Sidebar */
.arcade-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.arcade-leaderboard-box {
  background: #12100d;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.arcade-leaderboard-box h3 {
  font-family: monospace;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
}

.arcade-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.arcade-table th {
  text-align: left;
  color: var(--quiet);
  font-weight: 500;
  padding-bottom: 0.6rem;
}

.arcade-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(244, 239, 229, 0.04);
}

.arcade-table tr:last-child td {
  border-bottom: 0;
}

/* ==========================================================================
   CONVERSATIONAL COMMISSION ASSISTANT (MICA)
   ========================================================================== */
.custom-chat-section {
  align-items: center;
}

.chat-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(43, 59, 229, 0.08);
  border: 1px solid rgba(43, 59, 229, 0.2);
  padding: 0.5rem 0.9rem;
  border-radius: 99px;
  margin-top: 1.5rem;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #2B3BE5;
  border-radius: 50%;
  box-shadow: 0 0 8px #2B3BE5;
  animation: chatPulse 1.8s infinite;
}

.status-text {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--paper);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-widget-container {
  display: flex;
  flex-direction: column;
  height: 520px;
  width: 100%;
  background: rgba(18, 16, 13, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chat-widget-container:focus-within {
  border-color: rgba(43, 59, 229, 0.5);
  box-shadow: 0 0 30px rgba(43, 59, 229, 0.15);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem;
  background: rgba(26, 23, 19, 0.9);
  border-bottom: 1px solid var(--border);
}

.chat-bot-avatar {
  width: 36px;
  height: 36px;
  background: #2B3BE5;
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.1rem;
  box-shadow: 0 0 10px rgba(43, 59, 229, 0.4);
}

.chat-bot-info h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.chat-bot-info span {
  font-size: 0.75rem;
  color: var(--muted);
}

.chat-messages {
  flex: 1;
  padding: 1.2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-soft) transparent;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--surface-soft);
  border-radius: 3px;
}

.message {
  display: flex;
  width: 100%;
  animation: bubbleFadeIn 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.user-msg {
  justify-content: flex-end;
}

.bot-msg {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 82%;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}

.user-msg .message-bubble {
  background: #2B3BE5;
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bot-msg .message-bubble {
  background: var(--surface-soft);
  color: var(--paper);
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(244, 239, 229, 0.05);
}

.message-bubble ul {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
}

.message-bubble li {
  margin-bottom: 0.3rem;
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.8rem 1.2rem;
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  background-color: var(--muted);
  border-radius: 50%;
  display: inline-block;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) { animation-delay: -0.32s; }
.typing-bubble .dot:nth-child(2) { animation-delay: -0.16s; }

.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 1rem;
  background: rgba(26, 23, 19, 0.9);
  border-top: 1px solid var(--border);
}

#chat-input {
  flex: 1;
  background: #000;
  border: 1px solid var(--border);
  color: var(--paper);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
  resize: none;
  max-height: 120px;
  transition: border-color 0.2s ease;
}

#chat-input:focus {
  border-color: #2B3BE5;
}

#chat-send {
  width: 42px;
  height: 42px;
  background: #2B3BE5;
  color: #fff;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

#chat-send:hover {
  background: #3c4cf0;
  box-shadow: 0 0 12px rgba(43, 59, 229, 0.4);
}

#chat-send:active {
  transform: scale(0.95);
}

#chat-send svg {
  width: 18px;
  height: 18px;
}

.chat-actions-area {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
  animation: bubbleFadeIn 0.4s ease both;
  width: 100%;
}

.chat-actions-area .button {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.75rem;
}

@keyframes chatPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(43, 59, 229, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(43, 59, 229, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(43, 59, 229, 0); }
}

@keyframes bubbleFadeIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}

@media (max-width: 768px) {
  .chat-widget-container {
    height: 440px;
  }
}

/* ==========================================================================
   5. DYNAMIC PERSPECTIVE SHIFT & GLITCH SYSTEM (x100 UPGRADE)
   ========================================================================== */

/* Glitch visual signaling */
body.perspective-shifting-glitch {
  animation: screenShake 0.4s infinite, colorDistort 1.2s ease-in-out;
  overflow: hidden !important;
}

body.perspective-shifting-glitch::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 99999;
  pointer-events: none;
  animation: crtFlicker 0.15s infinite;
}

/* perspective stability indicator HUD */
.perspective-hud {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
  width: 280px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(244, 239, 229, 0.1);
  padding: 12px 16px;
  font-family: monospace;
  font-size: 10px;
  color: var(--muted);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.perspective-hud.shifted {
  border-color: var(--gold);
  color: var(--paper);
  transform: translate3d(0, -10px, 0);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}

.hud-label {
  letter-spacing: 0.15em;
  margin-bottom: 8px;
  font-weight: 700;
}

.hud-bar-wrapper {
  width: 100%;
  height: 3px;
  background: rgba(244, 239, 229, 0.15);
  margin-bottom: 8px;
  overflow: hidden;
  position: relative;
}

.hud-bar-fill {
  height: 100%;
  background: var(--muted);
  transition: width 0.1s linear, background-color 0.4s ease;
}

.perspective-hud.shifted .hud-bar-fill {
  background: var(--gold);
}

.hud-value {
  text-align: right;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* Horizontal scroll layout mechanics */
body.scroll-horizontal {
  overflow: hidden !important;
  height: 100vh !important;
  width: 100vw !important;
}

body.scroll-horizontal #contenido {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  width: 100vw !important;
  height: 100vh !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: auto !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  transform: rotate3d(0, 1, 0, 0deg); /* setup for perspective animation */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.scroll-horizontal #contenido > section {
  flex: 0 0 auto !important;
  width: 100vw !important;
  height: 100vh !important;
  scroll-snap-align: start;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box;
  position: relative;
}

/* Ensure fixed UI elements stay accessible */
body.scroll-horizontal .site-header,
body.scroll-horizontal .consult-toggle,
body.scroll-horizontal .chat-widget-container {
  position: fixed !important;
  z-index: 999;
}

/* Enhancing cursor display in horizontal mode */
body.has-custom-cursor .custom-cursor-ring {
  opacity: 0.55; /* Force visibility by default */
}

.custom-cursor-ring.horizontal-scroll-mode {
  width: 70px;
  height: 70px;
  border-color: var(--gold);
  background-color: rgba(212, 175, 55, 0.04);
}

/* Animations */
@keyframes screenShake {
  0% { transform: translate(0, 0) rotate(0deg); }
  10% { transform: translate(-2px, 2px) rotate(-0.5deg); }
  30% { transform: translate(3px, -1px) rotate(0.8deg); }
  50% { transform: translate(-1px, -2px) rotate(-0.8deg); }
  70% { transform: translate(2px, 3px) rotate(0.5deg); }
  90% { transform: translate(-2px, 1px) rotate(-0.3deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes colorDistort {
  0% { filter: hue-rotate(0deg) contrast(1) saturate(1); }
  20% { filter: hue-rotate(90deg) contrast(1.3) saturate(1.5); }
  45% { filter: hue-rotate(180deg) contrast(1.8) saturate(2); }
  70% { filter: hue-rotate(270deg) contrast(1.3) saturate(1.5); }
  100% { filter: hue-rotate(360deg) contrast(1) saturate(1); }
}

@keyframes crtFlicker {
  0% { opacity: 0.85; }
  50% { opacity: 0.7; }
  100% { opacity: 0.85; }
}

/* ==========================================================================
   6. AUDIO DASHBOARD & SINESTESIA CONTROLLER (Industrial Noir)
   ========================================================================== */
.audio-dashboard {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 280px;
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(244, 239, 229, 0.1);
  padding: 12px 16px;
  font-family: monospace;
  font-size: 10px;
  color: var(--muted);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  z-index: 1001;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-dashboard.minimized {
  width: 180px;
  height: 34px;
  padding: 8px 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.audio-dashboard__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(244, 239, 229, 0.05);
  padding-bottom: 6px;
}

.audio-dashboard.minimized .audio-dashboard__header {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  height: 100%;
}

.audio-dashboard__title {
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--gold);
}

.audio-dashboard__minimize {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 10px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: color 0.2s ease;
}

.audio-dashboard__minimize:hover {
  color: var(--gold);
}

.audio-dashboard__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.audio-dashboard.minimized .audio-dashboard__body {
  opacity: 0;
  pointer-events: none;
  height: 0;
  margin: 0;
}

.audio-dashboard__visualizer {
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(244, 239, 229, 0.05);
  display: block;
}

.audio-dashboard__controls {
  display: flex;
  gap: 8px;
}

.audio-dashboard__btn {
  flex: 1;
  background: rgba(43, 59, 229, 0.15);
  border: 1px solid rgba(43, 59, 229, 0.4);
  color: #fff;
  padding: 8px;
  font-family: monospace;
  font-size: 9px;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.audio-dashboard__btn:hover {
  background: rgba(43, 59, 229, 0.3);
  border-color: #2B3BE5;
  box-shadow: 0 0 10px rgba(43, 59, 229, 0.3);
}

.audio-dashboard__btn.active {
  background: #2B3BE5;
  border-color: #2B3BE5;
  color: #fff;
  box-shadow: 0 0 15px rgba(43, 59, 229, 0.5);
}

.audio-dashboard__btn.active:hover {
  background: #3c4cf0;
}

.audio-dashboard__stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid rgba(244, 239, 229, 0.05);
  padding-top: 8px;
  font-size: 8px;
  letter-spacing: 0.05em;
}

.audio-dashboard__stat-row {
  display: flex;
  justify-content: space-between;
}

.audio-dashboard__stat-val {
  font-weight: 700;
  color: var(--paper);
}

.audio-dashboard__stat-val.active {
  color: #2B3BE5;
}


/* ==========================================================================
   6. VOICE OF NAROA & CRONOS MURAL ALTERNATION STYLES
   ========================================================================== */

.chat-voice-toggle {
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.25rem;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-voice-toggle:hover {
  background: rgba(244, 239, 229, 0.08);
  color: var(--paper);
}

.chat-voice-toggle.active {
  color: var(--gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.mural-frame-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050403;
}

.mural-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.mural-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.mural-slide.exit {
  opacity: 0;
  transform: scale(0.96);
  z-index: 1;
}

.mural-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: grayscale(0.08) saturate(0.92);
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.minimal-piece:hover .mural-slide img {
  opacity: 1;
  filter: grayscale(0) saturate(1.04);
}

/* Global Cronos Glitch Effect */
.cronos-glitching {
  animation: cronosColorShift 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes cronosColorShift {
  0% { filter: saturate(1) contrast(1) brightness(1); }
  10% { filter: saturate(2) contrast(1.3) brightness(1.2) hue-rotate(15deg); }
  15% { filter: saturate(0.5) contrast(0.8) brightness(0.9) hue-rotate(-10deg); }
  25% { filter: saturate(1.5) contrast(1.1) brightness(1.05) hue-rotate(5deg); }
  30% { filter: saturate(1) contrast(1) brightness(1); }
  100% { filter: saturate(1) contrast(1) brightness(1); }
}

/* ==========================================================================
   VIEW TRANSITIONS API (SOTA 2026)
   ========================================================================== */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.4s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

::view-transition-old(root) {
  animation-name: fade-out, slide-out;
}

::view-transition-new(root) {
  animation-name: fade-in, slide-in;
}

@keyframes fade-out {
  to { opacity: 0; }
}

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

@keyframes slide-out {
  to { transform: translateY(-12px); }
}

@keyframes slide-in {
  from { transform: translateY(12px); }
}

main {
  view-transition-name: main-content;
}

.site-header {
  view-transition-name: main-header;
}
