:root {
  color-scheme: dark;
  --bg: #10100f;
  --text: #f4efe7;
  --muted: #b8ada0;
  --line: rgba(244, 239, 231, 0.14);
  --panel: rgba(30, 28, 25, 0.72);
  --accent: #e7b86c;
  --accent-2: #8fc0b4;
  --danger: #ff6b65;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --scroll-progress: 0%;
  --hero-shift: 0px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% 12%, rgba(231, 184, 108, 0.16), transparent 30%),
    radial-gradient(circle at 84% 8%, rgba(143, 192, 180, 0.14), transparent 28%),
    linear-gradient(140deg, #10100f 0%, #1b1916 48%, #0d0d0c 100%);
  color: var(--text);
  overflow-x: hidden;
}

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

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

input,
textarea,
a,
button,
.status {
  user-select: auto;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  background-image: url("/assets/noise.png");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: var(--scroll-progress);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2));
  box-shadow: 0 0 24px rgba(231, 184, 108, 0.48);
  transform-origin: left center;
  transition: width 80ms linear;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translateX(-50%);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 16, 15, 0.72);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  transition: transform 260ms ease, padding 260ms ease, background 260ms ease;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--text);
  color: var(--bg);
}

.nav {
  gap: 4px;
}

.nav a,
.nav-account,
.button,
.auth-toggle,
.copy-button,
.delete-button,
.modal-close {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: transform 260ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.site-header.is-compressed {
  padding-block: 7px;
  background: rgba(16, 16, 15, 0.84);
  transform: translateX(-50%) translateY(-3px);
}

.nav a,
.nav-account {
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
}

.nav a:hover,
.nav-account:hover,
.button:hover,
.auth-toggle:hover,
.copy-button:hover,
.delete-button:hover,
.modal-close:hover {
  transform: translateY(-1px);
}

.nav a:hover,
.nav-account:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-account.is-logged-in {
  color: var(--accent-2);
  border-color: rgba(143, 192, 180, 0.24);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  padding: 120px max(24px, calc((100vw - 1120px) / 2)) 46px;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(16, 16, 15, 0.94), rgba(16, 16, 15, 0.42) 54%, rgba(16, 16, 15, 0.84));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08);
  transform: scale(1.04) translate3d(0, var(--hero-shift), 0);
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero-copy {
  width: min(760px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(64px, 14vw, 178px);
}

h2 {
  font-size: clamp(38px, 7vw, 86px);
}

.lead,
.section-heading p,
.upload-copy p,
.about-section p {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
}

.button.small {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}

.primary {
  background: var(--text);
  color: var(--bg);
}

.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - 1120px) / 2));
  bottom: 54px;
  width: 160px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel span,
.hero-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hero-panel strong {
  display: block;
  margin: 6px 0;
  font-size: 42px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(244, 239, 231, 0.035);
}

.strip span {
  min-height: 70px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0;
  opacity: 0.86;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section.is-current {
  opacity: 1;
  transform: translateY(0);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

.section-heading p {
  margin: 0;
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 16px;
}

.image-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  break-inside: avoid;
  transform: translateY(22px) scale(0.985) translateZ(0);
  transition:
    opacity 760ms ease var(--stagger, 0ms),
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--stagger, 0ms),
    border-color 260ms ease,
    box-shadow 380ms ease;
  opacity: 0;
}

.image-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) translateZ(0);
}

.image-card img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 700ms ease;
}

.image-card:hover img {
  transform: scale(1.055);
  filter: saturate(1.06) contrast(1.05);
}

.image-card:hover {
  border-color: rgba(231, 184, 108, 0.32);
  box-shadow: 0 30px 88px rgba(0, 0, 0, 0.52);
}

.image-card::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28%, transparent 72%, rgba(231, 184, 108, 0.08));
  opacity: 0;
  transition: opacity 500ms ease;
}

.image-card:hover::after {
  opacity: 1;
}

.image-card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  padding: 56px 14px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.image-card-info strong,
.image-card-info span {
  display: block;
}

.image-card-info span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.copy-button,
.delete-button {
  border-color: var(--line);
  background: rgba(16, 16, 15, 0.72);
  color: var(--text);
}

