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

html,
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ========== PALETTES ========== */
html[data-palette='bronce-noir'] {
  --bg: #0a0908;
  --bg-soft: #141210;
  --fg: #e8e3d8;
  --fg-dim: #a49b8c;
  --fg-faint: #5a5247;
  --accent: #c9a876;
  --accent-deep: #8a5a3b;
  --line: #2a2520;
  --grain-opacity: 0.08;
}

html[data-palette='vino-marfil'] {
  --bg: #1a0f0a;
  --bg-soft: #22140d;
  --fg: #f5ecdf;
  --fg-dim: #b8a89a;
  --fg-faint: #6a5a4d;
  --accent: #b88a5a;
  --accent-deep: #6b2737;
  --line: #3a2820;
  --grain-opacity: 0.1;
}

html[data-palette='marfil-claro'] {
  --bg: #f4f1ea;
  --bg-soft: #ece8de;
  --fg: #1a1612;
  --fg-dim: #5a544a;
  --fg-faint: #a49b8c;
  --accent: #8a5a3b;
  --accent-deep: #3a2820;
  --line: #d8d2c4;
  --grain-opacity: 0.04;
}

html[data-palette='cobre-carbon'] {
  --bg: #120d0a;
  --bg-soft: #1d1612;
  --fg: #ede0cc;
  --fg-dim: #a89578;
  --fg-faint: #5a4a36;
  --accent: #d48a3f;
  --accent-deep: #a04818;
  --line: #2f251c;
  --grain-opacity: 0.09;
}

html[data-palette='rosa-velo'] {
  /* Soft blush — pastel rose cream with dusty rose accents, feminine & tender */
  --bg: #f7ecec;
  --bg-soft: #efe0e0;
  --fg: #2a1820;
  --fg-dim: #7a5a65;
  --fg-faint: #b89ba4;
  --accent: #c47b87;
  --accent-deep: #7a3645;
  --line: #e4cfd2;
  --grain-opacity: 0.05;
}

html[data-palette='rosa-penumbra'] {
  /* Mystical blush noir — deep burgundy-plum base with dusty pink glow */
  --bg: #1a0e12;
  --bg-soft: #24141a;
  --fg: #f3dfe2;
  --fg-dim: #bb9099;
  --fg-faint: #6a4a54;
  --accent: #e8a8b2;
  --accent-deep: #a8546a;
  --line: #3a202a;
  --grain-opacity: 0.09;
}

html[data-palette='durazno-seda'] {
  /* Peach silk — warm pastel coral-rose, airy and sensitive */
  --bg: #fbeee6;
  --bg-soft: #f5e2d6;
  --fg: #2b1a1a;
  --fg-dim: #85605a;
  --fg-faint: #c3a199;
  --accent: #d88a82;
  --accent-deep: #8a3a3a;
  --line: #ead3c6;
  --grain-opacity: 0.04;
}

html[data-palette='foto-ambar'] {
  /* Drawn from stage photo — amber skin light on deep black, warm & theatrical */
  --bg: #0c0807;
  --bg-soft: #140c0a;
  --fg: #ecd9c2;
  --fg-dim: #a68971;
  --fg-faint: #5a4538;
  --accent: #e0a678;
  --accent-deep: #9a4e30;
  --line: #241815;
  --grain-opacity: 0.09;
}

html[data-palette='foto-malva'] {
  /* Drawn from mauve studio photo — dusty mauve with plum accents, tender */
  --bg: #e9d5d8;
  --bg-soft: #e0c6cb;
  --fg: #2a1720;
  --fg-dim: #6e4d58;
  --fg-faint: #a98791;
  --accent: #9d4a66;
  --accent-deep: #5a2638;
  --line: #d3b5bc;
  --grain-opacity: 0.05;
}

html[data-palette='foto-ciruela'] {
  /* Drawn from colonial-space photo — plum leotard, terracotta wall, warm glow */
  --bg: #1a0f14;
  --bg-soft: #241420;
  --fg: #e8d4c2;
  --fg-dim: #b0897a;
  --fg-faint: #6b4d48;
  --accent: #d08a6a;
  --accent-deep: #5a2235;
  --line: #331c28;
  --grain-opacity: 0.09;
}

