@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500&display=swap');
/* ==========================================================================
   SERRANO BOU - 3D INTERACTIVE PORTFOLIO
   Aesthetics: Deep Mysterious Black, Minimalist, White Lightbox Sidebar
   ========================================================================== */

:root {
  --color-bg: #000000;
  --color-card-bg: rgba(255, 255, 255, 0.03);
  --color-text-primary: #ffffff;
  --color-text-secondary: #8e8e93;
  --color-text-muted: #48484a;
  --color-border: rgba(255, 255, 255, 0.1);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  --font-luxe: 'Jost', 'Futura', 'Avenir Next', sans-serif; /* name and big titles */
  
  --sidebar-bg: #ffffff;
  --sidebar-text: #111111;
  --sidebar-border: #e5e5ea;
  
  scroll-behavior: smooth;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 3px;
}

/* WebGL Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Background Layer */
  pointer-events: auto; /* Active for Three.js Raycaster clicks */
}

/* Header & Hamburger menu */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 100;
  pointer-events: none; /* Let clicks pass through to canvas */
}

.header-container {
  max-width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-luxe);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: var(--color-text-primary);
  text-decoration: none;
  pointer-events: auto; /* Clickable */
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.7;
}

/* Hamburger toggle button */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  pointer-events: auto; /* Clickable */
  z-index: 200;
}

.hamburger-bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger open state */
.hamburger-btn.open .hamburger-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.hamburger-btn.open .hamburger-bar:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Fullscreen Menu Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 150;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 8px;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.menu-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.3s ease;
}

.menu-link:hover, 
.menu-link.active {
  color: var(--color-text-primary);
  transform: scale(1.05);
}

/* Scroll Container driving GSAP */
.scroll-container {
  position: relative;
  z-index: 2; /* Sits above WebGL */
  pointer-events: none; /* Let all clicks pass through to WebGL meshes */
}

.scroll-section {
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#penguin-hero {
  pointer-events: auto; /* Enable mouse interactions on this first screen */
  z-index: 2;
  background-color: #2bd9fe; /* Prevent black flash on load */
}

.penguin-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #2bd9fe; /* Solid Sky Blue Base */
  z-index: 2;
  overflow: hidden;
}

.penguin-hero-bg canvas {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  filter: blur(80px); /* Smooth liquid metaball blur blending */
  pointer-events: none;
}

.penguin-wrapper {
  position: absolute;
  right: -5vw;
  bottom: -2vh;
  height: 96vh;
  aspect-ratio: 640/462;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(-20px 20px 45px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 2;
}

.penguin-wrapper-mobile {
  display: none;
}



.penguin-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* Capa 2 (Centro - z-index: 2): Pingüino principal estático con estrangulamiento de alfa (erode) */
.pinguino-base {
  z-index: 2;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8));
  pointer-events: auto;
  opacity: 1;
}

/* Capa 3 & 4 (Frente - z-index: 3 y 4): Ojos y pupilas móviles aislados sin glitch */
.eye-left, .eye-center, .eye-right {
  z-index: 3;
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.5));
}

.pupil-left, .pupil-center, .pupil-right {
  z-index: 4;
  transition: transform 0.08s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gold-text-container {
  position: absolute;
  left: 8vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  text-align: left;
  pointer-events: auto;
}

.gold-text-loop {
  font-family: var(--font-luxe);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.2vw, 4.8rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  margin: 0;
  padding: 0;
  cursor: pointer;
  user-select: none;
  /* Dark hairline + soft shadow so the gold reads on the turquoise */
  display: flex;
  flex-wrap: wrap;
}

.char-wrapper {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  height: 1.22em;
  position: relative;
  padding: 0 1px;
}

.char {
  display: inline-block;
  position: relative;
  color: #fff;
  transition: transform 0.25s ease;
}

.char::after {
  content: attr(data-char);
  position: absolute;
  left: 100%;
  top: 0;
  width: 100%;
  height: 100%;
  color: #fff;
}

.letter-space {
  display: inline-block;
  width: 0.38em;
}

/* Individual character hover loop is handled dynamically in scripts.js via GSAP */

/* ==========================================================================
   REVEAL PIN CONTAINER & CLIP-PATH APERTURE SECTION
   ========================================================================== */

/* ==========================================================================
   REVEAL CONTAINER LAYERS & Z-INDEX DEPTH ARCHITECTURE
   ========================================================================== */

.perlas-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Fondo Base Turquoise */
  overflow: hidden;
  background-color: #17c3d6;
}