.copy-button {
  flex: 0 0 auto;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

.delete-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  min-height: 34px;
  color: var(--danger);
  font-size: 22px;
  opacity: 0;
}

.image-card:hover .delete-button {
  opacity: 1;
}

.upload-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
  gap: 42px;
  align-items: start;
  border-top: 1px solid var(--line);
}

.upload-section.is-private-locked {
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 0.72fr);
}

.upload-copy p,
.about-section p {
  margin: 22px 0 0;
}

.upload-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 239, 231, 0.06);
  box-shadow: var(--shadow);
}

.private-gate {
  display: flex;
  min-height: 138px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 239, 231, 0.07), transparent 58%),
    rgba(0, 0, 0, 0.18);
  box-shadow: var(--shadow);
}

.private-gate-copy {
  display: grid;
  gap: 12px;
  align-content: center;
}

.private-gate-copy span,
.private-gate-copy strong {
  display: block;
}

.private-gate-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.private-gate-copy strong {
  max-width: 170px;
  font-size: 18px;
  line-height: 1.35;
}

.private-preview {
  position: relative;
  width: 154px;
  height: 118px;
  flex: 0 0 154px;
}

.private-preview img {
  position: absolute;
  width: 74px;
  height: 98px;
  border: 1px solid rgba(244, 239, 231, 0.18);
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 420ms ease;
}

.private-preview img:nth-child(1) {
  left: 0;
  top: 14px;
  transform: rotate(-7deg);
}

.private-preview img:nth-child(2) {
  left: 42px;
  top: 0;
  z-index: 2;
}

.private-preview img:nth-child(3) {
  right: 0;
  top: 18px;
  transform: rotate(7deg);
}

.private-gate:hover .private-preview img:nth-child(1) {
  transform: translateX(-5px) translateY(2px) rotate(-10deg);
}

.private-gate:hover .private-preview img:nth-child(2) {
  transform: translateY(-5px);
  filter: saturate(1.08);
}

.private-gate:hover .private-preview img:nth-child(3) {
  transform: translateX(5px) translateY(2px) rotate(10deg);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
  outline: none;
}

input:focus {
  border-color: rgba(231, 184, 108, 0.72);
}

.dropzone {
  min-height: 150px;
  place-items: center;
  border: 1px dashed rgba(244, 239, 231, 0.28);
  border-radius: 8px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.drop-title,
.drop-meta {
  display: block;
}

.drop-title {
  color: var(--text);
  font-size: 18px;
}

.drop-meta {
  margin-top: -8px;
  color: var(--muted);
  font-size: 12px;
}

.dropzone.is-dragging {
  border-color: var(--accent);
  background: rgba(231, 184, 108, 0.08);
}

.dropzone.is-uploading {
  border-color: var(--accent-2);
  background: rgba(143, 192, 180, 0.09);
}

.status {
  min-height: 20px;
  margin: 0;
  color: var(--accent-2);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 6, 0.72);
  backdrop-filter: blur(12px);
}

.auth-card {
  position: relative;
  width: min(440px, 100%);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 19, 17, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.is-open .auth-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.auth-card h2 {
  font-size: clamp(36px, 10vw, 58px);
}

.auth-hint {
  margin: 14px 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-toggle {
  min-height: 34px;
  color: var(--muted);
  font-size: 13px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  min-height: 34px;
  color: var(--muted);
  font-size: 24px;
}

.account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.account-panel span {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.about-section {
  max-width: 840px;
  margin-bottom: 42px;
  border-top: 1px solid var(--line);
}

[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition:
    opacity 760ms ease,
    filter 760ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@keyframes slowZoom {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.4%, -1%, 0);
  }
}

@media (max-width: 820px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .nav a {
    padding-inline: 9px;
  }

  .hero {
    min-height: 92vh;
    padding: 102px 16px 34px;
  }

  .hero-panel {
    position: static;
    width: 100%;
    margin-top: 28px;
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .section,
  .upload-section,
  .section-heading {
    display: block;
  }

  .section {
    width: calc(100% - 28px);
    padding: 72px 0;
  }

  .section-heading p,
  .upload-form {
    margin-top: 24px;
  }
}

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

  .scroll-progress {
    transition: none !important;
  }

  .section,
  .image-card,
  [data-reveal],
  .auth-card,
  .hero-media img {
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
