:root {
  color-scheme: dark;
  --ink: #f4eee2;
  --forest: #102522;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--forest);
}

body {
  font-family: Georgia, "Times New Roman", serif;
}

.landing,
.gallery,
.veil {
  position: fixed;
  inset: 0;
}

.landing {
  isolation: isolate;
  overflow: hidden;
  background: var(--forest);
}

.gallery {
  z-index: -2;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  background: #0c1d1a;
}

.gallery__column {
  display: flex;
  flex-direction: column;
  gap: 0;
  will-change: transform;
}

.gallery__column--up {
  animation: drift-up 100s linear infinite;
}

.gallery__column--down {
  animation: drift-down 115s linear infinite;
}

.gallery__column--slow.gallery__column--up {
  animation-duration: 132s;
}

.gallery__column--slow.gallery__column--down {
  animation-duration: 124s;
}

.gallery__tile {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex: 0 0 auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.veil {
  z-index: -1;
  background:
    radial-gradient(circle at center, rgba(8, 23, 20, 0.28) 0%, rgba(8, 23, 20, 0.62) 38%, rgba(7, 18, 16, 0.88) 100%),
    rgba(9, 27, 24, 0.28);
}

.intro {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(460px, calc(100vw - 48px));
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.48);
}

.logo {
  width: clamp(112px, 18vw, 168px);
  height: auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.24));
}

.intro__rule {
  width: 34px;
  height: 1px;
  margin: 29px 0 23px;
  background: currentColor;
  opacity: 0.8;
}

.intro__copy {
  margin: 0;
  font-size: clamp(14px, 1.32vw, 17px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.intro__whisper {
  margin: 29px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.78;
}

.site-mark {
  position: absolute;
  z-index: 1;
  right: 25px;
  bottom: 21px;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.58;
}

.privacy {
  position: fixed;
  z-index: 2;
  bottom: 18px;
  left: 18px;
  font-family: Arial, Helvetica, sans-serif;
  text-shadow: none;
}

.privacy__panel {
  width: min(380px, calc(100vw - 36px));
  padding: 19px 20px 17px;
  border: 1px solid rgba(244, 238, 226, 0.2);
  background: rgba(12, 29, 26, 0.94);
  color: var(--ink);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(14px);
}

.privacy__panel[hidden],
.privacy__settings[hidden] {
  display: none;
}

.privacy__eyebrow {
  margin: 0 0 8px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.62;
}

.privacy__title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.privacy__copy {
  margin: 0;
  font-size: 11px;
  line-height: 1.55;
  opacity: 0.82;
}

.privacy__actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
}

.privacy__button,
.privacy__settings {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(244, 238, 226, 0.38);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.privacy__button--accept {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--forest);
}

.privacy__button:hover,
.privacy__settings:hover {
  border-color: var(--ink);
}

.privacy__settings {
  min-height: 28px;
  padding: 0 10px;
  border-color: rgba(244, 238, 226, 0.22);
  background: rgba(12, 29, 26, 0.62);
  font-size: 8px;
  opacity: 0.72;
  backdrop-filter: blur(8px);
}

.privacy__settings:hover {
  opacity: 1;
}

.privacy__button:focus-visible,
.privacy__settings:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@keyframes drift-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

@keyframes drift-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}

@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery__column--wide {
    display: none;
  }

  .intro__copy {
    font-size: 14px;
  }
}

@media (max-width: 460px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery__column:nth-child(3),
  .gallery__column:nth-child(4) {
    display: none;
  }

  .intro__copy br {
    display: none;
  }

  .intro__copy {
    max-width: 290px;
  }

  .privacy {
    bottom: 12px;
    left: 12px;
  }

  .privacy__panel {
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__column {
    animation: none;
  }
}