.perlas-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



#section-3 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3; /* Fondo Fucsia on top of Perlas/Turquoise but behind Foreground */
  overflow: hidden;
  background-color: transparent;
}

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

.penguin-foreground {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10; /* Sits permanently in front of backgrounds */
  pointer-events: none;
  overflow: hidden;
}

.char-1, .char-2 {
  color: #fff; /* flat white: no gradient; reads on turquoise and over the penguin */
  display: inline-block;
}

.slide-content {
  max-width: 800px;
  width: 100%;
  padding: 0 40px;
  text-align: center;
}

/* Specific Slide Elements */
.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-secondary);
}

.arrow-down {
  animation: bounce 2s infinite;
}

.slide-narrative {
  font-family: var(--font-luxe);
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: #fff;
  text-transform: uppercase;
  max-width: 13ch;
  text-align: left;
}

.interactive-prompt {
  display: block;
  text-align: left;
}
.interactive-prompt p { max-width: 11ch; }

.interactive-prompt p {
  font-family: var(--font-luxe);
  font-weight: 500;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 1.02;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.35em;
}

.interactive-prompt span {
  display: block;
  font-family: var(--font-luxe);
  font-size: clamp(0.9rem, 1.3vw, 1.1rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  max-width: 34ch;
}

/* Scroll Section Spacing at Footer */
.footer-slide {
  height: 120vh; /* Extra height to scroll past contact block */
  align-items: flex-start;
  padding-top: 15vh;
}

.contact-card {
  background-color: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 60px;
  border: 1px solid var(--color-border);
  max-width: 600px;
  margin: 0 auto;
  pointer-events: auto; /* Clickable */
}

.contact-title {
  font-family: var(--font-luxe);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-text {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.email-link {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 300;
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 30px;
  transition: border-color 0.2s ease;
}

.email-link:hover {
  border-bottom-color: var(--color-text-primary);
}

.interior-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   2D ARTWORK PREVIEW OVERLAY (Desktop Only)
   ========================================================================== */

.artwork-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: calc(100vw - 420px);
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 199;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-preview-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.artwork-preview-container {
  max-width: 85%;
  max-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.artwork-preview-overlay img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: scale(0.96);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-preview-overlay.open img {
  transform: scale(1.0);
}

.sidebar-image-container {
  width: 100%;
  margin-top: 15px;
  margin-bottom: 30px;
  border: 1px solid var(--sidebar-border);
  background-color: #f6f6f9;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
}

.sidebar-image-container img {
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

@media (min-width: 769px) {
  .sidebar-image-container {
    display: none; /* Only show in floating overlay on desktop */
  }
}

@media (max-width: 768px) {
  .artwork-preview-overlay {
    display: none !important; /* Hide overlay on mobile, display image inside sidebar */
  }
}

/* ==========================================================================
   SIDEBAR DETAIL PANEL (Immaculate White)
   ========================================================================== */

.sidebar-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  height: 100%;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  z-index: 200; /* Stays on top of everything */
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.3);
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

.sidebar-panel.open {
  transform: translateX(0);
}

.sidebar-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sidebar-text);
  padding: 8px;
  transition: transform 0.2s ease;
}

.sidebar-close:hover {
  transform: rotate(90deg);
}

.sidebar-category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: block;
}

.sidebar-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.sidebar-year {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
}

.sidebar-divider {
  border: none;
  height: 1px;
  background-color: var(--sidebar-border);
  margin: 24px 0;
}

.sidebar-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-specs p {
  font-size: 0.8rem;
  color: #333333;
}

.sidebar-specs strong {
  font-weight: 500;
  color: var(--sidebar-text);
  display: inline-block;
  width: 90px;
}

.sidebar-description {
  font-size: 0.85rem;
  font-weight: 300;
  color: #444446;
  line-height: 1.6;
}

.sidebar-inquire-btn {
  display: block;
  text-align: center;
  background-color: var(--sidebar-text);
  color: #ffffff;
  text-decoration: none;
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
  margin-top: 30px;
}

.sidebar-inquire-btn:hover {
  opacity: 0.85;
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

@media (max-width: 768px) {
  .header-container {
    padding: 0 20px;
  }
  
  .sidebar-panel {
    width: 100%;
    padding: 40px 30px;
  }
  
  .contact-card {
    padding: 40px 24px;
  }
  
  .interactive-prompt {
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .logo {
    letter-spacing: 0.15em;
    font-size: 0.95rem;
  }
  
  .email-link {
    font-size: 1.4rem;
  }
}

/* ==========================================================================
   BIOGRAPHY TIMELINE STYLES (Immaculate White Theme)
   ========================================================================== */

.biografia-page {
  background-color: #ffffff !important;
  color: #111111 !important;
}

.biografia-page .logo {
  color: #111111 !important;
}

.biografia-page .hamburger-bar {
  background-color: #111111 !important;
}

.biografia-page .hamburger-btn.open .hamburger-bar {
  background-color: #ffffff !important;
}

.biografia-page .content-wrapper {
  padding: 150px 0 80px 0;
  background-color: #ffffff;
}

.bio-detail-section {
  width: 100%;
}

.bio-detail-header {
  text-align: center;
  margin-bottom: 70px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.bio-main-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111111;
  margin-bottom: 12px;
}

.bio-main-tagline {
  font-size: 0.9rem;
  color: #666668;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.bio-timeline-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.timeline-group {
  margin-bottom: 70px;
}

.timeline-group-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #8e8e93;
  border-bottom: 1px solid #e5e5ea;
  padding-bottom: 12px;
  margin-bottom: 35px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.timeline-meta {
  text-align: right;
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #111111;
}

.timeline-content {
  text-align: left;
}

.timeline-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #111111;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.85rem;
  font-weight: 300;
  color: #333333;
  line-height: 1.7;
}

.timeline-content strong {
  font-weight: 500;
  color: #111111;
}

.bio-detail-footer {
  text-align: center;
  margin-top: 60px;
}

.back-home-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #111111;
  padding-bottom: 4px;
  transition: opacity 0.2s ease;
}

.back-home-btn:hover {
  opacity: 0.65;
}

.biografia-page .main-footer {
  background-color: #ffffff;
  color: #8e8e93;
  border-top: 1px solid #e5e5ea;
  padding: 40px 0;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 768px) {
  .bio-timeline-container {
    padding: 0 20px;
  }
  
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 30px;
  }
  
  .timeline-meta {
    text-align: left;
  }
}

