:root {
  color-scheme: light;
  --white: #fffafa;
  --paper: #fff5f6;
  --ink: #151012;
  --muted: #77676d;
  --red: #d71920;
  --red-deep: #8d0f2d;
  --burgundy: #5c0a20;
  --line: rgba(21, 16, 18, 0.12);
  --line-light: rgba(255, 255, 255, 0.16);
  --shadow: 0 18px 52px rgba(92, 10, 32, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body:has(.lightbox[open]) {
  overflow: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.page-shell {
  overflow: hidden;
}

.hero {
  min-height: 100svh;
  padding: 18px 16px 42px;
  background:
    linear-gradient(rgba(21, 16, 18, 0.54), rgba(21, 16, 18, 0.18)),
    url("data:image/svg+xml,%3Csvg width='1600' height='1100' viewBox='0 0 1600 1100' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1600' height='1100' fill='%23fff7f8'/%3E%3Ccircle cx='1240' cy='220' r='420' fill='%23d71920' fill-opacity='.18'/%3E%3Ccircle cx='420' cy='760' r='520' fill='%235c0a20' fill-opacity='.14'/%3E%3Cpath d='M0 876c211-96 399-119 564-69 269 81 456 91 694-3 125-50 227-68 342-54v350H0Z' fill='%235c0a20' fill-opacity='.92'/%3E%3Cpath d='M0 932c221-65 420-69 596-13 276 88 483 75 690-36 80-43 165-62 314-54v271H0Z' fill='%23151012' fill-opacity='.96'/%3E%3C/svg%3E")
      center / cover;
}

.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand,
.nav-link {
  color: #fff;
  text-decoration: none;
}

.brand {
  font-size: 0.95rem;
  font-weight: 950;
  text-transform: uppercase;
}

.nav-link {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 0.88rem;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.hero-grid {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 52px;
}

.hero-copy {
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffb7c0;
}

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

h1 {
  max-width: 700px;
  font-size: 3.25rem;
  text-transform: uppercase;
}

h2 {
  font-size: 2.35rem;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--burgundy));
  box-shadow: 0 16px 36px rgba(215, 25, 32, 0.28);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-art {
  position: relative;
  min-height: 330px;
}

.photo-stack {
  position: absolute;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: min(58vw, 238px);
  aspect-ratio: 4 / 5;
  border: 8px solid #fff;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 35%),
    linear-gradient(135deg, var(--red), var(--burgundy));
  box-shadow: var(--shadow);
}

.photo-stack img {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-stack img:not([hidden]) + span {
  display: none;
}

.photo-stack span {
  grid-area: 1 / 1;
  z-index: 1;
  font-size: 4rem;
  font-weight: 950;
}

.photo-stack.one {
  top: 18px;
  left: 0;
  transform: rotate(-8deg);
}

.photo-stack.two {
  top: 74px;
  right: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), transparent 38%),
    linear-gradient(135deg, #151012, #5c0a20);
  transform: rotate(7deg);
}

.photo-stack.three {
  right: 52px;
  bottom: 0;
  transform: rotate(-2deg);
}

.upload-band,
.gallery-section {
  padding: 58px 16px;
}

.upload-band {
  background:
    radial-gradient(circle at 92% 8%, rgba(215, 25, 32, 0.1), transparent 18rem),
    var(--white);
}

.gallery-section {
  color: #fff;
  background:
    radial-gradient(circle at 92% 6%, rgba(215, 25, 32, 0.28), transparent 17rem),
    radial-gradient(circle at 0% 100%, rgba(141, 15, 45, 0.28), transparent 18rem),
    linear-gradient(180deg, #130d0f 0%, #240713 100%);
}

.section-heading {
  max-width: 1080px;
  margin: 0 auto 24px;
}

.section-heading p:not(.eyebrow) {
  max-width: 640px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-section .section-heading {
  margin-bottom: 0;
}

.gallery-section .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.upload-form {
  display: grid;
  gap: 14px;
  max-width: 1080px;
  margin: 0 auto;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 850;
}

.field input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.field input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
}

.dropzone {
  position: relative;
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 190px;
  border: 2px dashed rgba(92, 10, 32, 0.28);
  border-radius: 8px;
  padding: 26px 18px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.08), rgba(92, 10, 32, 0.08)),
    #fff;
  cursor: pointer;
}

.dropzone.is-dragging {
  border-color: var(--red);
  background: rgba(215, 25, 32, 0.1);
}

.dropzone input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}

.dropzone-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 2rem;
  font-weight: 900;
}

.dropzone strong {
  max-width: 320px;
}

.dropzone small {
  color: var(--muted);
}

.submit-button {
  width: 100%;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--burgundy);
  font-weight: 850;
}

