/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --accent: #C03A14;
  --black: #000;
  --gray: #888;
  --border: #000;
  --bg: #fff;
  --mono: 'DM Mono', monospace;
  --serif: 'Instrument Serif', Georgia, serif;
}

body {
  font-family: var(--mono);
  background: var(--bg);
  color: var(--black);
  max-width: 780px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────── */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 16px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.logo {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 16px;
  height: 16px;
}

.submit-btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  background: var(--black);
  color: #fff;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
}

.submit-btn:hover {
  background: #333;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 48px 20px 56px;
}

.hero-subtitle {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--black);
  margin-bottom: 0px;
}

.hero-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.2;
  color: #1100ff;
}

/* ── User Cards ──────────────────────────────────── */
.users {
  padding: 0 20px 40px;
}

.user-card {
  margin-bottom: 40px;
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.user-avatar {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: none;
  flex-shrink: 0;
}

.user-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
}

.user-handle {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
  font-weight: 400;
  margin-left: 6px;
}

.user-role {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--black);
  margin-top: 2px;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  padding: 0 20px 40px;
  margin-top: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--gray);
}

.footer-credit {
  margin-top: 16px;
}

/* ── Items Row ───────────────────────────────────── */
.items-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: -20px;
  margin-right: -20px;
  scrollbar-width: none;
}

.items-row::-webkit-scrollbar {
  display: none;
}

.item-thumb {
  flex: 0 0 auto;
  width: 140px;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: background 0.2s ease;
}

.item-thumb:hover {
  background: #eef0ff;
}

.item-thumb:hover .item-thumb-label {
  font-weight: 500;
}

.item-thumb:hover .item-thumb-img-wrap {
  transform: scale(1.03);
  transition: transform 0.2s ease;
}

.item-thumb-img-wrap {
  width: 100%;
  height: 146px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
}

.item-thumb-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.item-thumb-img-wrap img.rotate-90 {
  transform: rotate(-90deg) translateX(25%);
  object-fit: contain;
  width: 165%;
  height: 165%;
}

.item-thumb-img-wrap img.shrink {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.item-thumb-img-wrap img.zoom {
  width: 140%;
  height: 140%;
  object-fit: cover;
}

.item-thumb-label {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px 10px;
  line-height: 1.3;
}

/* ── Modal ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}

.modal-overlay.active {
  background: rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.modal {
  background: var(--bg);
  width: 100vw;
  max-width: 480px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  border-radius: 24px 24px 0 0;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal.dragging {
  transition: none;
}

.modal-drag-handle {
  width: 36px;
  height: 5px;
  background: #d1d1d6;
  border-radius: 3px;
  margin: 8px auto 0;
  flex-shrink: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  flex-shrink: 0;
}

.modal-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-avatar {
  width: 32px;
  height: 32px;
  background: none;
  overflow: visible;
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-user-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.modal-user-handle {
  font-size: 12px;
  font-weight: 400;
  color: var(--gray);
}

.close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--black);
  background: none;
  color: var(--black);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.close-btn:hover {
  background: #f5f5f5;
}

/* ── Modal Body ──────────────────────────────────── */
.modal-body {
  overflow-y: auto;
  padding: 0 20px 24px;
  flex: 1;
}

.modal-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-item-title {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.modal-item-desc {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-item-desc p {
  margin-bottom: 12px;
}

.modal-item-desc p:last-child {
  margin-bottom: 0;
}

/* ── Section Headings ────────────────────────────── */
.section-heading {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* ── Modal More Items ────────────────────────────── */
.modal-more-items {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 28px;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  scrollbar-width: none;
}

.modal-more-items::-webkit-scrollbar {
  display: none;
}

.modal-more-thumb {
  flex: 0 0 auto;
  width: 100px;
  height: 100px;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg);
  padding: 10px;
}

.modal-more-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-more-thumb.active-thumb {
  border-color: var(--accent);
  border-width: 2px;
}

/* ── About ───────────────────────────────────────── */
.modal-about-text {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* ── Next Button ─────────────────────────────────── */
.next-btn {
  width: 100%;
  padding: 14px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  background: none;
  color: var(--black);
  border: 1.5px solid var(--black);
  cursor: pointer;
}

.next-btn:hover {
  background: #f5f5f5;
}

/* ── Placeholder images ──────────────────────────── */
.placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #fff;
}

/* ── Submit Modal ───────────────────────────────── */
.submit-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px 24px;
  flex: 1;
}

.submit-modal-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: #1100ff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.submit-modal-desc {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 16px;
}

.submit-modal-thanks {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 32px;
}

.contact-btn {
  display: block;
  width: 100%;
  padding: 14px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  background: var(--black);
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  margin-top: auto;
  margin-bottom: 24px;
}

/* ── Desktop Modal ──────────────────────────────── */
@media (min-width: 600px) {
  .hero {
    padding: 72px 20px 64px;
  }

  .user-info {
    justify-content: flex-start;
    gap: 16px;
  }

  .user-avatar {
    order: -1;
  }


  .modal-overlay {
    align-items: center;
  }

  .modal {
    max-width: 550px;
    max-height: 80vh;
    border-radius: 24px;
    transform: translateY(100vh);
  }

  .modal-overlay.active .modal {
    transform: translateY(0);
  }

  .modal-drag-handle {
    display: none;
  }
}
