@font-face {
  font-family: "Hand Of Latest";
  src: url("assets/fonts/hand-of-latest-270.ttf") format("truetype");
  font-display: swap;
}

:root {
  --surface: #f9f9f9;
  --paper: #ffffff;
  --ink: #111111;
  --muted: #616363;
  --soft-line: #c4c7c7;
  --font: "Hand Of Latest", Arial, sans-serif;
  --edge: clamp(24px, 5vw, 80px);
  --header-y: 24px;
  --footer-y: 48px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--surface);
  color: var(--ink);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--header-y) var(--edge);
  background: rgba(249, 249, 249, 0.96);
}

.brand {
  font-size: clamp(23px, 2.2vw, 34px);
  font-style: italic;
  font-weight: 300;
  line-height: 1;
}

.main-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link,
.footer-nav a,
.back-link,
.copyright,
.artwork-date,
.meta-date,
.listening,
.link-column h2,
.link-column a,
.link-column p {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-link,
.footer-nav a {
  padding-bottom: 4px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.footer-nav a:hover,
.nav-link.is-active,
.footer-nav a.is-active {
  color: var(--ink);
  border-bottom-color: currentColor;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: calc(100vh - 82px);
  padding: 0 var(--edge) 31vh;
}

.intro p,
.about-copy p,
.artwork-description {
  max-width: 590px;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.intro h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(28px, 4.2vw, 58px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.08;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(56px, 9vw, 140px);
  row-gap: 48px;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 var(--edge) 92px;
}

.artwork-tile {
  display: flex;
  flex-direction: column;
  gap: 22px;
  color: var(--muted);
}

.artwork-frame {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
  padding: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.artwork-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 400ms ease;
}

.artwork-tile:hover img {
  opacity: 0.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 92px;
  padding: var(--footer-y) var(--edge);
  border-top: 1px solid var(--soft-line);
}

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

.about-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 199px);
  width: min(100% - calc(var(--edge) * 2), 840px);
  margin: 0 auto;
  padding: 13vh 0 17vh;
}

.about-copy {
  margin-bottom: clamp(92px, 14vh, 150px);
}

.link-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(64px, 12vw, 140px);
}

.about-location {
  grid-template-columns: 1fr;
}

.link-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.link-column h2 {
  margin: 0 0 14px;
  color: rgba(97, 99, 99, 0.55);
}

.link-column a {
  border-bottom: 1px solid currentColor;
}

.link-column p {
  margin: 0;
}

.detail-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ededed;
}

.detail-page {
  background: var(--paper);
}

.is-locked {
  overflow: hidden;
}

.is-locked main,
.is-locked .site-header,
.is-locked .site-footer {
  pointer-events: none;
  user-select: none;
  filter: blur(10px);
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 16, 16, 0.48);
  backdrop-filter: blur(8px);
}

.consent-modal__card {
  width: min(100%, 520px);
  padding: 28px 24px 24px;
  background: var(--paper);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
}

.consent-modal__eyebrow {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.consent-modal__card h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 36px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.08;
}

.consent-modal__card p {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.6;
  color: #1a1c1c;
}

.consent-modal__button {
  appearance: none;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  cursor: pointer;
}

.detail-brand {
  font-size: clamp(18px, 1.5vw, 24px);
}

.back-link {
  padding-bottom: 4px;
}

.back-link:hover {
  border-bottom: 1px solid currentColor;
}

.detail-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  padding: 110px var(--edge) 48px;
}

.detail-hero img {
  width: min(100%, 640px);
  max-height: 600px;
  object-fit: contain;
  cursor: zoom-in;
  transition: opacity 800ms ease, transform 800ms ease, width 240ms ease, max-height 240ms ease;
}

.detail-hero.is-zoomed {
  align-items: flex-start;
}

.detail-hero.is-zoomed img {
  width: min(100%, 920px);
  max-height: none;
  cursor: zoom-out;
}

.artwork-meta {
  width: min(100% - calc(var(--edge) * 2), 1110px);
  margin: 0 auto;
  padding: 0 0 178px;
}