/* ==========================================================================
   RESPONSIVE DESIGN FOR MOBILE & TABLET (HERO SECTION & PENGUIN)
   ========================================================================== */

/* Mobile Screens (portrait & landscape small) */
@media (max-width: 768px) {
  .penguin-foreground {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
  }

  .penguin-wrapper {
    display: none; /* Hide desktop horizontal penguin */
  }

  .penguin-wrapper-mobile {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centered horizontally */
    top: 2vh; /* Positioned higher to gain vertical canvas space */
    height: 76vh; /* Scaled to occupy maximum height above text */
    aspect-ratio: 534/949; /* Exact vertical image aspect ratio */
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0px 15px 30px rgba(0, 0, 0, 0.45));
    pointer-events: none;
    z-index: 2;
  }

  .gold-text-container {
    position: absolute;
    top: 82vh; /* Centered in the bottom third/half portion */
    left: 50%;
    transform: translateX(-50%); /* Centered horizontally */
    right: auto;
    text-align: center;
    margin: 0;
    width: 100%;
  }

  .gold-text-loop {
    justify-content: center; /* Center characters horizontally */
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: 0.12em;
  }
}

/* Tablet Screens */
@media (min-width: 769px) and (max-width: 1024px) {
  .gold-text-container {
    left: 6vw;
    top: 50%;
  }

  .gold-text-loop {
    font-size: clamp(2rem, 5vw, 3.4rem);
  }

  .penguin-wrapper {
    right: -2vw;
    height: 72vh;
    max-height: 80vh;
  }
}


