@layer base, utilities;

/* Reset équivalent au preflight de Tailwind CSS v4 */
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }

  html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

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

  b, strong {
    font-weight: bolder;
  }

  small {
    font-size: 80%;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button {
    appearance: button;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

:root {
  --paper: #f1efe9;
  --ink: #161614;
  --acid: #d9ff43;
  --muted: #6e6d68;
  --line: #cbc9c2;
  color-scheme: light;
}

html[data-theme="dark"] {
  --paper: #121210;
  --ink: #f3f1ea;
  --muted: #a8a69f;
  --line: #343330;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  overscroll-behavior: none;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

.site {
  overflow: clip;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: 1.25rem 1.5rem;
  color: #fff;
  mix-blend-mode: difference;
  transition: color .35s;
}

.wordmark {
  width: min-content;
  color: inherit;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: .78;
  letter-spacing: -.085em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar.is-menu-open {
  color: #f1efe9;
  mix-blend-mode: normal;
}

.topbar.is-menu-open ~ .menu-dot {
  background: #f1efe9;
  mix-blend-mode: normal;
}

.wordmark span {
  display: block;
  margin-left: 1.12em;
}

.topbar__role {
  margin: .1rem 0 0;
  font-size: .67rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.topbar__tools {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.theme-toggle {
  position: relative;
  flex: none;
  width: 2.6rem;
  height: 1.32rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.theme-toggle__knob {
  position: absolute;
  top: 2px;
  left: 2px;
  display: grid;
  place-items: center;
  width: calc(1.32rem - 6px);
  height: calc(1.32rem - 6px);
  transition: translate .35s cubic-bezier(.2, .7, .2, 1);
}

html[data-theme="dark"] .theme-toggle__knob {
  translate: 1.28rem 0;
}

.theme-toggle svg {
  width: .78rem;
  height: .78rem;
  grid-area: 1 / 1;
}

.theme-toggle__moon,
html[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

.menu-button {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: .71rem;
  font-weight: 500;
  line-height: .75rem;
  text-transform: uppercase;
}

.menu-button i,
.menu-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 50%;
}

.menu-button i {
  visibility: hidden;
}

.menu-dot {
  position: fixed;
  z-index: 81;
  top: calc(1.25rem + .6rem);
  right: 1.5rem;
  background: #fff;
  mix-blend-mode: difference;
  pointer-events: none;
  transition: transform .4s, background .4s;
}

.topbar:has(.menu-button:hover) ~ .menu-dot {
  mix-blend-mode: normal;
  transform: scale(1.5);
  background: var(--acid);
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding: 8rem 1.5rem 1.5rem;
  background: #161614;
  color: #f1efe9;
  transform: translateY(-105%);
  transition: transform .85s cubic-bezier(.77, 0, .18, 1);
}

.menu-panel.is-open {
  transform: translateY(0);
}

.menu-panel nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin-bottom: clamp(2.75rem, 7vh, 5rem);
}

.menu-panel nav a {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  min-width: 0;
  gap: .35rem 2rem;
  border-bottom: 1px solid #4a4945;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 8vh, 7rem);
  line-height: .88;
  letter-spacing: -.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s, padding-left .4s;
}

.menu-label {
  flex: 0 1 auto;
  max-width: 100%;
  white-space: nowrap;
}

.menu-tag {
  flex: none;
  margin-left: .35em;
  padding: .45rem .7rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: "DM Sans", sans-serif;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-panel nav a:hover {
  padding-left: 2vw;
  color: var(--acid);
}

.menu-num {
  flex: none;
  font-family: "DM Sans", sans-serif;
  font-size: .66rem;
  letter-spacing: 0;
}

.menu-panel__foot {
  display: flex;
  justify-content: space-between;
  font-size: .72rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.menu-panel__foot a {
  text-decoration: none;
}

.menu-panel__foot p {
  margin: 0;
  text-align: right;
}

.hero {
  --cols: 3;
  --cell: calc(100cqi / var(--cols));
  --box: calc(var(--cell) * .74);
  --gh: calc(var(--cell) * .2);
  --gv: calc(var(--cell) * .22);
  --row: calc(var(--box) + var(--gv));
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: 0;
  container-type: inline-size;
}

.hero--simple {
  height: 100svh;
  min-height: 38rem;
}

.hero__sticky {
  grid-area: 1 / 1;
  align-self: start;
  position: sticky;
  top: 0;
  z-index: 10;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
}

.hero__statement {
  position: absolute;
  z-index: 20;
  top: 48%;
  left: 50%;
  width: min(92vw, 75rem);
  text-align: center;
  transform: translate(-50%, -50%);
}

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.hero__note {
  max-width: 28rem;
  margin: 2rem auto 0;
  font-size: .95rem;
  line-height: 1.5;
}

.hero h1 {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.3rem, 8.7vw, 9rem);
  line-height: .83;
  letter-spacing: -.082em;
  text-transform: uppercase;
}

.hero h1 em {
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  text-transform: none;
}

.hero:not(.hero--simple) .hero__statement .eyebrow,
.hero:not(.hero--simple) .hero__line {
  opacity: 0;
  translate: 0 1.5rem;
  transition:
    opacity .8s cubic-bezier(.16, 1, .3, 1),
    translate 1.05s cubic-bezier(.16, 1, .3, 1);
}

.hero:not(.hero--simple) .hero__statement .eyebrow {
  translate: 0 .7rem;
  transition-delay: .08s;
}

.hero:not(.hero--simple) .hero__line {
  display: block;
  transition-delay: .24s;
}

.hero:not(.hero--simple) .hero__line + .hero__line {
  translate: 0 1.15rem;
  transition-delay: .48s;
}

.is-loaded .hero:not(.hero--simple) .hero__statement .eyebrow,
.is-loaded .hero:not(.hero--simple) .hero__line {
  opacity: 1;
  translate: 0 0;
}

.hero__scroll {
  position: absolute;
  z-index: 30;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: .65rem;
  text-transform: uppercase;
}

.hero__scroll i {
  position: relative;
  width: 3.5rem;
  height: 1px;
  overflow: hidden;
  background: #bbb9b2;
}

.hero__scroll i::after {
  position: absolute;
  inset: 0;
  background: var(--ink);
  content: "";
  animation: scroll-line 2s infinite ease-in-out;
}

/* Grille en colonnes : chaque photo tient dans une case (--box) et se place
   librement dans la bande de sa colonne (--in, --band) selon --x et --y. Les
   bandes sont séparées par --gh et les rangées par --gv, ce qui garantit
   l'espace entre deux photos. Chaque colonne démarre à sa propre hauteur (--o) :
   celle du milieu passe sous le titre pour qu'il reste lisible à l'arrivée. */
.hero-patchwork {
  grid-area: 1 / 1;
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-auto-rows: var(--row);
  align-items: start;
  padding-bottom: max(20svh, calc(var(--clear, 66svh) - var(--row) + 6rem));
  pointer-events: none;
}

.hero-patchwork button {
  transform-origin: center;
}

@layer utilities {
  .patch {
    --x: var(--rx, .5);
    --y: var(--ry, 0);
    --w: calc(var(--box) * var(--s, 1) * min(1, var(--r)));
    --h: calc(var(--w) / var(--r));
    position: relative;
    top: calc(var(--o, 0px) + var(--y) * (var(--box) - var(--h)));
    justify-self: start;
    width: var(--w);
    margin: 0 0 0 calc(var(--in, 0px) + var(--x) * (var(--band, var(--cell)) - var(--w)));
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #d8d6cf;
    box-shadow: 0 1rem 4rem rgba(22, 22, 20, .12);
    opacity: 0;
    pointer-events: auto;
    translate: 0 6rem;
    rotate: 3deg;
    transition-property: opacity, translate, rotate;
    transition-duration: 1s;
    transition-timing-function: cubic-bezier(0, 0, .2, 1);
  }

  .is-loaded .patch {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }

  html[data-theme="dark"] .patch {
    background: #2a2926;
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, .4);
  }

  .patch__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--r);
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
    filter: saturate(.88);
    transition-property: opacity, transform, translate, scale, rotate, filter;
    transition-duration: .7s;
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  }

  @media (hover: hover) {
    .patch:hover {
      z-index: 30;
    }

    .patch__img:hover {
      filter: saturate(1);
    }
  }
}

@media (width > 720px) {
  .patch:nth-child(3n + 1) { --o: 6.5rem; --band: calc(var(--cell) - var(--gh) / 2); }
  .patch:nth-child(3n + 2) { --o: var(--clear, 70svh); --in: calc(var(--gh) / 2); --band: calc(var(--cell) - var(--gh)); }
  .patch:nth-child(3n + 3) { --o: 22svh; --in: calc(var(--gh) / 2); --band: calc(var(--cell) - var(--gh) / 2); }
  .patch:nth-child(6n + 1) { --x: 0; }
  .patch:nth-child(6n + 3) { --x: 1; }

  /* La colonne centrale descend plus bas : sa dernière image resterait seule sous la grille. */
  .patch:nth-child(3n + 2):nth-last-child(-n + 2) { visibility: hidden; }

  /* Sur les écrans plus hauts que larges, la 2e rangée des colonnes latérales
     est repoussée sous le titre pour qu'il reste lisible à l'arrivée. */
  .patch:nth-child(3n + 1):nth-child(n + 4) { --o: max(6.5rem, var(--clear, 66svh) - var(--row)); }
  .patch:nth-child(3n + 3):nth-child(n + 6) { --o: max(22svh, var(--clear, 66svh) - var(--row)); }

  /* La première de droite est verticale et touche le bord de la fenêtre. */
  .patch:nth-child(3) {
    --in: 0px;
    --band: var(--cell);
    --x: 1;
    --y: 0;
  }

  /* La deuxième de gauche descend d’un cran sous le titre. */
  .patch:nth-child(3n + 1):nth-child(4) {
    --o: calc(max(6.5rem, var(--clear, 66svh) - var(--row)) + 4.5rem);
  }
}

@media (width <= 720px) {
  .hero {
    --cols: 2;
    --box: calc(var(--cell) * .84);
  }

  .hero {
    --gh: calc(var(--cell) * .16);
  }

  .patch:nth-child(2n + 1) { --o: 9svh; --band: calc(var(--cell) - var(--gh) / 2); }
  .patch:nth-child(2n + 2) { --o: var(--clear, 66svh); --in: calc(var(--gh) / 2); --band: calc(var(--cell) - var(--gh) / 2); }
  .patch:nth-child(4n + 1) { --x: 0; }
  .patch:nth-child(4n + 2) { --x: 1; }
  .patch:nth-child(2n + 2):last-child { visibility: hidden; }
  .patch:nth-child(2n + 1):nth-child(n + 3) { --o: max(9svh, var(--clear, 70svh) - var(--row)); }
}

.focus-reticle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  min-width: 5rem;
  max-width: 9rem;
  aspect-ratio: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.55);
}

.focus-reticle i {
  position: absolute;
  width: 24%;
  height: 24%;
  border-color: var(--acid);
  border-style: solid;
  border-width: 0;
}

.focus-reticle i:nth-child(1) {
  top: 0;
  left: 0;
  border-top-width: 2px;
  border-left-width: 2px;
}

.focus-reticle i:nth-child(2) {
  top: 0;
  right: 0;
  border-top-width: 2px;
  border-right-width: 2px;
}

.focus-reticle i:nth-child(3) {
  right: 0;
  bottom: 0;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

.focus-reticle i:nth-child(4) {
  bottom: 0;
  left: 0;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.focus-reticle::before,
.focus-reticle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.focus-reticle::before {
  width: .38rem;
  height: .38rem;
  border: 1px solid var(--acid);
}

.focus-reticle::after {
  width: .16rem;
  height: .16rem;
  background: var(--acid);
  opacity: 0;
}

.hero-patchwork button:hover .focus-reticle {
  animation: autofocus-lock .85s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero-patchwork button:hover .focus-reticle::after {
  animation: autofocus-confirm .3s ease-out .62s forwards;
}

.hero-patchwork button:hover img {
  animation: autofocus-image .85s ease-out both;
}

@keyframes autofocus-lock {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.55);
  }
  25% {
    opacity: .85;
  }
  58% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(.88);
  }
  76% {
    transform: translate(-50%, -50%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes autofocus-confirm {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(3);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes autofocus-image {
  0% {
    filter: blur(0) saturate(.88);
    transform: scale(1);
  }
  28% {
    filter: blur(2px) saturate(.72);
    transform: scale(1.04);
  }
  55% {
    filter: blur(.4px) saturate(.95);
    transform: scale(1.01);
  }
  72% {
    filter: blur(.15px) saturate(1);
    transform: scale(1.025);
  }
  100% {
    filter: blur(0) saturate(1.04) contrast(1.03);
    transform: scale(1);
  }
}

@keyframes scroll-line {
  0% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

.universes {
  padding: 8rem 1.5rem 10rem;
  border-top: 1px solid var(--line);
}

.universes__heading {
  margin-bottom: 6rem;
}

.universes__heading .eyebrow {
  margin-bottom: 2.5rem;
}

.universes__heading h2 {
  display: flex;
  flex-direction: column;
  margin: 0 0 5rem;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(3.5rem, 10.5vw, 11rem);
  line-height: .82;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

.universes__heading h2 em {
  padding-left: 34%;
  color: #c6e000;
  font-family: "Instrument Serif", serif;
  font-size: 1.08em;
  font-weight: 400;
  letter-spacing: -.04em;
  text-transform: none;
}

html[data-theme="dark"] .universes__heading h2 em {
  color: var(--acid);
}

.universes__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 2fr;
  gap: 2rem;
}

.universes__meta span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-size: .62rem;
  text-transform: uppercase;
}

.universes__meta strong {
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.4rem, 4.2vw, 4.4rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.universes__meta p {
  max-width: 26rem;
  margin: 0;
  align-self: end;
  font-size: .77rem;
  line-height: 1.45;
}

.universes__all {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: fit-content;
  margin: 2.75rem auto 0;
  padding: 1rem 1.35rem;
  background: var(--acid);
  color: #161614;
  font-family: "Archivo Black", sans-serif;
  font-size: .82rem;
  letter-spacing: -.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.universes__all:hover {
  background: #161614;
  color: #f1efe9;
}

.universe {
  position: relative;
  display: grid;
  grid-template-columns: .35fr 2fr 1fr .8fr auto;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
  padding: 1.2rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.universe__image {
  position: absolute;
  top: 50%;
  left: 12%;
  z-index: 2;
  width: 14rem;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-45%) rotate(-3deg) scale(.9);
  transition: opacity .35s, transform .5s cubic-bezier(.2, .7, .2, 1);
}

.universe:nth-child(even) .universe__image {
  left: 56%;
  transform: translateY(-45%) rotate(3deg) scale(.9);
}

.universe__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.universe:hover .universe__image {
  opacity: 1;
  transform: translateY(-50%) rotate(-3deg) scale(1);
}

.universe:nth-child(even):hover .universe__image {
  transform: translateY(-50%) rotate(3deg) scale(1);
}

.universe__number,
.universe__type,
.universe__year {
  font-size: .66rem;
  text-transform: uppercase;
}

.universe__name {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 4.5vw, 5rem);
  line-height: .9;
  letter-spacing: -.06em;
  text-transform: uppercase;
  transition: padding-left .4s;
}

.universe:hover .universe__name {
  padding-left: 1rem;
}

.universe__arrow {
  font-size: 1.35rem;
}

.about {
  padding: 8rem 1.5rem 10rem;
  background: #161614;
  color: #f1efe9;
}

.about__statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(22rem, 26vw);
  gap: 2.5rem 4vw;
  align-items: end;
  margin: 4rem 0 8rem;
}

.about__lead {
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2.8rem, 5.6vw, 6.2rem);
  line-height: .93;
  letter-spacing: -.07em;
  text-transform: uppercase;
}

.about__photo {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #242422;
}

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

.about__photo--empty {
  border: 1px solid #3d3c39;
  background:
    linear-gradient(#3d3c39, #3d3c39) center / 1px 38% no-repeat,
    linear-gradient(#3d3c39, #3d3c39) center / 38% 1px no-repeat,
    #1c1c1a;
}

.about__portrait {
  display: inline-block;
  width: .84em;
  height: .84em;
  margin-right: -.04em;
  overflow: hidden;
  border-radius: 50%;
  vertical-align: -.06em;
  background: var(--acid);
  color: #161614;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.about__portrait:hover {
  transform: rotate(-8deg) scale(1.06);
}

.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__portrait--empty {
  position: relative;
}

.about__portrait--empty span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .34em;
  letter-spacing: -.06em;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid #4a4945;
  padding-top: 1.25rem;
  font-size: .77rem;
  line-height: 1.45;
}

.about__grid p {
  margin: 0;
}

.about__grid > div > span {
  display: block;
  margin-bottom: 1.5rem;
  color: #96948d;
  font-size: .62rem;
  text-transform: uppercase;
}

.about__intro {
  grid-column: 1 / 3;
  padding-right: 5vw;
}

.about__intro p {
  max-width: 38rem;
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.6rem, 2.7vw, 2.8rem);
  line-height: 1.08;
}

.about__intro p + p {
  max-width: 34rem;
  margin-top: 2rem;
  color: #bdbbb4;
  font-family: inherit;
  font-size: .82rem;
  line-height: 1.55;
}

.about__intro p + p + p {
  margin-top: 1rem;
}

.about__services ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about__services li {
  padding: .3rem 0;
  border-bottom: 1px solid #3d3c39;
  font-size: .68rem;
  text-transform: uppercase;
}

.about__base p {
  margin-bottom: 1.5rem;
  font-size: .68rem;
  text-transform: uppercase;
}

.about__grid a {
  grid-column: 4;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1efe9;
  padding-bottom: .5rem;
  font-size: .68rem;
  text-decoration: none;
  text-transform: uppercase;
}

.about__grid a:hover {
  color: var(--acid);
  border-color: var(--acid);
}

footer {
  padding: 2.5rem 1.5rem 1.5rem;
  background: var(--acid);
  color: #161614;
}

.footer__name {
  display: block;
  width: 100%;
  text-decoration: none;
}

.footer__name svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: currentColor;
}

.footer__name text {
  font-family: "Archivo Black", sans-serif;
}

.footer__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 4rem;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #161614;
  font-size: .66rem;
  text-transform: uppercase;
}

.footer__row a {
  text-decoration: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--paper);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

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

.lightbox__close {
  position: fixed;
  top: .9rem;
  left: 50%;
  z-index: 3;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: "Archivo Black", sans-serif;
  font-size: .9rem;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateX(-50%);
}

.lightbox__rail {
  position: fixed;
  right: auto;
  bottom: 0;
  left: 0;
  z-index: 3;
  display: flex;
  width: 100%;
  height: 6.2rem;
  flex-direction: row;
  align-items: flex-end;
  gap: .7rem;
  padding: 1.2rem calc(50vw - 1.8rem) .45rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.lightbox__rail::-webkit-scrollbar {
  display: none;
}

.lightbox__rail button {
  flex: 0 0 auto;
  width: 3.6rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s, transform .25s;
}

.lightbox__rail button:hover,
.lightbox__rail button.is-active {
  opacity: 1;
}

.lightbox__rail button.is-active {
  z-index: 2;
  transform: translateY(-.55rem) scale(1.22);
}

.lightbox__rail img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.lightbox__stage {
  position: absolute;
  inset: 2.8rem 4rem 7.2rem;
  display: grid;
  margin: 0;
  place-items: center;
}

.lightbox__media {
  position: relative;
  display: flex;
  max-width: 78vw;
  max-height: 84svh;
  align-items: center;
  justify-content: center;
}

.lightbox__media > img {
  display: block;
  width: auto;
  max-width: min(72vw, 68rem);
  height: auto;
  max-height: 82svh;
  object-fit: contain;
  animation: gallery-reveal .45s ease-out;
}

.lightbox__caption {
  position: absolute;
  top: 50%;
  right: auto;
  left: calc(100% + .65rem);
  display: grid;
  gap: .2rem;
  font-size: .58rem;
  text-transform: uppercase;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
}

@keyframes gallery-reveal {
  from {
    opacity: 0;
    transform: scale(.985);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
  }

  .menu-dot {
    top: calc(1rem + .6rem);
    right: 1rem;
  }

  .topbar__tools {
    gap: .75rem;
  }

  .topbar__role {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 17vw, 5.5rem);
  }

  .hero__scroll {
    left: 1rem;
  }

  .menu-panel {
    padding: 7rem 1rem 1rem;
  }

  .menu-panel nav a {
    gap: .75rem 1rem;
  }

  .universes {
    padding: 6rem 1rem;
  }

  .universes__heading {
    margin-bottom: 4rem;
  }

  .universes__heading h2 {
    margin-bottom: 3rem;
    font-size: clamp(3rem, 15vw, 5.5rem);
  }

  .universes__heading h2 em {
    padding-left: 16%;
  }

  .universes__meta {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .universes__meta strong {
    font-size: 2rem;
  }

  .universes__meta p {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }

  .universe {
    grid-template-columns: auto 1fr auto;
    gap: .75rem;
    padding: 1.5rem 0;
  }

  .universe__type,
  .universe__year {
    display: none;
  }

  .universe__image {
    display: none;
  }

  .universe__name {
    font-size: 2.2rem;
  }

  .about {
    padding: 6rem 1rem;
  }

  .about__statement {
    grid-template-columns: 1fr;
    margin: 3rem 0 5rem;
  }

  .about__photo {
    width: min(100%, 18rem);
    aspect-ratio: 1 / 1;
  }

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

  .about__intro,
  .about__grid a {
    grid-column: auto;
  }

  .about__intro {
    padding-right: 0;
  }

  .about__services,
  .about__base {
    padding-top: 1.5rem;
    border-top: 1px solid #3d3c39;
  }

  footer {
    padding-inline: 1rem;
  }

  .footer__row {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .lightbox__rail {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    height: 5.8rem;
    flex-direction: row;
    padding: 1.1rem calc(50vw - 1.5rem) .4rem;
    overflow-x: auto;
    transform: none;
  }

  .lightbox__rail button {
    width: 3rem;
  }

  .lightbox__stage {
    inset: 3.5rem .75rem 6.5rem;
  }

  .lightbox__media {
    max-width: 94vw;
    max-height: 72svh;
  }

  .lightbox__media > img {
    max-width: 94vw;
    max-height: 72svh;
  }

  .lightbox__caption {
    top: auto;
    right: auto;
    bottom: -.2rem;
    left: 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    transform: none;
    writing-mode: initial;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
