@font-face {
  font-family: "Soha Display";
  src: url("assets/fonts/marcellus-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Soha Sans";
  src: url("assets/fonts/karla-latin.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0c0c0c;
  --ink-soft: #151412;
  --paper: #eee9df;
  --muted: #9c978e;
  --rule: rgba(238, 233, 223, 0.18);
  --cobalt: #1538ba;
  --clay: #9f4a2d;
  --gold: #b69a64;
  --sans: "Soha Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Soha Display", Georgia, "Times New Roman", serif;
}

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

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 42% 110%, rgba(159, 74, 45, 0.13), transparent 32rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  z-index: 20;
  inset: 0;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header,
.site-footer {
  position: fixed;
  z-index: 10;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.site-header {
  top: 0;
  height: 7.5rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  text-decoration: none;
}

.brand__name {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.25vw, 2.65rem);
  letter-spacing: 0.3em;
  line-height: 1;
}

.brand__descriptor,
.header-meta,
.site-footer {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.header-tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 1.5rem;
  margin-left: auto;
  padding: 0.2rem 0.8rem 0.2rem 1.15rem;
  border: 1px solid rgba(238, 233, 223, 0.16);
  border-radius: 2px;
  background: rgba(12, 12, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--paper);
  white-space: nowrap;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.language-switch a {
  display: grid;
  min-width: 2rem;
  min-height: 2.75rem;
  place-items: center;
  color: #c9c4bb;
  text-decoration: none;
}

.language-switch span {
  color: var(--muted);
}

.language-switch a[aria-current="true"],
.language-switch a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.language-switch a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}

.header-meta__line {
  width: 2.5rem;
  height: 1px;
  background: var(--rule);
}

.maintenance-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(25rem, 0.92fr);
}

.intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 9rem clamp(2rem, 8vw, 9rem) 7rem clamp(1.25rem, 6vw, 7rem);
}

.eyebrow {
  margin: 0 0 clamp(1.8rem, 4vh, 3.75rem);
  color: var(--gold);
  font-size: 0.69rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.eyebrow > span:first-child {
  display: inline-block;
  margin-right: 1.4rem;
  color: rgba(238, 233, 223, 0.38);
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(4rem, 7.4vw, 8.75rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.83;
}

h1 .title-emphasis {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(238, 233, 223, 0.58);
}

html[lang="es"] h1 {
  max-width: 12ch;
  font-size: clamp(3.5rem, 6.2vw, 7.5rem);
  line-height: 0.95;
}

.intro__copy {
  max-width: 35rem;
  margin: clamp(2rem, 4vh, 3.75rem) 0 0;
  color: #bbb6ad;
  font-size: clamp(0.92rem, 1.05vw, 1.15rem);
  font-weight: 300;
  line-height: 1.7;
}

.intro__actions {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.25rem);
  margin-top: clamp(2rem, 5vh, 4rem);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 3.2rem;
  padding: 1rem 1.2rem 1rem 0;
  border-bottom: 1px solid rgba(238, 233, 223, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 220ms ease, border-color 220ms ease;
}

.primary-link svg {
  width: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  transition: transform 220ms ease;
}

.primary-link:hover,
.primary-link:focus-visible {
  color: var(--gold);
  border-color: var(--gold);
}

.primary-link:hover svg,
.primary-link:focus-visible svg {
  transform: translateX(0.4rem);
}

.text-link {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-underline-offset: 0.4rem;
  transition: color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--paper);
}

.availability {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: clamp(2.5rem, 6vh, 5.5rem) 0 0;
  color: #767269;
  font-size: 0.62rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.availability__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0.8rem rgba(182, 154, 100, 0.65);
}

.art-stage {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--ink-soft);
}

.art-stage::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 7, 7, 0.3) 0%, transparent 25%, transparent 60%, rgba(7, 7, 7, 0.78) 100%),
    linear-gradient(90deg, rgba(12, 12, 12, 0.18), transparent 30%);
}

.art-stage__halo {
  position: absolute;
  z-index: 3;
  top: 14%;
  left: -18%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cobalt);
  filter: blur(7rem);
  opacity: 0.15;
  pointer-events: none;
  transition: background-color 800ms ease;
}

.artwork {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.artwork.is-active {
  opacity: 1;
  transform: scale(1);
}

.artwork img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.88) contrast(1.05);
}

.artwork-caption {
  position: absolute;
  z-index: 6;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: 6.75rem;
  left: clamp(1.25rem, 4vw, 4.5rem);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(238, 233, 223, 0.42);
}

.artwork-caption__index {
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
}

.artwork-caption__title {
  margin: 0.4rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.artwork-controls {
  display: flex;
}

.artwork-control {
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 233, 223, 0.42);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.artwork-control + .artwork-control {
  margin-left: -0.25rem;
}

.artwork-control svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.artwork-control:hover,
.artwork-control:focus-visible {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.site-footer {
  bottom: 0;
  height: 4.5rem;
  pointer-events: none;
}

@media (max-width: 900px) {
  body {
    min-height: 100svh;
  }

  .site-header {
    height: 6.5rem;
  }

  .header-tools {
    padding-inline: 0.5rem;
  }

  .brand__descriptor,
  .header-meta {
    display: none;
  }

  .maintenance-shell {
    display: block;
  }

  .intro {
    min-height: 58svh;
    padding: 8rem 1.5rem 4rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(3.85rem, 16vw, 6.5rem);
  }

  html[lang="es"] h1 {
    max-width: none;
    font-size: clamp(3.5rem, 15vw, 6rem);
  }

  .intro__copy {
    max-width: 31rem;
  }

  .availability {
    display: none;
  }

  .art-stage {
    min-height: 62svh;
  }

  .artwork-caption {
    bottom: 2rem;
  }

  .site-footer {
    position: relative;
    height: auto;
    padding-block: 1.5rem;
    background: var(--ink);
  }
}

@media (max-width: 560px) {
  .intro {
    min-height: 64svh;
    padding-inline: 1.25rem;
  }

  .eyebrow {
    margin-bottom: 1.75rem;
  }

  h1 {
    font-size: clamp(3.5rem, 17vw, 5.25rem);
    line-height: 0.88;
  }

  .intro__copy {
    font-size: 0.9rem;
  }

  .intro__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.25rem;
  }

  .primary-link {
    width: 100%;
    justify-content: space-between;
  }

  .art-stage {
    min-height: 68svh;
  }

  .site-footer span:first-child {
    display: none;
  }

  .site-footer {
    justify-content: flex-end;
  }
}

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