/* ===== SALA: collection room opened from a sculpture fragment ===== */
html.sala-lock, html.sala-lock body { overflow: hidden; }
.sala {
  --sala-accent: #c9a24a;
  position: fixed; inset: 0; z-index: 9000;
  display: grid; grid-template-rows: auto 1fr auto; gap: 2vh;
  padding: max(5vh, 64px) 0 3vh;
  background:
    radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--sala-accent) 28%, transparent), transparent 60%),
    #0b0b0c;
  color: #f4f1ea;
  opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .35s;
}
.sala.open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.sala-close {
  position: absolute; top: max(24px, env(safe-area-inset-top, 0px)); right: max(24px, env(safe-area-inset-right, 0px));
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.35); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 3;
}
.sala-close:hover { border-color: var(--sala-accent); color: var(--sala-accent); }
.sala-head { padding: 0 max(6vw, 20px); max-width: 980px; }
.sala-index { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--sala-accent); }
.sala-title {
  font-family: var(--font-luxe); font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  font-size: clamp(30px, 4.4vw, 68px); line-height: 1.02; margin: .25em 0 .3em;
}
.sala-meta { font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(244,241,234,.6); margin: 0 0 .8em; }
.sala-text { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 15px; line-height: 1.6; max-width: 62ch; margin: 0; color: rgba(244,241,234,.85); }
.sala-track {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; overscroll-behavior: contain;
  padding: 0 max(6vw, 20px); cursor: grab; scrollbar-width: thin; scrollbar-color: var(--sala-accent) transparent;
  min-height: 0; outline: none;
}
.sala-track:active { cursor: grabbing; }
.sala-work { flex: 0 0 auto; height: 100%; max-height: 64vh; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  opacity: 0; transform: translateY(24px); }
.sala.open .sala-work { animation: salaIn .5s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(.1s + var(--d)); }
@keyframes salaIn { to { opacity: 1; transform: none; } }
.sala-frame {
  position: relative; height: calc(100% - 28px); width: auto; aspect-ratio: var(--ar); max-width: 80vw;
  box-shadow: 0 30px 60px rgba(0,0,0,.55); cursor: none;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.sala-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; user-select: none; -webkit-user-drag: none; }
