/* ============================================================================
   LUMII — Minimalist Warm Cream Portfolio (Clean Geometric Sans-Serif)
   ============================================================================ */

:root {
  --bg: #faf8f4;
  --surface: #efece5;
  --ink: #151413;
  --muted: #76726a;
  --line: rgba(21, 20, 19, 0.1);
  --line-strong: rgba(21, 20, 19, 0.24);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

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

.hidden {
  display: none !important;
}

.container {
  width: min(1180px, 90vw);
  margin-inline: auto;
}

/* ================= Header ================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

/* ================= Featured 2x2 Showcase ================= */
.featured-section {
  padding: 44px 0 64px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-count {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.grid {
  display: grid;
}

.grid-featured {
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 28px;
}

.grid-landscape {
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 24px;
}

.grid-reels {
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 22px;
}

/* Show More Button */
.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 52px;
}

.show-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.show-more-btn:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.show-more-count {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.65;
}

/* ================= Archive Controls ================= */
.archive-wrapper {
  border-top: 1px solid var(--line);
  padding-top: 56px;
  animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.controls-section {
  padding-bottom: 36px;
}

.controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.view-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
}

.tab-btn {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.tab-btn span {
  font-size: 0.74rem;
  opacity: 0.6;
  margin-left: 4px;
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--ink);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -17px;
  height: 1.5px;
  background: var(--ink);
}

.search-field input {
  width: 220px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 6px 2px;
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, width 0.25s ease;
}

.search-field input:focus {
  border-bottom-color: var(--ink);
  width: 260px;
}

.search-field input::placeholder {
  color: var(--muted);
}

.gallery-section {
  padding: 16px 0 60px;
}

.collapse-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0 68px;
}

/* ================= Minimalist Card ================= */
.card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  margin-bottom: 12px;
}

.card.is-landscape .card-media {
  aspect-ratio: 16 / 9;
}

.card.is-reel .card-media {
  aspect-ratio: 9 / 15.5;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: contrast(1.03) saturate(1.04);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.card-thumb.loaded {
  opacity: 1;
}

.card:hover .card-thumb {
  transform: scale(1.03);
}

.card-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  z-index: 2;
}

.card.is-playing .card-preview {
  opacity: 1;
}

.card.is-playing .card-play {
  opacity: 0 !important;
}

.card-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 20, 19, 0.14);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .card-play,
.card:focus-visible .card-play {
  opacity: 1;
}

.play-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(250, 248, 244, 0.94);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease;
}

.card:hover .play-circle {
  transform: scale(1.06);
}

.card-title {
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
}

.grid-featured .card-title {
  font-size: 1.02rem;
}

.card-client {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

.empty-state {
  text-align: center;
  padding: 48px 0 64px;
  color: var(--muted);
  font-size: 0.92rem;
}

.text-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.text-link:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* ================= Contact ================= */
.contact-section {
  border-top: 1px solid var(--line);
  padding: 80px 0;
}

.contact-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.contact-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}

.contact-link:hover {
  border-bottom-color: var(--ink);
}

.contact-link small {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

/* ================= Footer ================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-top:hover {
  color: var(--ink);
}

/* ================= Minimal Lightbox Modal ================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 15, 14, 0.92);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

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

.modal-box {
  width: min(980px, 100%);
  color: #faf8f4;
}

.modal-box.is-reel-modal {
  width: min(430px, 94vw);
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.modal-meta {
  display: flex;
  flex-direction: column;
}

.modal-meta strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 600;
}

.modal-meta span {
  font-size: 0.8rem;
  color: rgba(250, 248, 244, 0.62);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-action-btn {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 248, 244, 0.2);
  color: rgba(250, 248, 244, 0.85);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.modal-action-btn:hover {
  background: rgba(250, 248, 244, 0.12);
  color: #fff;
  border-color: rgba(250, 248, 244, 0.45);
}

.modal-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}

.modal-box.is-reel-modal .modal-stage {
  aspect-ratio: 9 / 15.5;
  max-height: 76vh;
}

.modal-stage iframe {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: none;
}

.loader {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: rgba(250, 248, 244, 0.6);
}

/* ================= Toast ================= */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: var(--bg);
  font-size: 0.82rem;
  padding: 9px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  z-index: 300;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= Responsive ================= */
@media (max-width: 1024px) {
  .grid-landscape {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-reels {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .intro {
    padding: 52px 0 36px;
  }

  .nav {
    gap: 20px;
  }

  .grid-featured,
  .grid-landscape {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .grid-reels {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 14px;
  }

  .search-field,
  .search-field input,
  .search-field input:focus {
    width: 100%;
  }

  .tab-btn.active::after {
    bottom: -6px;
  }
}