/* ========== FONTS ========== */
html[data-display='instrument-italic'] {
  --f-display: 'Instrument Serif', serif;
  --display-style: italic;
  --display-weight: 400;
}

html[data-display='fraunces-italic'] {
  --f-display: 'Fraunces', serif;
  --display-style: italic;
  --display-weight: 300;
}

html[data-display='fraunces-roman'] {
  --f-display: 'Fraunces', serif;
  --display-style: normal;
  --display-weight: 400;
}

html[data-display='grotesk-italic'] {
  --f-display: 'Familjen Grotesk', sans-serif;
  --display-style: italic;
  --display-weight: 500;
}

html {
  --f-body: 'Familjen Grotesk', 'Helvetica Neue', sans-serif;
}

/* ========== GLOBAL ========== */
body {
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.005em;
}

/* Grain overlay — subtle texture across whole site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.display {
  font-family: var(--f-display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  letter-spacing: -0.01em;
  line-height: 0.95;
}

/* Mono label */
.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 500;
}

/* Section frame */
section {
  position: relative;
  padding: min(14vw, 180px) clamp(24px, 6vw, 80px);
}

.container {
  max-width: 1440px;
  margin: 0 auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.2s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 1.2s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal.d1 {
  transition-delay: 0.08s;
}

.reveal.d2 {
  transition-delay: 0.18s;
}

.reveal.d3 {
  transition-delay: 0.3s;
}

.reveal.d4 {
  transition-delay: 0.42s;
}

.reveal.d5 {
  transition-delay: 0.55s;
}

/* placeholders */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-soft) 0 14px,
      #0000 14px 28px
    ),
    var(--bg-soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  overflow: hidden;
}

.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 30%,
    color-mix(in oklab, var(--accent-deep) 20%, transparent),
    transparent 60%
  );
  pointer-events: none;
}

.ph-label {
  position: relative;
  z-index: 2;
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: color-mix(in oklab, var(--bg) 60%, transparent);
  padding: 6px 10px;
  border: 1px solid var(--line);
  max-width: 90%;
}

hr.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px clamp(24px, 6vw, 80px);
  color: var(--fg);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition: padding 0.5s ease;
}

.nav > * {
  pointer-events: auto;
}

.nav.scrolled {
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-mark {
  font-family: var(--f-display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: 20px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.nav-links a {
  opacity: 0.75;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 1;
}

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

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  height: 100svh;
  padding: 0;
  display: grid;
  place-items: stretch;
  position: relative;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 18% 40%,
      color-mix(in oklab, var(--accent-deep) 30%, transparent) 0%,
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

/* Photograph — lives on the right, full figure visible with soft fade into bg */
/* Tres zonas de color + fades suaves entre ellas:
   0-30%: bg principal (burgundy profundo)
   30-50%: bg-soft (ciruela intermedio)
   50-100%: rosa del fondo de la foto, donde se monta la foto encima */
.hero-photo {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  /* Single 2-stop gradient in oklab — the eye can't detect bands because
     there are no mid-stops to create slope changes (Mach banding). */
  background: linear-gradient(in oklab 90deg, var(--bg) 15%, #8a556a 50%);
  pointer-events: none;
}

/* SVG grain overlay to break up residual banding (dither effect) */
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 3;
}

/* Foto anclada a la derecha con zoom para que la figura llene verticalmente */
.hero-photo-img {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 60%;
  object-fit: cover;
  object-position: 40% center;
  filter: saturate(0.92) contrast(1.02);
  pointer-events: none;
  z-index: 1;
  /* desvanece el borde izquierdo de la foto hacia el gradiente rosa del
     contenedor, para que el cambio de textura/color sea imperceptible */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 25%,
    #000 100%
  );
  mask-image: linear-gradient(90deg, transparent 0%, #000 25%, #000 100%);
}

.hero-photo::after {
  /* subtle bottom vignette for legibility of footer captions */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 70%,
    rgba(0, 0, 0, 0.3) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-photo-tint {
  /* warm tonal wash to homologate with the palette */
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 50% at 40% 50%,
    color-mix(in oklab, var(--accent-deep) 20%, transparent),
    transparent 70%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-photo {
    width: 100%;
    background: var(--bg);
  }

  .hero-photo-img {
    width: 100%;
    opacity: 0.55;
    /* bottom fade for legibility of caption row, no left fade on mobile */
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 70%,
      transparent 100%
    );
    mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 70%,
      transparent 100%
    );
  }

  .hero-photo-tint {
    /* darker overall tint on mobile so text stays readable over the full-bleed photo */
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.25) 40%,
        rgba(0, 0, 0, 0.55) 100%
      ),
      radial-gradient(
        ellipse 60% 50% at 40% 50%,
        color-mix(in oklab, var(--accent-deep) 20%, transparent),
        transparent 70%
      );
    mix-blend-mode: normal;
  }
}

