:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #171717;
  --paper: #ffffff;
  --ink: #171717;
  --muted: rgba(23, 23, 23, 0.56);
  --edge: rgba(23, 23, 23, 0.17);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #ffffff;
  color: var(--ink);
}

button,
a {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
.polaroid:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 6px;
}

.experience {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(24px, env(safe-area-inset-top)) clamp(22px, 3.4vw, 52px)
    max(24px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.experience::before {
  content: "";
  display: none;
}

.masthead,
.footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.identity-group,
.utilities,
.identity,
.language-switch,
.sound-button {
  display: flex;
  align-items: center;
}

.identity-group {
  gap: clamp(0.75rem, 1.4vw, 1.4rem);
  min-width: 0;
}

.identity {
  gap: 0.8rem;
  color: var(--ink);
  font-size: 0.875rem;
  letter-spacing: 0.11em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.identity__year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.identity-separator {
  width: clamp(20px, 2.6vw, 40px);
  height: 1px;
  background: var(--edge);
}

.creator {
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.utilities {
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: 2rem;
}

.pdf-downloads {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.pdf-downloads span {
  margin-right: 0.12rem;
}

.pdf-downloads a {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--edge);
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.language-switch {
  gap: 0.32rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1;
}

.language-button,
.sound-button,
.about-button,
.about__close {
  padding: 0 0 5px;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  transition: border-color 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.language-button {
  padding-right: 0;
  padding-left: 0;
}

.language-button.is-active,
.sound-button:hover,
.about-button:hover,
.about__close:hover,
.pdf-downloads a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.sound-button {
  gap: 0.38rem;
}

.sound-button__dot {
  width: 5px;
  height: 5px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.sound-button__state {
  color: rgba(23, 23, 23, 0.35);
  font-size: 0.72rem;
}

body[data-sound="on"] .sound-button {
  color: var(--ink);
}

body[data-sound="on"] .sound-button__dot {
  background: var(--ink);
  box-shadow: 0 0 10px rgba(23, 23, 23, 0.3);
}

.stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 0;
}

.halo {
  display: none;
}

.polaroid {
  position: relative;
  width: min(31vw, 370px);
  max-height: 68svh;
  aspect-ratio: 88 / 107;
  cursor: crosshair;
  filter: none;
  touch-action: manipulation;
  transform: rotate(var(--tilt, -0.35deg));
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 350ms ease;
}

.polaroid::before,
.polaroid::after {
  display: none;
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid rgba(23, 23, 23, 0.13);
  content: "";
  transform-origin: center;
}

.polaroid::before {
  transform: rotate(2.35deg) translate(2px, -2px);
}

.polaroid::after {
  transform: rotate(-1.55deg) translate(-2px, 3px);
}

.polaroid:hover,
.polaroid:focus-visible,
.polaroid.is-paused {
  filter: none;
  transform: rotate(0deg) scale(1.018);
}

.polaroid__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  background: #ffffff;
  transition: opacity 105ms linear;
  user-select: none;
  -webkit-user-drag: none;
}

.polaroid__image.is-visible {
  opacity: 1;
}

.interaction-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(7px, 1.4vh, 18px);
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.interaction-hint__touch,
.interaction-hint__paused,
body.is-paused .interaction-hint__desktop {
  display: none;
}

body.is-paused .interaction-hint__paused {
  display: inline;
  color: var(--ink);
}

.footer {
  align-items: flex-end;
}

.work-title {
  display: grid;
  gap: 0.42rem;
}

.work-title span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.work-title h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.75rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
}

.counter {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.counter__current {
  color: var(--ink);
}

.counter__rule {
  width: clamp(30px, 5vw, 74px);
  height: 1px;
  background: var(--edge);
}

.about {
  position: fixed;
  z-index: 10;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 240ms ease, visibility 0s linear 240ms;
}

.about.is-open {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.about__backdrop {
  position: absolute;
  inset: 0;
  background: #ffffff;
  cursor: pointer;
}

.about__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(780px, 94vw);
  height: 100%;
  padding: max(25px, env(safe-area-inset-top)) clamp(28px, 5vw, 78px)
    max(42px, env(safe-area-inset-bottom));
  overflow-y: auto;
  border-left: 1px solid var(--edge);
  background: #ffffff;
  color: var(--ink);
  overscroll-behavior: contain;
  transform: translateX(102%);
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.18, 1);
}

.about.is-open .about__panel {
  transform: translateX(0);
}

.about__toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.about__close {
  border-color: rgba(17, 16, 14, 0.28);
  background: #ffffff;
  color: rgba(17, 16, 14, 0.62);
}

.language-switch--panel {
  color: rgba(17, 16, 14, 0.42);
}

.language-switch--panel .language-button {
  color: inherit;
}

.language-switch--panel .language-button.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.about__close:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.about button:focus-visible,
.about a:focus-visible {
  outline-color: var(--ink);
}

.about__content {
  max-width: 600px;
  margin: clamp(58px, 10vh, 108px) auto 0;
}

body[data-lang="fr"] [data-language="en"],
body[data-lang="en"] [data-language="fr"] {
  display: none;
}

.eyebrow {
  margin: 0 0 1.8rem;
  color: rgba(17, 16, 14, 0.58);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.about h2 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.essay-title {
  margin: 1.35rem 0 clamp(2.6rem, 6vh, 4.8rem);
  color: rgba(17, 16, 14, 0.58);
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.essay p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.6;
}

.essay p:last-child {
  margin-bottom: 0;
}

.essay-link {
  color: var(--ink);
  text-decoration-color: rgba(23, 23, 23, 0.38);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.essay-link::after {
  content: " ↓";
  font-size: 0.78em;
}

.exhibition {
  scroll-margin-top: 5rem;
  margin: clamp(3.2rem, 8vh, 6.4rem) 0 0;
  padding-top: clamp(2.2rem, 5vh, 4rem);
  border-top: 1px solid rgba(23, 23, 23, 0.22);
}

.exhibition h3 {
  margin: 0 0 clamp(2rem, 5vh, 3.8rem);
  font-size: clamp(1.8rem, 4vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.exhibition__grid {
  display: grid;
  gap: clamp(2.6rem, 7vh, 5.5rem);
}

.exhibition__item {
  margin: 0;
}

.exhibition__item a {
  display: block;
  overflow: hidden;
  background: #ffffff;
}

.exhibition__item--portrait a {
  width: min(72%, 420px);
}

.exhibition img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.exhibition a:hover img {
  transform: scale(1.012);
}

.exhibition figcaption {
  margin-top: 0.8rem;
  color: rgba(23, 23, 23, 0.62);
  font-size: 0.78rem;
  line-height: 1.5;
}

.exhibition figcaption strong {
  color: var(--ink);
  font-weight: 400;
}

.details {
  display: grid;
  gap: 0;
  margin: clamp(3.2rem, 8vh, 6.4rem) 0 2.8rem;
  border-top: 1px solid rgba(17, 16, 14, 0.22);
}

.details div {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.5fr);
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(17, 16, 14, 0.22);
}

.details dt,
.details dd {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.details dt {
  color: rgba(17, 16, 14, 0.58);
}

.details dd {
  text-align: right;
}

.artist-links {
  display: grid;
  margin-bottom: 1rem;
  border-top: 1px solid rgba(17, 16, 14, 0.22);
}

.artist-links a {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(17, 16, 14, 0.22);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.45;
  text-decoration: none;
}

.artist-links a:hover {
  color: rgba(17, 16, 14, 0.58);
}

.artist-links span {
  flex: 0 0 auto;
}

.noscript {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.875rem;
  text-align: center;
}

@media (hover: none), (pointer: coarse) {
  .interaction-hint__desktop {
    display: none;
  }

  .interaction-hint__touch {
    display: inline;
  }

  body.is-paused .interaction-hint__touch {
    display: none;
  }
}

@media (max-width: 840px) {
  .masthead {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .utilities {
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
  }

  .polaroid {
    width: min(52vw, 350px);
  }
}

@media (max-width: 720px) {
  .experience {
    padding-right: 19px;
    padding-left: 19px;
  }

  .identity-group {
    gap: 0.65rem;
  }

  .identity,
  .creator {
    font-size: 0.75rem;
  }

  .language-button,
  .sound-button,
  .about-button {
    font-size: 0.875rem;
  }

  .identity-separator {
    width: 13px;
  }

  .utilities {
    gap: 0.75rem;
  }

  .pdf-downloads {
    font-size: 0.7rem;
  }

  .sound-button__state {
    display: none;
  }

  .polaroid {
    width: min(66vw, 310px);
    max-height: 55svh;
  }

  .halo {
    width: 96vw;
  }

  .work-title h1 {
    font-size: 1.5rem;
  }

  .interaction-hint {
    bottom: 8px;
    font-size: 0.66rem;
  }

  .about__panel {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  .details div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .identity-group {
    justify-content: space-between;
    gap: 0.45rem;
  }

  .identity {
    gap: 0.5rem;
  }

  .identity-separator {
    display: none;
  }

  .creator {
    font-size: 0.68rem;
  }

  .utilities {
    justify-content: flex-start;
  }

  .about-button {
    margin-left: auto;
  }
}

@media (max-height: 720px) and (min-width: 721px) {
  .polaroid {
    width: min(24vw, 280px);
  }

  .interaction-hint {
    display: none;
  }
}

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