:root {
  --forest: #003f3b;
  --deep: #001d1c;
  --ink: #071f1e;
  --honey: #f3a900;
  --gold: #d88800;
  --cream: #fff9eb;
  --mist: #e9f2ef;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--deep);
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

button,
input {
  font: inherit;
}

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

img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.gallery-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 0%, rgba(11, 91, 81, 0.72), transparent 35%),
    radial-gradient(circle at 8% 36%, rgba(243, 169, 0, 0.08), transparent 24%),
    linear-gradient(150deg, #001b1a 0%, #003d38 52%, #001a19 100%);
}

.ambient-grid,
.access-honeycomb {
  position: absolute;
  inset: 0;
  opacity: 0.17;
  pointer-events: none;
  background-image:
    linear-gradient(30deg, rgba(243, 169, 0, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(243, 169, 0, 0.18) 87.5%, rgba(243, 169, 0, 0.18)),
    linear-gradient(150deg, rgba(243, 169, 0, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(243, 169, 0, 0.18) 87.5%, rgba(243, 169, 0, 0.18)),
    linear-gradient(30deg, rgba(243, 169, 0, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(243, 169, 0, 0.18) 87.5%, rgba(243, 169, 0, 0.18)),
    linear-gradient(150deg, rgba(243, 169, 0, 0.18) 12%, transparent 12.5%, transparent 87%, rgba(243, 169, 0, 0.18) 87.5%, rgba(243, 169, 0, 0.18)),
    linear-gradient(60deg, rgba(243, 169, 0, 0.12) 25%, transparent 25.5%, transparent 75%, rgba(243, 169, 0, 0.12) 75%);
  background-size: 84px 147px;
  background-position: 0 0, 0 0, 42px 74px, 42px 74px, 0 0;
  mask-image: linear-gradient(to bottom, black, transparent 58%);
}

.site-header {
  position: relative;
  z-index: 5;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.wordmark-icon,
.brand-symbol {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  aspect-ratio: 1;
  background: var(--honey);
  clip-path: polygon(25% 7%, 75% 7%, 100% 50%, 75% 93%, 25% 93%, 0 50%);
}

.wordmark-icon::after,
.brand-symbol span {
  content: "";
  width: 19px;
  height: 24px;
  border: 2px solid var(--forest);
  border-radius: 4px 4px 9px 9px;
}

.wordmark strong,
.wordmark small {
  display: block;
  line-height: 0.9;
  letter-spacing: 0.12em;
}

.wordmark strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.wordmark small {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.32em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.private-pill,
.lock-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lock-button {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  transition: 180ms ease;
}

.lock-button:hover,
.lock-button:focus-visible {
  background: var(--honey);
  color: var(--deep);
  border-color: var(--honey);
  outline: none;
}

.intro {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(82px, 10vw, 156px) 0 clamp(54px, 6vw, 92px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--honey);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.intro h1,
.access-card h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

.intro h1 em {
  display: block;
  color: var(--honey);
  font-weight: 400;
}

.intro > p:last-child {
  max-width: 640px;
  margin: 34px auto 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.artwork-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  padding-bottom: 120px;
}

.artwork-card {
  min-width: 0;
}

.artwork-wide {
  grid-column: 1 / -1;
}

.artwork-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: clamp(18px, 3vw, 34px);
  background: #052c29;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.artwork-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: linear-gradient(to top, rgba(0, 20, 18, 0.28), transparent 25%);
  transition: background 250ms ease;
}

.artwork-trigger img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.artwork-trigger:hover img,
.artwork-trigger:focus-visible img {
  transform: scale(1.025);
}

.artwork-trigger:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 5px;
}

.image-watermark {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.34);
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.view-chip {
  position: absolute;
  z-index: 5;
  top: 20px;
  right: 20px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  background: rgba(0, 29, 28, 0.58);
  backdrop-filter: blur(10px);
  font-size: 12px;
}

.artwork-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px 0;
}

.artwork-meta span {
  color: var(--honey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.artwork-meta h2 {
  margin: 7px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
}

.artwork-meta p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

footer {
  position: relative;
  z-index: 2;
  padding: 48px 24px 56px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 18, 17, 0.72);
}

footer p {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--honey);
  font-size: 20px;
}

footer small {
  display: block;
  max-width: 1000px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.access-screen,
.loading-screen {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 75% 10%, rgba(20, 108, 96, 0.75), transparent 42%),
    linear-gradient(140deg, #001817, #003b37 58%, #001b19);
}

.access-screen::before {
  content: "";
  position: absolute;
  width: min(720px, 75vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(243, 169, 0, 0.13);
  filter: blur(100px);
  transform: translate(40vw, -35vh);
}

.access-card {
  position: relative;
  z-index: 2;
  width: min(610px, 100%);
  padding: clamp(32px, 7vw, 70px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
  background: rgba(0, 31, 29, 0.74);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.brand-symbol {
  width: 60px;
  margin-bottom: 32px;
}

.brand-symbol.small {
  width: 48px;
  margin: 0;
}

.access-card h1 {
  font-size: clamp(48px, 8vw, 76px);
}

.access-copy {
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.access-form label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  min-width: 0;
  flex: 1;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  outline: none;
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.input-row input:focus {
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(243, 169, 0, 0.14);
}

.input-row button {
  padding: 16px 22px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  background: var(--honey);
  color: var(--deep);
  font-weight: 800;
}

.form-error {
  margin: 12px 0 0;
  color: #ffd0c7;
  font-size: 13px;
}

.security-note {
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.loading-mark {
  width: 44px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--honey);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(1turn); }
}

.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 11, 10, 0.92);
  backdrop-filter: blur(18px);
}

.lightbox-stage {
  position: relative;
  z-index: 2;
  width: min(94vw, 1440px);
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #001f1d;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}

.lightbox-stage.portrait {
  width: min(94vw, 720px);
}

.lightbox-topbar {
  min-height: 58px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-topbar p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}

.lightbox-topbar p span {
  margin-right: 8px;
  color: var(--honey);
  font-family: Arial, sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.lightbox-topbar button {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  color: white;
  background: transparent;
}

.lightbox-image {
  position: relative;
  overflow: auto;
  display: grid;
  place-items: center;
  background: #001412;
}

.lightbox-image img {
  display: block;
  max-width: 100%;
  max-height: calc(92svh - 59px);
  object-fit: contain;
}

.image-watermark.large {
  right: 30px;
  bottom: 24px;
  color: rgba(255, 255, 255, 0.42);
}

.privacy-cover {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: #001715;
  transition: opacity 70ms linear, visibility 70ms linear;
}

.privacy-cover.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.privacy-cover p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 32px, 1440px);
    min-height: 84px;
  }

  .private-pill {
    display: none;
  }

  .lock-button {
    padding: 9px 12px;
    font-size: 10px;
  }

  .intro {
    width: min(100% - 34px, 1120px);
    padding-top: 72px;
  }

  .artwork-grid {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 720px);
    gap: 44px;
    padding-bottom: 80px;
  }

  .artwork-wide {
    grid-column: auto;
  }

  .artwork-trigger {
    border-radius: 18px;
  }

  .artwork-meta {
    padding: 18px 4px 0;
  }

  .artwork-meta p {
    font-size: 11px;
  }

  .image-watermark {
    right: 12px;
    bottom: 10px;
    font-size: 8px;
  }

  .view-chip {
    top: 12px;
    right: 12px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .input-row {
    flex-direction: column;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-stage,
  .lightbox-stage.portrait {
    width: 100%;
    max-height: 96svh;
    border-radius: 16px;
  }
}

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

@media print {
  html,
  body,
  .gallery-shell,
  .access-screen {
    display: none !important;
  }
}