/* Thin caption for the photograph */
.hero-photo-cap {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: right center;
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 75%, transparent);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}

@media (max-width: 900px) {
  .hero-photo-cap {
    display: none;
  }
}

.hero-video-label {
  position: absolute;
  bottom: 28px;
  left: clamp(24px, 6vw, 80px);
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: 3;
}

.hero-video-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px
    color-mix(in oklab, var(--accent) 20%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px clamp(24px, 6vw, 80px) 80px;
}

.hero-title {
  font-size: clamp(58px, 13vw, 220px);
  line-height: 0.88;
  max-width: 9ch;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: inline-block;
}

.hero-title .break {
  display: block;
}

.hero-title .offset {
  padding-left: 0.8em;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: end;
  /* keep foot content away from the photo */
  max-width: min(100%, calc(100% - 0px));
}

@media (min-width: 901px) {
  .hero-foot {
    /* reserve right column space but don't force content under the photo */
    grid-template-columns: 1fr auto minmax(200px, 1fr);
  }

  .hero-loc {
    /* Sit against the photo but with a legibility shadow */
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
  }
}

@media (max-width: 780px) {
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.hero-tag {
  max-width: 32ch;
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.55;
}

.hero-tag span {
  color: var(--fg);
}

.hero-loc {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--fg) 70%, transparent);
  text-align: right;
}

.hero-scroll {
  text-align: center;
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  margin: 10px auto 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: slide 2.4s ease-in-out infinite;
}

@keyframes slide {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    transform: scaleY(1);
    transform-origin: top;
  }

  50.01% {
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ========== ABOUT ========== */
.about {
  background: var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.about-portrait {
  aspect-ratio: 3/4;
  position: sticky;
  top: 120px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.about-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 60% 30%,
    color-mix(in oklab, var(--accent-deep) 20%, transparent),
    transparent 60%
  );
  mix-blend-mode: multiply;
  pointer-events: none;
}

.about-heading {
  font-size: clamp(40px, 6vw, 88px);
  max-width: 14ch;
  margin: 28px 0 48px;
}

.about-lede {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 40px;
  max-width: 32ch;
}

.about-lede::first-letter {
  font-size: 1.6em;
  color: var(--accent);
}

.about-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: 52ch;
}

.about-body p + p {
  margin-top: 1.2em;
}

.about-body em {
  color: var(--fg);
  font-style: italic;
  font-family: var(--f-display);
}