.gallery-head {
  display: grid;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.gallery-stats {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-self: start;
  gap: 10px;
  min-width: 168px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 14px 10px 12px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.stats-number {
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.stats-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.2;
}

.gallery-toolbar {
  display: flex;
  gap: 8px;
  max-width: 1180px;
  margin: 24px auto 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.gallery-toolbar::-webkit-scrollbar {
  display: none;
}

.gallery-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  padding: 10px 13px;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.gallery-chip.active {
  color: #fff;
  border-color: transparent;
  background: var(--red);
}

.gallery-chip.muted {
  color: rgba(255, 255, 255, 0.62);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.chat-message {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: end;
  gap: 10px;
}

.chat-message.side-right {
  grid-template-columns: minmax(0, 1fr) 38px;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--burgundy));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  font-size: 0.78rem;
  font-weight: 950;
}

.side-right .message-avatar {
  grid-column: 2;
  background: linear-gradient(135deg, #151012, var(--red-deep));
}

.message-bubble {
  position: relative;
  display: grid;
  gap: 11px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px 8px 8px 3px;
  padding: 12px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.09);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.message-bubble::before {
  position: absolute;
  bottom: -1px;
  left: -8px;
  width: 16px;
  height: 18px;
  background: rgba(255, 255, 255, 0.11);
  clip-path: polygon(100% 8%, 100% 100%, 0 100%);
  content: "";
}

.side-right .message-bubble {
  grid-column: 1;
  border-color: rgba(255, 183, 192, 0.28);
  border-radius: 8px 8px 3px 8px;
  background:
    linear-gradient(145deg, rgba(215, 25, 32, 0.42), rgba(92, 10, 32, 0.5)),
    rgba(141, 15, 45, 0.5);
}

.side-right .message-bubble::before {
  right: -8px;
  left: auto;
  background: rgba(141, 15, 45, 0.72);
  clip-path: polygon(0 8%, 100% 100%, 0 100%);
}

.message-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.message-author {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.message-header strong {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-author small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.72rem;
  font-weight: 850;
}

.message-header time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.74rem;
  font-weight: 850;
}

.message-photos {
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  gap: 3px;
  background: rgba(21, 16, 18, 0.22);
}

.message-photos.single {
  grid-template-columns: 1fr;
}

.message-photos.duo,
.message-photos.multi {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.message-photo {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  background: #2a1018;
  isolation: isolate;
}

.message-photos.single .message-photo {
  min-height: 260px;
}

.message-photos.multi .message-photo:first-child {
  grid-column: 1 / -1;
  min-height: 220px;
}

.photo-open {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  background: #2a1018;
}

.photo-open img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.message-photo:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.photo-download {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(21, 16, 18, 0.66);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  font-size: 0.76rem;
  font-weight: 950;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition:
    background 160ms ease,
    transform 160ms ease;
}

.photo-download:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.message-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.side-right .message-text {
  color: rgba(255, 255, 255, 0.9);
}

.chat-message.skeleton .message-avatar,
.chat-message.skeleton .message-bubble {
  min-height: 38px;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.06);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.chat-message.skeleton .message-bubble {
  min-height: 220px;
}

.empty-gallery {
  display: grid;
  gap: 8px;
  max-width: 1180px;
  margin: 0 auto;
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 28px;
  color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(215, 25, 32, 0.12), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.empty-gallery[hidden],
.gallery[hidden] {
  display: none;
}

.empty-gallery strong {
  color: #fff;
  font-size: 1.2rem;
}

.lightbox {
  width: min(100% - 24px, 1080px);
  max-height: min(92svh, 860px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #151012;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

.lightbox::backdrop {
  background: rgba(21, 16, 18, 0.78);
  backdrop-filter: blur(10px);
}

.lightbox img {
  display: block;
  width: 100%;
  max-height: 78svh;
  object-fit: contain;
  background: #090607;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: #fff;
  background: rgba(21, 16, 18, 0.68);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
}

.lightbox-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  padding: 14px 16px 16px;
}

.lightbox-caption div {
  display: grid;
  gap: 4px;
}

.lightbox-caption span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.lightbox-download {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 10px 13px;
  color: #fff;
  background: var(--red);
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

@keyframes shimmer {
  from {
    background-position: 180% 0;
  }

  to {
    background-position: -20% 0;
  }
}

@media (min-width: 560px) {
  .hero {
    padding: 24px 28px 56px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .button {
    width: auto;
  }

  .submit-button {
    width: auto;
    justify-self: start;
  }

  .chat-message {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .chat-message.side-right {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .message-avatar {
    width: 44px;
    height: 44px;
  }

  .message-bubble {
    padding: 14px;
  }

  .message-photos.single .message-photo {
    min-height: 340px;
  }

  .message-photos.multi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .message-photos.multi .message-photo:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 760px) {
  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 3.8rem;
  }

  .lead {
    font-size: 1.16rem;
  }

  .upload-band,
  .gallery-section {
    padding: 76px 28px;
  }

  .upload-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dropzone {
    grid-column: 1 / -1;
    min-height: 230px;
  }

  .form-status {
    align-self: center;
  }

  .gallery-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .gallery-stats {
    justify-self: end;
  }

  .gallery-toolbar {
    margin-top: 28px;
    margin-bottom: 24px;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 28px 56px 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
    align-items: center;
    gap: 72px;
    min-height: calc(100svh - 110px);
    padding-top: 0;
  }

  .hero-copy {
    padding-top: 42px;
  }

  h1 {
    font-size: 8.8rem;
  }

  h2 {
    font-size: 5.1rem;
  }

  .lead {
    font-size: 1.28rem;
  }

  .hero-art {
    min-height: 560px;
  }

  .photo-stack {
    width: min(34vw, 320px);
    border-width: 10px;
  }

  .photo-stack span {
    font-size: 7.5rem;
  }

  .photo-stack.one {
    top: 62px;
  }

  .photo-stack.two {
    top: 166px;
    right: 10px;
  }

  .photo-stack.three {
    right: 108px;
    bottom: 30px;
  }

  .upload-band,
  .gallery-section {
    padding: 104px 56px;
  }

  .gallery {
    max-width: 980px;
    gap: 18px;
  }

  .message-bubble {
    max-width: 820px;
  }

  .side-right .message-bubble {
    justify-self: end;
  }

  .message-photo {
    min-height: 150px;
  }

  .message-photos.single .message-photo {
    min-height: 460px;
  }

  .message-photos.multi .message-photo:first-child {
    min-height: 318px;
  }
}