/* Raking light: a warm spot where the pointer is (gold and tacks flare), the rest falls into shade */
.sala-light {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s ease;
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 236, 190, .95) 0%, rgba(255, 214, 140, .55) 12%, rgba(255, 200, 120, 0) 34%);
  mix-blend-mode: overlay;
}
.sala-light::before, .sala-light::after { content: ''; position: absolute; inset: 0; }
.sala-light::before { /* shade away from the light */
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(0,0,0,0) 22%, rgba(0,0,0,.5) 70%);
  mix-blend-mode: multiply;
}
.sala-light::after { /* specular glint on the gold */
  background: radial-gradient(circle at var(--lx, 50%) var(--ly, 40%), rgba(255, 226, 160, .5) 0%, rgba(255, 226, 160, 0) 9%);
  mix-blend-mode: color-dodge;
}
.sala-frame.lit .sala-light, .sala-lb-frame.lit .sala-light { opacity: 1; }
.sala-work figcaption { font-family: 'Inter', sans-serif; font-size: 12px; letter-spacing: .08em; color: rgba(244,241,234,.65); }
/* Collection index: a typographic catalogue line, numbered, no chips */
.sala-nav {
  display: flex; gap: clamp(18px, 2.6vw, 40px); overflow-x: auto; scrollbar-width: none;
  padding: 14px max(6vw, 20px) 4px; border-top: 1px solid rgba(244,241,234,.12);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 max(6vw, 20px), #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 max(6vw, 20px), #000 calc(100% - 60px), transparent 100%);
}
.sala-nav::-webkit-scrollbar { display: none; }
.sala-nav button {
  flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 10px; padding: 6px 0;
  font-family: var(--font-luxe); font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,241,234,.42); background: none; border: 0; border-bottom: 1px solid transparent; border-radius: 0; cursor: pointer;
  transition: color .3s ease, border-color .3s ease;
}
.sala-nav button .n { font-size: 10px; letter-spacing: .1em; color: rgba(244,241,234,.3); font-variant-numeric: tabular-nums; }
.sala-nav button:hover { color: rgba(244,241,234,.85); }
.sala-nav button.on { color: #fff; border-bottom-color: #c9962e; }
.sala-nav button.on .n { color: #c9962e; }
.sala-nav button:focus-visible { outline: 1px solid #c9962e; outline-offset: 4px; }
.sala-lightbox {
  position: fixed; inset: 0; z-index: 4; background: rgba(5,5,6,.96); display: grid; place-items: center; padding: 4vh 4vw 10vh;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; cursor: none;
}
.sala-lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.sala-lb-frame { position: relative; display: inline-block; line-height: 0; transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.sala-lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.sala-lb-wall { font: inherit; font-size: 13px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.sala-lb-wall:hover { border-color: var(--sala-accent); color: var(--sala-accent); }

/* See it on your wall */
.sala-wall { position: fixed; inset: 0; z-index: 6; background: #0b0b0c; display: grid; grid-template-rows: 1fr auto auto; gap: 10px; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.sala-wall.open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.wall-stage { position: relative; overflow: hidden; border-radius: 4px; min-height: 0; touch-action: none; }
.wall-stage.custom { aspect-ratio: var(--wall-ar, 1.5); height: 100%; width: auto; max-width: 100%; justify-self: center; }
.wall-stage.custom .wall-bg { background-size: 100% 100%; }
.wall-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #ece6dc 0%, #e3dbcf 74%, #b9a48a 74.2%, #a48e73 100%); background-size: cover; background-position: center; }
.wall-stage.custom .wall-sofa { display: none; }
.wall-sofa { position: absolute; left: 50%; bottom: 25.8%; width: 52%; transform: translateX(-50%); pointer-events: none; opacity: .9; }
.wall-art { position: absolute; transform: translate(-50%, -50%); object-fit: fill; box-shadow: 0 14px 28px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.25); cursor: grab; touch-action: none; user-select: none; }
.wall-art:active { cursor: grabbing; }
.wall-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(244,241,234,.85); }
.wall-title { font-family: var(--font-luxe); letter-spacing: .14em; text-transform: uppercase; margin-right: auto; }
.wall-size { display: flex; gap: 8px; align-items: center; }
.wall-size input { width: 140px; accent-color: var(--sala-accent); }
.wall-upload { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.wall-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wall-reset, .wall-close { font: inherit; color: inherit; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.wall-close { border-color: var(--sala-accent); color: #fff; }
.wall-hint { margin: 0; font-family: 'Inter', sans-serif; font-size: 12px; color: rgba(244,241,234,.55); }
.sala-lb-caption { position: absolute; bottom: max(3vh, env(safe-area-inset-bottom, 0px)); left: 0; right: 0; display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 0 20px;
  font-family: 'Inter', sans-serif; font-size: 13px; color: rgba(244,241,234,.8); }
.sala-lb-ask { color: var(--sala-accent); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* Lightbox Ask Menu / Popover */
.sala-lb-contact-wrap { position: relative; display: inline-flex; align-items: center; }
.sala-lb-menu {
  position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: rgba(18, 18, 20, 0.95); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid rgba(244, 241, 234, 0.15); box-shadow: 0 16px 40px rgba(0,0,0,0.7);
  padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 270px; max-width: 90vw;
  opacity: 0; pointer-events: none; visibility: hidden; transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 10; text-align: left;
}
.sala-lb-menu.open {
  opacity: 1; pointer-events: auto; visibility: visible; transform: translateX(-50%) translateY(0);
}
.sala-lb-opt { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.sala-lb-opt-btn { text-align: left; align-self: flex-start; color: var(--sala-accent); border-bottom-color: var(--sala-accent); }
.sala-lb-opt-hint { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: 0.02em; text-transform: none; color: rgba(244,241,234,0.6); line-height: 1.4; }
.sala-lb-opt.disabled .sala-lb-opt-btn { opacity: 0.5; cursor: default; border-bottom: 1px dashed rgba(244,241,234,0.3); color: rgba(244,241,234,0.6); }

/* Feedback Toast Notification */
.sala-toast {
  position: fixed; top: 32px; left: 50%; transform: translateX(-50%) translateY(-12px);
  background: rgba(20, 20, 22, 0.96); border: 1px solid #c9962e; color: #fff;
  padding: 12px 24px; font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 0.04em;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6); pointer-events: none; opacity: 0; z-index: 9999;
  transition: opacity .3s ease, transform .3s ease; text-align: center; max-width: 90vw;
}
.sala-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 768px) {
  .sala { padding-top: 84px; gap: 14px; }
  .sala-text { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .sala-work { max-height: 46vh; }
  .sala-frame { max-width: 84vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sala, .sala.open, .sala-work { transition: none; animation: none; opacity: 1; transform: none; }
}

/* Phones: shorter 3D scroll so the sculpture breaks apart sooner */
@media (max-width: 768px) {
  #deconstruction-slide, #mosaic-slide { height: 60vh; }
}


/* Statements sit on the left third, leaving the sculpture the centre */
#deconstruction-slide .slide-content, #mosaic-slide .slide-content {
  width: 100%; max-width: none; padding: 0 6vw; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}
#mosaic-slide .slide-content { align-items: flex-end; }
#mosaic-slide .interactive-prompt { text-align: right; }
#mosaic-slide .interactive-prompt span, #mosaic-slide .interactive-prompt p { margin-left: auto; }
.slide-narrative, .interactive-prompt p { font-size: clamp(2rem, 4.2vw, 4.2rem); text-shadow: 0 2px 24px rgba(0,0,0,.55); }
.interactive-prompt span { text-shadow: 0 1px 12px rgba(0,0,0,.7); }
@media (max-width: 768px) {
  .slide-narrative, .interactive-prompt p { font-size: clamp(1.8rem, 9vw, 2.6rem); }
}

/* Drawing of the day (today.js) */
.footer-slide .slide-content { max-width: 1100px; display: flex; flex-direction: column; align-items: center; gap: 12vh; }
.today { pointer-events: auto; position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: center; width: 100%; text-align: left; }
.today-img { display: block; background: #f4f1ea; padding: clamp(10px, 1.6vw, 22px); box-shadow: 0 30px 70px rgba(0,0,0,.6); transform: rotate(-1.5deg); transition: transform .5s ease; }
.today-img:hover { transform: rotate(0deg) scale(1.01); }
.today-img img { display: block; width: 100%; height: auto; max-height: 62vh; object-fit: contain; }
.today figcaption { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.today-kicker { font-family: var(--font-luxe); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #c9962e; }
.today-code { font-family: var(--font-luxe); font-weight: 500; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1; letter-spacing: .04em; color: #fff; }
.today-date { font-family: var(--font-luxe); font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.today-text { font-family: 'Inter', sans-serif; font-weight: 300; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.75); max-width: 42ch; margin: 8px 0 0; }
.today-open { align-self: flex-start; font-family: var(--font-luxe); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid #c9962e; padding-bottom: 4px; margin-top: 6px; }
.today-open:hover { color: #f3d27a; }
@media (max-width: 768px) {
  .today { grid-template-columns: 1fr; }
  .today-img { max-width: 78vw; justify-self: center; }
}

/* Language switch in the menu */
.lang-switch { position: absolute; bottom: max(40px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.lang-switch button { font-family: var(--font-luxe); font-size: 13px; letter-spacing: .2em; color: rgba(255,255,255,.55); background: transparent; border: 0; padding: 8px 10px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { color: #fff; border-bottom: 1px solid #c9962e; }
.lang-switch button:focus-visible { outline: 1px solid #c9962e; outline-offset: 2px; }

/* Drawings room: end card of the daily reveal, with a barely visible trapdoor */
.sala-daily { flex: 0 0 auto; align-self: center; width: min(320px, 70vw); display: flex; flex-direction: column; gap: 10px; padding: 0 2vw; color: rgba(244,241,234,.85); }
.sala-daily p { margin: 0; font-family: var(--font-luxe); font-size: clamp(18px, 2vw, 26px); letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.sala-daily .sala-daily-left { font-size: 13px; letter-spacing: .22em; color: rgba(244,241,234,.55); }
.sala-trap { width: 14px; height: 14px; margin-top: 28px; border-radius: 50%; border: 1px solid rgba(244,241,234,.18); background: transparent; cursor: pointer; padding: 0; transition: border-color .4s, transform .4s, box-shadow .4s; }
.sala-trap:hover, .sala-trap:focus-visible { border-color: #c9962e; transform: scale(1.6); box-shadow: 0 0 18px rgba(201,150,46,.45); outline: none; }

/* Room controls: typographic links instead of rounded pills */
.sala-lb-wall, .wall-upload, .wall-reset, .wall-close, .sala-lb-ask, .sala-lb-opt-btn {
  font-family: var(--font-luxe); font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(244,241,234,.85); background: none; border: 0; border-radius: 0; padding: 6px 0;
  border-bottom: 1px solid rgba(244,241,234,.3); text-decoration: none; cursor: pointer; transition: color .3s, border-color .3s;
}
.sala-lb-wall:hover, .wall-upload:hover, .wall-reset:hover, .wall-close:hover, .sala-lb-ask:hover, .sala-lb-opt-btn:hover { color: #fff; border-bottom-color: #c9962e; }
.wall-close { border-bottom-color: #c9962e; }
.wall-size span { font-family: var(--font-luxe); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.wall-size input { accent-color: #c9962e; }
.sala-track { scrollbar-width: thin; scrollbar-color: rgba(244,241,234,.25) transparent; }
.sala-track::-webkit-scrollbar { height: 2px; }
.sala-track::-webkit-scrollbar-thumb { background: rgba(244,241,234,.3); }
.sala-close { border-color: rgba(244,241,234,.2); background: transparent; }

/* Keep the drawing-of-the-day text readable over passing fragments */
.today figcaption { position: relative; padding: clamp(18px, 2.4vw, 32px); background: rgba(5,5,5,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }


/* MIRADA: the painted eyes of a face turn real for a moment (mirada.js) */
.mirada-eye { position: absolute; z-index: 2; pointer-events: none; background-size: 150% auto; background-position: 50% 50%; background-repeat: no-repeat;
  clip-path: ellipse(50% 46% at 50% 50%); opacity: 0; transform: scale(.85); transition: opacity .9s ease, transform 1.2s cubic-bezier(.2,.8,.2,1), background-position .3s ease-out; }
.mirada-eye.on { opacity: 1; transform: none; }
.mirada-eye i { position: absolute; inset: 0; background: #1a1a1a; transform: scaleY(0); transform-origin: top; transition: transform .08s ease-in; }
.mirada-eye.blink i { transform: scaleY(1); }
.mirada-line { font-family: var(--font-luxe); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #c9962e; opacity: 0; transition: opacity .8s ease; }
.mirada-line.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mirada-eye, .mirada-line { transition: none; } }

/* Fragment label: hairline + decoding collection name (label.js) */
.frag-label { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.frag-label.on { opacity: 1; }
.fl-line { position: absolute; left: 0; top: 0; width: 90px; height: 1px; background: rgba(244,241,234,.75); transform-origin: 0 0; transform: rotate(-32deg) scaleX(0); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.frag-label.on .fl-line { transform: rotate(-32deg) scaleX(1); }
.fl-box { position: absolute; left: 76px; top: -62px; display: flex; flex-direction: column; gap: 4px; white-space: nowrap; }
.fl-n { font-family: var(--font-luxe); font-size: 10px; letter-spacing: .3em; color: #c9962e; }
.fl-name { font-family: var(--font-luxe); font-size: 13px; font-weight: 400; letter-spacing: .28em; color: #f4f1ea; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.frag-label.flip .fl-line { transform: rotate(212deg) scaleX(0); }
.frag-label.flip.on .fl-line { transform: rotate(212deg) scaleX(1); }
.frag-label.flip .fl-box { left: auto; right: 76px; align-items: flex-end; }
@media (hover: none) { .frag-label { display: none; } }

/* Tiny language switch in the header, next to the menu button */
.lang-switch.lang-mini { position: static; transform: none; margin-left: auto; margin-right: 22px; gap: 2px; }
.lang-switch.lang-mini button { font-size: 10px; letter-spacing: .18em; padding: 4px 5px; color: rgba(255,255,255,.5); }
.lang-switch.lang-mini button[aria-pressed="true"] { color: #fff; border-bottom: 1px solid #c9962e; }
.lang-switch.lang-mini button:hover { color: #fff; }

/* Room cursor (sala.js): replaces the system magnifier */
.sala-cursor { position: fixed; left: 0; top: 0; z-index: 7; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.sala-cursor.on { opacity: 1; }
.sala-cursor span { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 1px solid rgba(244,241,234,.85);
  display: grid; place-items: center; font-family: var(--font-luxe); font-size: 0; letter-spacing: .24em; text-transform: uppercase; color: #fff;
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), margin .35s cubic-bezier(.2,.8,.2,1), font-size .2s ease, background-color .35s ease; }
.sala-cursor.big span { width: 74px; height: 74px; margin: -37px 0 0 -37px; font-size: 10px; padding-left: .24em; background: rgba(10,10,10,.18); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@media (hover: none) { .sala-cursor { display: none; } }

/* Fragment label legibility over busy artwork */
.fl-box { padding: 9px 14px 10px; background: rgba(6,6,8,.72); -webkit-backdrop-filter: blur(10px) saturate(.6); backdrop-filter: blur(10px) saturate(.6); border-left: 1px solid #c9962e; }
.frag-label.flip .fl-box { border-left: 0; border-right: 1px solid #c9962e; }
.fl-name { font-weight: 500; text-shadow: none; }
.fl-n { color: #e0b24a; }
.fl-line { background: #f4f1ea; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }

/* Fragment label: liquid glass — refracts what's behind (SVG displacement), clear body, specular rims */
.fl-box {
  padding: 12px 22px 13px; border: 0; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(1px) saturate(1.6) brightness(1.1); backdrop-filter: url(#lg-refract) blur(.6px) saturate(1.6) brightness(1.1);
  box-shadow:
    inset 2px 2px 1px -1px rgba(255,255,255,.95),   /* top-left specular rim */
    inset -2px -2px 1px -1px rgba(255,255,255,.6),  /* bottom-right rim */
    inset 3px 0 6px -3px rgba(255,140,220,.35),     /* iridescent edge, warm side */
    inset -3px 0 6px -3px rgba(120,220,255,.35),    /* iridescent edge, cool side */
    inset 0 0 0 1px rgba(255,255,255,.2),           /* hairline */
    inset 0 0 14px rgba(255,255,255,.1),            /* inner glow */
    0 8px 28px rgba(0,0,0,.22);
}
.fl-box::before { /* soft caustic light inside the lens */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 55%),
              radial-gradient(80% 70% at 100% 100%, rgba(255,255,255,.12), rgba(255,255,255,0) 60%);
}
.frag-label.flip .fl-box { border: 0; }
.fl-name { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.fl-n { color: rgba(255,255,255,.75); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.frag-label .fl-box { transform: scale(.9); opacity: 0; transition: transform .55s cubic-bezier(.2,1.5,.3,1), opacity .3s ease; }
.frag-label.on .fl-box { transform: none; opacity: 1; }

/* Mirada: collage cut of Quim's glasses */
.mirada-band { position: absolute; z-index: 2; aspect-ratio: 1.8; pointer-events: none; background: url('assets/mirada/gafas.webp') center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 50% 30% at 50% 58%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 50% 30% at 50% 58%, #000 72%, transparent 100%);
  opacity: 0; translate: var(--px, 0) var(--py, 0); filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: opacity 1s ease, translate .3s ease-out; }
.mirada-band.on { opacity: 1; }

/* Fragment label: text only, no plate. Letters invert whatever is behind them, so they always read */
.frag-label { mix-blend-mode: difference; }
.frag-label .fl-box, .frag-label.flip .fl-box {
  padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
  -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; opacity: 1; transition: none;
}
.frag-label .fl-box::before { content: none; }
.fl-name { color: #fff; text-shadow: none; font-weight: 500; }
.fl-n { color: #fff; opacity: .7; text-shadow: none; }
.fl-line { background: #fff; box-shadow: none; }
.fl-name { font-size: 16px; font-weight: 600; letter-spacing: .24em; }
.fl-n { font-size: 11px; font-weight: 500; }