.about-meta {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (max-width: 700px) {
  .about-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.meta-item .k {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 10px;
}

.meta-item .v {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  color: var(--fg);
  line-height: 1.1;
}

/* ========== SHOWREEL ========== */
.showreel {
  background: var(--bg);
  padding-top: 40px;
}

.showreel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.showreel-head h2 {
  font-size: clamp(38px, 5vw, 72px);
  max-width: 14ch;
}

.showreel-meta {
  font-size: 12px;
  color: var(--fg-dim);
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.showreel-player {
  aspect-ratio: 16/9;
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  cursor: pointer;
}

.showreel-player::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 40% 60% at 40% 55%,
      color-mix(in oklab, var(--accent-deep) 35%, transparent),
      transparent 65%
    ),
    radial-gradient(
      ellipse 30% 80% at 70% 50%,
      color-mix(in oklab, var(--accent) 15%, transparent),
      transparent 65%
    ),
    repeating-linear-gradient(
      135deg,
      #0000 0 16px,
      rgba(255, 255, 255, 0.02) 16px 17px
    );
}

.showreel-player::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 96px;
  height: 96px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in oklab, var(--bg) 50%, transparent);
  backdrop-filter: blur(8px);
  transition:
    transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1),
    background 0.4s;
  z-index: 2;
}

.play-btn svg {
  width: 22px;
  margin-left: 4px;
  fill: var(--fg);
}

.showreel-player:hover .play-btn {
  transform: scale(1.1);
  background: var(--accent);
  border-color: var(--accent);
}

.showreel-player:hover .play-btn svg {
  fill: var(--bg);
}

.showreel-caption {
  position: absolute;
  bottom: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  z-index: 2;
  gap: 40px;
}

.showreel-caption .t {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 34px);
  max-width: 20ch;
  line-height: 1.1;
}

.showreel-caption .d {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.showreel-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 780px) {
  .showreel-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

.showreel-thumb {
  aspect-ratio: 16/10;
  font-size: 10px;
}

.showreel-thumb .meta {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-family: var(--f-body);
  font-size: 9px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

/* ========== GALLERY ========== */
.gallery {
  background: var(--bg-soft);
}

.gallery-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: end;
}

@media (max-width: 780px) {
  .gallery-head {
    grid-template-columns: 1fr;
  }
}

.gallery-head h2 {
  font-size: clamp(44px, 6vw, 88px);
  max-width: 12ch;
}

.gallery-head p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 40ch;
  justify-self: end;
}

/* Filter chips */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.g-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-dim);
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.g-chip i {
  font-style: normal;
  font-size: 11px;
  color: var(--fg-faint);
  font-variant-numeric: tabular-nums;
}

.g-chip:hover {
  color: var(--fg);
  border-color: var(--fg-faint);
}

.g-chip.on {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

.g-chip.on i {
  color: color-mix(in oklab, var(--bg) 65%, transparent);
}

/* Masonry grid (CSS columns) */
.gallery-grid {
  column-count: 3;
  column-gap: 14px;
}

@media (max-width: 900px) {
  .gallery-grid { column-count: 2; }
}

@media (max-width: 560px) {
  .gallery-grid { column-count: 1; }
}

.g-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: var(--bg);
  cursor: zoom-in;
  break-inside: avoid;
  overflow: hidden;
  isolation: isolate;
}

.g-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.g-item:hover img {
  transform: scale(1.03);
}

.g-item-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 16px;
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.g-item:hover .g-item-cap,
.g-item:focus-visible .g-item-cap {
  opacity: 1;
}

.g-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Lightbox dialog */
.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 6, 8, 0.96);
  color: var(--fg);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(10, 6, 8, 0.92);
}

.lb-figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 6vmin;
  box-sizing: border-box;
}

.lb-figure img {
  max-width: 100%;
  max-height: calc(100vh - 12vmin - 40px);
  object-fit: contain;
  user-select: none;
}

