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

:root {
  --bg: #f4f1ec;
  --surface: #fcfbf8;
  --surface-2: #ebe6de;
  --ink: #1c1917;
  --ink-2: #57534e;
  --ink-3: #78716c;
  --border: #e2dcd3;
  --accent: #d9532f;
  --accent-hover: #bc4221;
  --dark-card: #1c1917;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Plus Jakarta Sans", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 24px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 236, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-logo { height: 38px; width: auto; display: block; object-fit: contain; }
.brand-logo-sm { height: 32px; }

.brand-mark {
  width: 32px; height: 32px; border-radius: 10px;
  background: linear-gradient(135deg, #e05a36, #b43c1d);
  color: #fff7ed; display: inline-flex; align-items: center; justify-content: center;
}
.brand-mark svg { width: 19px; height: 19px; }
.brand-name { font-size: 18.5px; font-weight: 500; letter-spacing: -0.03em; }
.brand-name span { font-weight: 800; }

.nav-center {
  display: flex; align-items: center; gap: 4px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px; border-radius: 999px;
}
.nav-tab {
  background: transparent; border: none; color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  cursor: pointer; transition: all .15s;
}
.nav-tab:hover { color: var(--ink); }
.nav-tab.active { background: var(--ink); color: #fff; }

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-ghost {
  background: none; border: none; color: var(--ink-2); font-size: 13.5px; font-weight: 600;
  padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.nav-ghost:hover { color: var(--ink); background: var(--surface-2); }

.lang-switch {
  display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px;
}
.ls-btn {
  border: none; background: transparent; color: var(--ink-3); font-size: 11px; font-weight: 700;
  padding: 4px 8px; border-radius: 999px; cursor: pointer;
}
.ls-btn.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }

.btn-outline {
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.btn-outline:hover { border-color: #a8a29e; }
.btn-accent {
  background: var(--accent); border: none; color: #fff;
  font-size: 13.5px; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer;
  transition: all .15s;
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-outline-dark {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.22); color: #fff;
  font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 999px; cursor: pointer;
}
.btn-outline-dark:hover { background: rgba(255,255,255,0.16); }
.btn-lg { padding: 12px 24px; font-size: 14.5px; }
.btn-w { width: 100%; }

/* Canva-Inspired Warm Mesh Hero */
.hero {
  padding: 52px 0 36px;
  background:
    radial-gradient(ellipse 65% 60% at 20% 10%, rgba(224, 90, 54, 0.13), transparent 65%),
    radial-gradient(ellipse 60% 55% at 85% 20%, rgba(99, 102, 241, 0.11), transparent 65%),
    var(--bg);
}
.hero-wrap { text-align: center; max-width: 780px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 18px;
}
.hb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; line-height: 1.09;
  letter-spacing: -0.035em; color: var(--ink); margin-bottom: 14px;
}
.hero-lead {
  font-size: clamp(14.5px, 1.6vw, 16.5px); color: var(--ink-2);
  max-width: 600px; margin: 0 auto 26px;
}

.search-shell {
  display: flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 6px; max-width: 660px; margin: 0 auto 20px;
  box-shadow: 0 14px 36px rgba(28, 25, 23, 0.06);
}
.search-shell:focus-within { border-color: var(--accent); }
.search-shell select {
  border: none; background: var(--bg); color: var(--ink); font-size: 13.5px; font-weight: 600;
  padding: 11px 14px; border-radius: 11px; outline: none; cursor: pointer;
}
.search-shell input {
  flex: 1; border: none; background: transparent; outline: none;
  font-size: 15px; color: var(--ink); padding: 10px 10px; min-width: 0;
}
.search-go {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--ink); color: #fff; border: none; font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 11px; cursor: pointer; transition: background .15s;
}
.search-go:hover { background: var(--accent); }

.theme-pills {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.tp-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 13px 4px 4px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: all .15s;
}
.tp-btn:hover { border-color: var(--accent); color: var(--ink); transform: translateY(-1px); }
.tp-btn img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }

/* Asymmetric Bento Strip */
.bento-section { padding: 8px 0 34px; }
.bento-grid {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 14px;
}
.bento-card {
  position: relative; height: 196px; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: var(--dark-card);
}
.bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.bento-card:hover img { transform: scale(1.06); }
.bento-cap {
  position: absolute; inset: 0; padding: 16px;
  background: linear-gradient(180deg, rgba(28,25,23,0.06) 25%, rgba(28,25,23,0.82) 100%);
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
}
.b-tag {
  align-self: flex-start; background: rgba(28,25,23,0.65); backdrop-filter: blur(8px);
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.18);
}
.bento-cap h3 { font-size: 16px; font-weight: 700; }

/* 4-Column Compact Masonry Gallery */
.gallery-section { padding: 10px 0 60px; }
.gal-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}
.gal-left { display: flex; align-items: baseline; gap: 12px; }
.gal-left h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.gal-count { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.gal-right { display: flex; align-items: center; gap: 10px; }
.sort-dd {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.btn-reset-sm {
  background: transparent; border: 1px solid var(--border); color: var(--ink-2);
  font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 10px; cursor: pointer;
}
.btn-reset-sm:hover { background: var(--surface); color: var(--ink); }

.mobile-tabs {
  display: none;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mobile-tabs::-webkit-scrollbar { display: none; }
.mobile-tabs .nav-tab {
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}
.mobile-tabs .nav-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.masonry-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.m-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 15px; overflow: hidden; background: var(--dark-card);
  border: 1px solid rgba(28, 25, 23, 0.07); cursor: pointer;
}
.m-card img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 30%;
  display: block; transition: transform .38s ease;
}
.m-card:hover img { transform: scale(1.04); }

.m-top {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; align-items: center; justify-content: space-between; z-index: 2;
}
.m-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(28, 25, 23, 0.72); backdrop-filter: blur(8px);
  color: #fafaf9; font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 3px 8px; border-radius: 7px;
}
.m-badge svg { width: 11px; height: 11px; }
.m-badge.b-video svg { color: #fb923c; }
.m-badge.b-photo svg { color: #38bdf8; }
.m-badge.b-3d svg { color: #c084fc; }

.m-fav {
  width: 32px; height: 32px; border-radius: 9px; border: none;
  background: rgba(252, 251, 248, 0.92); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: all .18s;
}
.m-card:hover .m-fav, .m-fav.saved { opacity: 1; }
.m-fav.saved { color: #dc2626; }

.m-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 12px 10px;
  background: linear-gradient(180deg, transparent 0%, rgba(28,25,23,0.82) 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  opacity: 0; transition: opacity .2s;
}
.m-card:hover .m-bottom { opacity: 1; }
.m-info { min-width: 0; color: #fff; }
.m-info strong { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-info span { font-size: 11px; color: #d6d3d1; }
.m-dl {
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  padding: 5px 10px; font-size: 11.5px; font-weight: 700; cursor: pointer; flex-shrink: 0;
}
.m-dl:hover { background: var(--accent-hover); }

.empty-box { text-align: center; padding: 64px 20px; }
.empty-box h3 { font-size: 20px; margin-bottom: 6px; }
.empty-box p { color: var(--ink-2); margin-bottom: 18px; }

/* Split Studio Spotlight */
.spotlight-section { padding-bottom: 56px; }
.spotlight-card {
  background: #1c1917; color: #fafaf9; border-radius: 24px;
  padding: 36px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
}
.sp-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .09em; color: #fb923c; }
.sp-content h2 { font-size: clamp(22px, 2.5vw, 30px); font-weight: 800; line-height: 1.18; margin: 10px 0 12px; }
.sp-content p { font-size: 14.5px; color: #d6d3d1; margin-bottom: 22px; max-width: 500px; }
.sp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.sp-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-collage img { width: 100%; height: 116px; object-fit: cover; border-radius: 12px; }

/* Minimal Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.f-left { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.f-copy { font-size: 12.5px; color: var(--ink-3); }
.f-links { display: flex; gap: 18px; flex-wrap: wrap; }
.f-links button { background: none; border: none; color: var(--ink-2); font-size: 13.5px; font-weight: 500; cursor: pointer; }
.f-links button:hover { color: var(--ink); text-decoration: underline; }

/* Modals */
.backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28, 25, 23, 0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal {
  position: relative; background: var(--surface); border-radius: 20px; width: 100%;
  box-shadow: 0 28px 65px rgba(0,0,0,0.32); overflow: hidden; animation: fadeIn .16s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }
.m-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--ink); font-size: 20px; cursor: pointer;
}
.m-close:hover { background: #d6d3d1; }

.modal-preview { max-width: 920px; display: grid; grid-template-columns: 1.4fr 1fr; max-height: 90vh; }
.pv-media { position: relative; background: #141210; min-height: 360px; display: flex; align-items: center; justify-content: center; }
.pv-media img { width: 100%; height: 100%; max-height: 82vh; object-fit: contain; display: block; }
.pv-pill {
  position: absolute; top: 14px; left: 14px;
  background: rgba(28,25,23,0.8); color: #fff; font-family: var(--mono);
  font-size: 11.5px; padding: 5px 10px; border-radius: 8px;
}
.pv-side { padding: 26px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
.pv-side h3 { font-size: 20px; font-weight: 800; padding-right: 28px; }
.pv-author { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.pv-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sp-box { background: var(--bg); padding: 10px 12px; border-radius: 10px; }
.sp-box span { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; }
.sp-box strong { font-size: 13px; font-family: var(--mono); }
.pv-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-tags span { font-size: 12px; background: var(--surface-2); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; }
.pv-btns { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.modal-auth { max-width: 410px; padding: 30px; }
.auth-head { display: flex; align-items: center; gap: 9px; font-size: 17px; margin-bottom: 18px; }
.modal-auth h3 { font-size: 22px; font-weight: 800; margin-bottom: 5px; }
.a-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.fld { display: block; margin-bottom: 13px; }
.fld span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.fld input {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; font-size: 14px; outline: none;
}
.fld input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,83,47,0.14); }
.a-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin: 12px 0 16px; }
.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); cursor: pointer; }
.link-plain { background: none; border: none; color: var(--accent); font-weight: 600; font-size: 13px; cursor: pointer; }
.link-plain:hover { text-decoration: underline; }
.a-msg { padding: 10px 12px; border-radius: 9px; font-size: 13px; margin-bottom: 14px; }
.a-msg.err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.a-msg.ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.a-foot { text-align: center; font-size: 13px; color: var(--ink-2); margin-top: 16px; }

.modal-info { max-width: 500px; padding: 28px; }
.modal-info h3 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.info-text { font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 10px; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500; box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

@media (hover: none) {
  .m-fav { opacity: 1; }
  .m-bottom { opacity: 1; padding: 20px 10px 8px; }
}

@media (max-width: 1100px) {
  .masonry-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav-center { display: none; }
  .mobile-tabs { display: flex; }
}
@media (max-width: 820px) {
  .container { padding: 0 16px; }
  .bento-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bento-wide { grid-column: span 2; }
  .bento-card { height: 165px; }
  .spotlight-card { grid-template-columns: 1fr; padding: 24px 20px; gap: 22px; }
  .masonry-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .modal-preview { grid-template-columns: 1fr; max-height: 92dvh; overflow-y: auto; }
  .pv-media { min-height: 240px; }
  .pv-media img { max-height: 46dvh; }
  .pv-side { padding: 20px; }
}
@media (max-width: 600px) {
  .nav-inner { height: 60px; gap: 8px; }
  .brand-logo { height: 30px; }
  .nav-ghost, #btnNavLogin { display: none; }
  .btn-accent { padding: 8px 14px; font-size: 13px; }
  .hero { padding: 32px 0 24px; }
  .hero-badge { font-size: 11.5px; padding: 4px 11px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 14px; margin-bottom: 18px; }
  .search-shell { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px; border-radius: 14px; }
  .search-shell select, .search-shell input, .search-go { width: 100%; justify-content: center; }
  .theme-pills {
    justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto;
    padding-bottom: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .theme-pills::-webkit-scrollbar { display: none; }
  .tp-btn { flex-shrink: 0; }
  .bento-card { height: 140px; }
  .bento-cap { padding: 12px; }
  .bento-cap h3 { font-size: 14px; }
  .gal-bar { margin-bottom: 14px; }
  .gal-left h2 { font-size: 18px; }
  .m-card { border-radius: 12px; }
  .m-top { top: 7px; left: 7px; right: 7px; }
  .m-badge { font-size: 9.5px; padding: 3px 6px; }
  .m-fav { width: 28px; height: 28px; border-radius: 7px; }
  .m-info strong { font-size: 11.5px; }
  .m-info span { display: none; }
  .m-dl { padding: 4px 8px; font-size: 10.5px; }
  .sp-collage img { height: 96px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .modal-auth { padding: 24px 20px; }
}
@media (max-width: 360px) {
  .masonry-4 { grid-template-columns: 1fr; }
}