.meta-date {
  margin: 0 0 14px;
  color: var(--muted);
}

.artwork-meta h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3vw, 40px);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.15;
}

.listening-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 32px;
}

.listening-disk {
  position: relative;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0 4%, rgba(255, 255, 255, 0.28) 8%, transparent 21%),
    radial-gradient(circle at 65% 72%, rgba(255, 255, 255, 0.14) 0 9%, transparent 22%),
    conic-gradient(
      from 12deg,
      rgba(255, 255, 255, 0.7),
      rgba(215, 218, 221, 0.95) 16%,
      rgba(243, 243, 238, 0.92) 28%,
      rgba(165, 170, 176, 0.92) 42%,
      rgba(255, 255, 255, 0.86) 58%,
      rgba(171, 176, 182, 0.92) 74%,
      rgba(255, 255, 255, 0.7)
    );
  border: 1.5px solid rgba(17, 17, 17, 0.45);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset -5px -8px 10px rgba(0, 0, 0, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.45);
  transform-origin: 50% 50%;
  animation: disk-spin 4.5s linear infinite;
}

.listening-disk::before,
.listening-disk::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(17, 17, 17, 0.14);
}

.listening-disk::after {
  inset: 17px;
  border: 1px solid rgba(17, 17, 17, 0.08);
}

.disk-rim,
.disk-reflection,
.disk-center {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.disk-rim {
  inset: 3px;
  border: 1px solid rgba(17, 17, 17, 0.2);
}

.disk-reflection {
  top: 10px;
  left: 12px;
  width: 18px;
  height: 28px;
  transform: rotate(-24deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
  filter: blur(0.2px);
  opacity: 0.8;
}

.disk-center {
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background:
    radial-gradient(circle at 40% 35%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2) 32%, rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, 0.58);
  border: 1.5px solid rgba(17, 17, 17, 0.48);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
}

.listening-text {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.artwork-description {
  max-width: 420px;
  margin-bottom: 48px;
  color: #1a1c1c;
  white-space: pre-line;
}

.fade-ready .artwork-tile,
.fade-ready .detail-hero img {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 800ms ease, transform 800ms ease;
}

@keyframes disk-spin {
  from {
    transform: rotate(0deg) translate3d(0, 0, 0);
  }

  to {
    transform: rotate(360deg) translate3d(0, 0, 0);
  }
}

.fade-ready .artwork-tile.is-visible,
.fade-ready .detail-hero img.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 820px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    gap: 24px;
  }

  .site-header {
    position: static;
  }

  .brand {
    max-width: 48vw;
    line-height: 1.15;
  }

  .intro {
    min-height: 54vh;
    align-items: center;
    padding-bottom: 8vh;
  }

  .gallery {
    grid-template-columns: 1fr;
    row-gap: 64px;
    padding-bottom: 80px;
  }

  .artwork-tile {
    gap: 14px;
  }

  .site-footer {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .link-columns {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-main {
    min-height: auto;
    padding: 16vh 0 18vh;
  }

  .detail-header {
    flex-direction: row;
    align-items: center;
  }

  .detail-hero {
    min-height: 66vh;
    padding-top: 80px;
  }

  .artwork-meta {
    padding-bottom: 96px;
  }

  .listening-block {
    margin-bottom: 24px;
  }
}

@media (max-width: 520px) {
  :root {
    --edge: 24px;
  }

  .site-header {
    flex-direction: column;
  }

  .brand {
    max-width: none;
  }

  .main-nav,
  .footer-nav {
    gap: 18px;
  }

  .intro p,
  .about-copy p,
  .artwork-description {
    font-size: 13px;
  }

  .detail-header {
    flex-direction: column-reverse;
  }

  .artwork-frame {
    aspect-ratio: 1;
  }

  .listening-block {
    gap: 12px;
  }

  .listening-disk {
    width: 28px;
    height: 28px;
  }

  .disk-center {
    width: 6px;
    height: 6px;
  }
}