.lb-caption {
  margin-top: 16px;
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.lb-close,
.lb-nav {
  position: absolute;
  background: transparent;
  border: 0;
  color: var(--fg);
  cursor: pointer;
  z-index: 2;
}

.lb-close {
  top: 18px;
  right: 22px;
  font-size: 32px;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  line-height: 1;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0.6;
  transition: opacity 0.25s, background 0.25s;
}

.lb-nav:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

@media (max-width: 600px) {
  .lb-nav { width: 44px; height: 44px; font-size: 36px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* ========== SHOWS / CREDITS ========== */
.shows {
  background: var(--bg);
}

.shows-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: end;
}

@media (max-width: 780px) {
  .shows-head {
    grid-template-columns: 1fr;
  }
}

.shows-head h2 {
  font-size: clamp(44px, 6vw, 88px);
  max-width: 14ch;
}

.shows-head p {
  font-size: 15px;
  color: var(--fg-dim);
  line-height: 1.6;
  max-width: 44ch;
  justify-self: end;
}

.shows-list {
  border-top: 1px solid var(--line);
}

.show-row {
  display: grid;
  grid-template-columns: 80px 1.6fr 1fr 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition:
    background 0.4s,
    padding 0.4s;
  position: relative;
}

.show-row:hover {
  padding-left: 24px;
  background: linear-gradient(
    90deg,
    color-mix(in oklab, var(--accent) 8%, transparent),
    transparent 60%
  );
}

.show-row .year {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.show-row .title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2.3vw, 32px);
  line-height: 1.1;
}

.show-row .role {
  font-size: 13px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.show-row .venue {
  font-size: 13px;
  color: var(--fg-dim);
}

.show-row .arrow {
  font-size: 14px;
  color: var(--fg-faint);
  transition:
    transform 0.4s,
    color 0.4s;
}

.show-row:hover .arrow {
  transform: translateX(8px);
  color: var(--accent);
}

@media (max-width: 900px) {
  .show-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .show-row .title {
    grid-column: 1/-1;
    order: 1;
  }

  .show-row .year {
    order: 0;
  }

  .show-row .arrow {
    display: none;
  }
}

/* ========== ACHIEVEMENTS ========== */
.awards {
  background: var(--bg-soft);
  overflow: hidden;
}

.awards-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

@media (max-width: 900px) {
  .awards-inner {
    grid-template-columns: 1fr;
  }
}

.awards h2 {
  font-size: clamp(40px, 5.5vw, 80px);
  max-width: 10ch;
}

.awards-sub {
  font-size: 15px;
  color: var(--fg-dim);
  margin-top: 24px;
  line-height: 1.6;
  max-width: 34ch;
}

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.award {
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: baseline;
}

.award:first-child {
  border-top: 1px solid var(--line);
}

.award .num {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 40px;
  color: var(--accent);
  line-height: 1;
  min-width: 60px;
}

.award .body h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  margin-bottom: 8px;
}

.award .body p {
  font-size: 13px;
  color: var(--fg-dim);
  max-width: 52ch;
  line-height: 1.5;
}

.award .yr {
  font-family: var(--f-body);
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.1em;
}

/* ========== SERVICES ========== */
.services {
  background: var(--bg);
}

.services-head {
  margin-bottom: 80px;
}

.services-head h2 {
  font-size: clamp(44px, 6vw, 88px);
  max-width: 14ch;
  margin-bottom: 24px;
}

.services-head p {
  font-size: 15px;
  color: var(--fg-dim);
  max-width: 52ch;
  line-height: 1.6;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

.service {
  background: var(--bg);
  padding: 40px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-height: 320px;
  transition: background 0.5s;
}

.service:hover {
  background: var(--bg-soft);
}

.service .num {
  font-family: var(--f-body);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.2em;
}

.service h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.service p {
  font-size: 14px;
  color: var(--fg-dim);
  line-height: 1.65;
}

.service ul {
  list-style: none;
  padding: 0;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service li {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  gap: 12px;
}

.service li::before {
  content: '—';
  color: var(--accent);
}

/* ========== FOOTER / CONTACT ========== */
.foot {
  background: var(--bg);
  padding: min(12vw, 120px) clamp(24px, 6vw, 80px) 40px;
  border-top: 1px solid var(--line);
}

.foot-big {
  font-size: clamp(56px, 11vw, 180px);
  line-height: 0.9;
  margin-bottom: 60px;
  max-width: 12ch;
}

.foot-big em {
  font-style: italic;
  color: var(--accent);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

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

.foot-grid h4 {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--fg-faint);
  margin-bottom: 14px;
  font-weight: 500;
}

.foot-grid a,
.foot-grid p {
  color: var(--fg-dim);
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
}

.foot-grid a:hover {
  color: var(--accent);
}

.foot-base {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

@media (max-width: 600px) {
  .foot-base {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ========== TWEAKS PANEL ========== */
/* ========== LOADER ========== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  transition:
    opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 1s;
  overflow: hidden;
}

.loader.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Ambient glow */
.loader::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(
    ellipse 40% 60% at 50% 50%,
    color-mix(in oklab, var(--accent) 22%, transparent),
    transparent 65%
  );
  animation: loaderGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes loaderGlow {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

/* Orbit: a slow rotating ring, a descending vertical line (the pole), and an orbiting dot */
.loader-stage {
  position: relative;
  width: min(300px, 60vw);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ringSpin 3.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring.rev {
  inset: 18%;
  border: 1px solid var(--line);
  border-right-color: color-mix(in oklab, var(--accent) 60%, transparent);
  animation: ringSpin 4.6s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

/* The pole — a thin vertical line drawn from top */
.loader-pole {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--fg-faint) 20%,
    var(--accent) 50%,
    var(--fg-faint) 80%,
    transparent 100%
  );
  transform-origin: 50% 50%;
  animation: polePulse 3.2s ease-in-out infinite;
}

/* Orbiting dot traveling around the pole */
.loader-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 14px color-mix(in oklab, var(--accent) 70%, transparent);
  transform-origin: 50% 50%;
  animation: dotOrbit 2.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes ringSpin {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes polePulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.04);
  }
}

@keyframes dotOrbit {
  0% {
    transform: rotate(0) translateX(110px) rotate(0);
  }

  100% {
    transform: rotate(360deg) translateX(110px) rotate(-360deg);
  }
}

@media (max-width: 600px) {
  @keyframes dotOrbit {
    0% {
      transform: rotate(0) translateX(80px) rotate(0);
    }

    100% {
      transform: rotate(360deg) translateX(80px) rotate(-360deg);
    }
  }
}

.loader-word {
  position: relative;
  font-family: var(--f-display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: clamp(28px, 4vw, 52px);
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1;
  overflow: hidden;
  padding-bottom: 6px;
}

.loader-word span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: letterIn 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

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

.loader-meta {
  position: absolute;
  left: clamp(24px, 6vw, 80px);
  bottom: clamp(24px, 6vw, 60px);
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loader-meta .v {
  color: var(--accent);
}

.loader-progress {
  position: absolute;
  right: clamp(24px, 6vw, 80px);
  bottom: clamp(24px, 6vw, 60px);
  width: min(220px, 40vw);
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loader-progress .track {
  width: 100%;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.loader-progress .track::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  animation: fill 2.4s cubic-bezier(0.5, 0.05, 0.2, 1) forwards;
}

@keyframes fill {
  to {
    width: 100%;
  }
}

.loader-progress .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loader-progress .pct {
  color: var(--fg);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* Respect reduced motion: skip faster */
@media (prefers-reduced-motion: reduce) {
  .loader-ring,
  .loader-ring.rev,
  .loader-pole,
  .loader-dot,
  .loader::before {
    animation: none;
  }

  .loader-progress .track::after {
    animation-duration: 0.6s;
  }
}

/* Lock scroll while loading */
body.loading {
  overflow: hidden;
  height: 100vh;
}

/* ========== TWEAKS PANEL ========== */
.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 20px 20px;
  width: 260px;
  font-family: var(--f-body);
  font-size: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: none;
}

.tweaks.on {
  display: block;
}

.tweaks h5 {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.tweaks label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 14px 0 6px;
}

.tweaks .swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tweaks .sw {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tweaks .sw.active {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.tweaks .sw span {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.tweaks .sw span i {
  display: block;
}

.tweaks select {
  width: 100%;
  background: var(--bg-soft);
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: inherit;
  font-size: 12px;
}

.tweaks .close {
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--fg-dim);
  font-size: 14px;
  cursor: pointer;
}
