:root {
  --chromatic-paper: #ecebe6;
  --chromatic-ink: #151515;
  --chromatic-muted: rgba(21, 21, 21, 0.64);
  --chromatic-rule: rgba(21, 21, 21, 0.18);
  --chromatic-field: #10182d;
}

html {
  background: var(--chromatic-paper);
}

body.chromatic-page {
  min-width: 20rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--chromatic-paper);
  color: var(--chromatic-ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.chromatic-page *,
.chromatic-page *::before,
.chromatic-page *::after {
  box-sizing: border-box;
}

.chromatic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 94rem);
  min-height: 4.5rem;
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid var(--chromatic-rule);
}

.chromatic-nav a {
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
}

.chromatic-nav a:hover,
.chromatic-nav a:focus {
  opacity: 0.58;
}

.chromatic-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0.3rem;
}

.chromatic-main {
  width: min(100%, 94rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 2vw, 2rem) clamp(1rem, 3vw, 3rem) clamp(3rem, 7vw, 7rem);
}

.chromatic-project {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 6rem);
  align-items: start;
}

.chromatic-intro {
  position: sticky;
  top: 1.5rem;
  display: grid;
  gap: 1rem;
  max-width: 18rem;
}

.chromatic-intro > * {
  margin: 0;
}

.chromatic-intro h1 {
  font-size: clamp(2rem, 4.4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.chromatic-intro p {
  color: var(--chromatic-muted);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.55;
}

.chromatic-intro .chromatic-kicker {
  color: var(--chromatic-ink);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.chromatic-description {
  display: grid;
  gap: 0.65rem;
}

.chromatic-description p {
  margin: 0;
}

.chromatic-artwork {
  display: grid;
  grid-column: 2;
  gap: clamp(0.7rem, 1.2vw, 1rem);
  width: min(100%, var(--presentation-max-width, 48rem));
  margin: 0 auto;
  justify-self: center;
}

.chromatic-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 7;
  overflow: hidden;
  isolation: isolate;
  background: var(--chromatic-field);
}

.chromatic-poster,
.chromatic-canvas-host,
.chromatic-field-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.chromatic-poster {
  z-index: 0;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.45s ease;
}

.chromatic-canvas-host {
  z-index: 1;
  overflow: hidden;
}

.chromatic-field-canvas {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.chromatic-field-canvas.is-ready {
  opacity: 1;
}

.chromatic-poster.is-covered {
  opacity: 0;
}

.chromatic-frame[data-state="error"] .chromatic-poster,
.chromatic-frame[data-state="context-lost"] .chromatic-poster {
  opacity: 1;
}

.chromatic-frame[data-state="error"] .chromatic-field-canvas,
.chromatic-frame[data-state="context-lost"] .chromatic-field-canvas {
  opacity: 0;
}

.chromatic-status {
  position: absolute;
  z-index: 2;
  inset: auto 1rem 1rem;
  margin: 0;
  padding: 0.55rem 0.7rem;
  background: rgba(5, 8, 14, 0.78);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.72rem;
  letter-spacing: 0.035em;
  line-height: 1.35;
  pointer-events: none;
}

.chromatic-status[hidden] {
  display: none;
}

.chromatic-fallback {
  position: absolute;
  z-index: 3;
  inset: auto 1rem 1rem;
  margin: 0;
  color: #fff;
  font-size: 0.75rem;
}

.chromatic-installation-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  margin: 0;
  /* Keep the established spacing/viewport budget after removing the rule. */
  padding-top: calc(0.7rem + 1px);
  color: var(--chromatic-muted);
  font-size: 0.7rem;
  letter-spacing: 0.065em;
  line-height: 1.35;
  text-transform: uppercase;
}

.chromatic-installation-meta > * {
  margin: 0;
}

.chromatic-gallery + .chromatic-installation-meta,
.smoke-gallery + .chromatic-installation-meta {
  margin-inline: 48px;
}

/* Reduce the large title only on shorter desktop windows; body copy retains
   its normal size and all three version links remain in the introduction. */
@media (min-width: 52.001rem) and (max-height: 50rem) {
  .chromatic-intro h1 {
    font-size: clamp(2rem, 4.4vw, 3.4rem);
  }

  .chromatic-intro {
    gap: 0.85rem;
  }
}

@media (max-width: 52rem) {
  .chromatic-project {
    grid-template-columns: 1fr;
  }

  .chromatic-intro {
    position: static;
    max-width: 36rem;
  }

  .chromatic-artwork {
    grid-column: 1;
    width: min(100%, 42rem);
  }

  .chromatic-gallery + .chromatic-installation-meta,
  .smoke-gallery + .chromatic-installation-meta {
    margin-inline: 36px;
  }
}

@media (max-width: 34rem) {
  .chromatic-nav {
    min-height: 3.75rem;
  }

  .chromatic-main {
    padding-top: 1.25rem;
  }

  .chromatic-project {
    gap: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chromatic-page *,
  .chromatic-page *::before,
  .chromatic-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
