/* ═══════════════════════════════════════════════
   DesignatorX Cars — luxury automotive portfolio
   Dark showroom vibes with copper/gold accents
   ═══════════════════════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-0: #0a0a0d;
  --bg-1: #12131a;
  --bg-2: #1c1e29;
  --surface: rgba(28,30,41,.78);
  --surface-2: rgba(38,41,55,.92);
  --border: rgba(255,255,255,.08);
  --border-2: rgba(255,255,255,.18);
  --text: #f3ecdd;
  --text-mute: #a89e88;
  --text-dim: #6d6656;
  --gold: #d4a959;
  --gold-2: #c69745;
  --gold-soft: rgba(212,169,89,.14);
  --gold-glow: rgba(212,169,89,.42);
  --copper: #b87333;
  --red-carbon: #8b1a1a;
  --ok: #10b981;
  --danger: #e11d48;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --shadow-lux: 0 22px 60px -20px rgba(0,0,0,.65), 0 2px 4px rgba(212,169,89,.06);
}
html, body { min-height: 100%; color: var(--text); font-family: 'Cairo', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body {
  background:
    radial-gradient(1400px 900px at 15% -10%, rgba(212,169,89,.10), transparent 55%),
    radial-gradient(1100px 900px at 100% 20%, rgba(184,115,51,.08), transparent 55%),
    radial-gradient(900px 700px at 50% 100%, rgba(255,255,255,.03), transparent 55%),
    linear-gradient(180deg, var(--bg-0), #050508);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 5px; }
::selection { background: var(--gold-soft); color: var(--gold); }

/* ─── Typography — luxury serif accent ─── */
.brand-serif, h1.hero-title, h1.project-title {
  font-family: 'Playfair Display', 'Cairo', serif;
  font-weight: 900;
  letter-spacing: -.01em;
}

/* ─── NAV ─── */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10,10,13,.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 18px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212,169,89,.25), rgba(184,115,51,.10));
  border: 1px solid rgba(212,169,89,.42);
  display: grid; place-items: center;
  color: var(--gold);
  font-weight: 900;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 16px; color: var(--text); }
.brand-name b { color: var(--gold); font-weight: 900; }
.brand-sub { font-size: 10px; color: var(--text-mute); letter-spacing: 4px; text-transform: uppercase; margin-top: 4px; }
.nav-links { display: flex; gap: 14px; align-items: center; }

/* ─── HERO ─── */
.hero {
  padding: 100px 24px 60px;
  text-align: center;
  max-width: 1100px; margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 22px;
  background: var(--gold-soft);
  border: 1px solid rgba(212,169,89,.42);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-size: 11px; font-weight: 800; letter-spacing: 4px; text-transform: uppercase;
  margin-bottom: 28px;
}
h1.hero-title {
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  line-height: 1.02; letter-spacing: -.03em;
  margin-bottom: 22px;
}
h1.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, #f5d284 10%, var(--gold) 55%, var(--copper) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead {
  color: var(--text-mute);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 720px; margin: 0 auto 34px;
  line-height: 1.9;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  max-width: 900px; margin: 60px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 22px;
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--gold); }
.hero-stat span { font-size: 12px; color: var(--text-mute); letter-spacing: 2px; text-transform: uppercase; }

/* ─── Filter bar ─── */
.filters {
  max-width: 1400px; margin: 20px auto 30px; padding: 0 26px;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.filter-chip {
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-mute); font-family: inherit; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: .2s;
  -webkit-tap-highlight-color: transparent;
}
.filter-chip:hover { color: var(--text); border-color: var(--border-2); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1a1408; border-color: transparent;
  box-shadow: 0 8px 20px -8px var(--gold-glow);
}

/* ─── PROJECTS GRID ─── */
.projects {
  max-width: 1400px; margin: 0 auto 80px; padding: 0 26px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.project-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: .35s var(--ease-spring);
  aspect-ratio: 4/5;
  text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow-lux);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212,169,89,.45);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.8), 0 4px 12px rgba(212,169,89,.14);
}
.project-card img.hero {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: .8s ease;
}
.project-card:hover img.hero { transform: scale(1.06); }
.project-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 40%, rgba(0,0,0,.15) 65%, transparent 85%);
}
.project-card .no-img {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #16171f, #0e0f14);
  color: var(--text-dim);
  font-family: 'Playfair Display', serif; font-style: italic; font-size: 28px;
}
.project-card .badges {
  position: absolute; top: 16px; inset-inline-end: 16px;
  display: flex; gap: 6px; flex-direction: column; align-items: flex-end;
}
.project-card .badge-vr {
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(212,169,89,.9); color: #1a1408;
  font-size: 10px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 5px;
  backdrop-filter: blur(6px);
}
.project-card .body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px 22px;
  color: #fff;
}
.project-card .meta {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  margin-bottom: 8px;
}
.project-card h3 {
  font-family: 'Playfair Display', serif; font-weight: 800;
  font-size: 22px; line-height: 1.25;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.project-card .sub {
  font-size: 12px; color: rgba(255,255,255,.7);
  display: flex; align-items: center; gap: 10px;
}
.project-card .cta {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
  opacity: 0; transform: translateY(6px);
  transition: .3s;
}
.project-card:hover .cta { opacity: 1; transform: translateY(0); }

/* ─── EMPTY / LOADING ─── */
.empty {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: var(--text-mute);
}
.empty h3 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 8px; color: var(--text); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: rgba(255,255,255,.05);
  color: var(--text);
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: .22s var(--ease);
  text-decoration: none; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: rgba(255,255,255,.09); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-lg { padding: 15px 32px; font-size: 15px; letter-spacing: 1px; }
.btn-primary {
  background: linear-gradient(135deg, #f5d284, var(--gold) 55%, var(--copper));
  color: #1a1408; border-color: transparent;
  box-shadow: 0 14px 32px -12px var(--gold-glow);
  font-weight: 800;
}
.btn-primary:hover { color: #1a1408; filter: brightness(1.08); }
.btn-outline {
  background: transparent; border-color: var(--gold); color: var(--gold);
}
.btn-outline:hover { background: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--text-mute); }
.btn-ghost:hover { background: rgba(255,255,255,.05); color: var(--text); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #9d1616); color: #fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ─── PROJECT PAGE ─── */
.project-hero {
  position: relative;
  min-height: 60vh;
  display: grid; place-items: center;
  text-align: center;
  padding: 40px 24px;
  overflow: hidden;
}
.project-hero .bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(.45) saturate(1.05);
  transform: scale(1.06);
}
.project-hero .fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,13,.4) 0%, transparent 30%, rgba(10,10,13,.9) 90%, var(--bg-0) 100%);
}
.project-hero .content { position: relative; z-index: 2; max-width: 900px; }
.project-hero .meta-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 22px;
}
.project-hero .meta-chip {
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(0,0,0,.4); border: 1px solid rgba(212,169,89,.35);
  color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  backdrop-filter: blur(10px);
}
h1.project-title {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 18px;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0,0,0,.7);
}
.project-hero .desc {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  max-width: 640px; margin: 0 auto 26px;
  line-height: 2;
}
.project-hero .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.section-divider {
  max-width: 1400px; margin: 60px auto 30px;
  padding: 0 26px;
  display: flex; align-items: center; gap: 20px;
}
.section-divider h2 {
  font-family: 'Playfair Display', serif; font-size: 26px; font-weight: 800;
  color: var(--text); white-space: nowrap;
}
.section-divider h2 em { font-style: italic; color: var(--gold); }
.section-divider .line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-2), transparent); }
.section-divider .count { color: var(--text-mute); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

.gallery {
  max-width: 1400px; margin: 0 auto 60px; padding: 0 26px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.gallery-item {
  position: relative;
  border-radius: 14px; overflow: hidden;
  background: var(--bg-1);
  cursor: zoom-in;
  aspect-ratio: 4/3;
  transition: .3s var(--ease-spring);
  border: 1px solid var(--border);
}
.gallery-item:hover { transform: translateY(-4px); border-color: rgba(212,169,89,.4); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .6s ease; }
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.96);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 10px; }
.lightbox-close {
  position: absolute; top: 22px; inset-inline-end: 24px;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #fff;
  border: none; cursor: pointer; display: grid; place-items: center;
  font-size: 20px;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(212,169,89,.85); color: #1a1408;
  border: none; cursor: pointer; display: grid; place-items: center;
  font-size: 20px; font-weight: 900;
}
.lightbox-nav.prev { inset-inline-start: 24px; }
.lightbox-nav.next { inset-inline-end: 24px; }

/* ─── FOOTER ─── */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: rgba(5,5,8,.5);
  text-align: center;
  color: var(--text-mute);
  font-size: 13px;
}
.site-footer .foot-links { margin-top: 12px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.site-footer .foot-links a { color: var(--text-mute); font-weight: 700; }
.site-footer .foot-links a:hover { color: var(--gold); }

/* ─── ADMIN ─── */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--bg-1);
  border-inline-start: 1px solid var(--border);
  padding: 22px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 12px;
  color: var(--text-mute); font-weight: 700; font-size: 14px;
  cursor: pointer; transition: .18s;
  border: 1px solid transparent;
}
.admin-nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
.admin-nav-item.active {
  background: var(--gold-soft); color: var(--gold); border-color: rgba(212,169,89,.30);
}
.admin-main { padding: 30px; overflow: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; gap: 12px; flex-wrap: wrap; }
.admin-header h1 { font-family: 'Playfair Display', serif; font-size: 26px; }
.admin-header .sub { color: var(--text-mute); font-size: 13px; margin-top: 4px; }

.card {
  background: var(--surface); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px; margin-bottom: 16px;
}
.card h3 { font-size: 15px; margin-bottom: 14px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-mute); margin-bottom: 6px; letter-spacing: .5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 12px;
  border-radius: 10px; border: 1px solid var(--border);
  background: rgba(0,0,0,.35); color: var(--text);
  font-family: inherit; font-size: 14px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 12px 10px; text-align: right; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table th { color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; }
.data-table tr:hover { background: rgba(255,255,255,.03); }
.data-table img.thumb { width: 60px; height: 40px; object-fit: cover; border-radius: 6px; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-live { background: rgba(16,185,129,.15); color: var(--ok); }
.badge-off  { background: rgba(212,169,89,.15); color: var(--gold); }
.badge-vr   { background: rgba(184,115,51,.18); color: var(--copper); }

.uploader {
  border: 2px dashed var(--border-2);
  border-radius: 14px; padding: 40px 20px;
  text-align: center; cursor: pointer; transition: .2s;
  background: rgba(0,0,0,.2);
}
.uploader:hover, .uploader.drag {
  border-color: var(--gold);
  background: var(--gold-soft);
}
.uploader h4 { font-size: 16px; margin-bottom: 6px; }
.uploader p { color: var(--text-mute); font-size: 13px; }
.uploader input { display: none; }

.photos-manage {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.photo-tile {
  position: relative; aspect-ratio: 4/3;
  border-radius: 12px; overflow: hidden;
  background: var(--bg-1); border: 1px solid var(--border);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile.is-hero { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.photo-tile .badge-hero {
  position: absolute; top: 6px; inset-inline-start: 6px;
  background: var(--gold); color: #1a1408; padding: 3px 8px;
  border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: 1px;
}
.photo-tile .tools {
  position: absolute; top: 6px; inset-inline-end: 6px;
  display: flex; gap: 4px;
  opacity: 0; transition: .18s;
}
.photo-tile:hover .tools { opacity: 1; }
.photo-tile .tools button {
  width: 30px; height: 30px; border-radius: 999px; border: none;
  background: rgba(0,0,0,.7); color: #fff; cursor: pointer; font-size: 13px;
}
.photo-tile .tools button:hover { background: var(--gold); color: #1a1408; }

.progress {
  height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden;
  margin-top: 12px;
}
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--copper)); transition: width .3s; width: 0%; }

.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); backdrop-filter: blur(18px);
  border: 1px solid var(--border-2);
  color: var(--text); padding: 12px 22px;
  border-radius: 999px; font-weight: 700; font-size: 13px;
  z-index: 1000; opacity: 0; transition: .22s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: var(--ok); color: var(--ok); }
.toast.err { border-color: var(--danger); color: var(--danger); }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  background: var(--surface-2); backdrop-filter: blur(18px);
  border: 1px solid var(--border-2); border-radius: 22px;
  padding: 40px 34px; max-width: 420px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lux);
}
.login-card .brand-mark { margin: 0 auto 22px; }
.login-card h1 { font-family: 'Playfair Display', serif; font-size: 24px; margin-bottom: 8px; }
.login-card .sub { color: var(--text-mute); font-size: 13px; margin-bottom: 26px; }

/* ─── MOBILE ─── */

/* ─── Global mobile safety: kill any horizontal scroll ─── */
html { overflow-x: hidden; }
body { overflow-x: hidden; max-width: 100vw; }
img { max-width: 100%; height: auto; }

@media (max-width: 900px) {
  .nav-inner { padding: 12px 14px; gap: 10px; }
  .brand-mark { width: 40px; height: 40px; font-size: 18px; }
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 9px; letter-spacing: 2.5px; margin-top: 3px; }
  .nav-links { gap: 6px; }
  .nav-links .btn-sm { padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 700px) {
  .nav-inner { padding: 10px 12px; }
  .brand { gap: 8px; min-width: 0; flex: 1; }
  .brand-mark { width: 36px; height: 36px; font-size: 16px; flex-shrink: 0; }
  .brand-name { font-size: 12px; }
  .brand-sub { font-size: 8px; letter-spacing: 2px; }
  .nav-links { gap: 4px; flex-shrink: 0; }
  .nav-links .btn-sm { padding: 6px 10px; font-size: 11px; letter-spacing: 0; }

  .projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px; padding: 0 12px;
    margin-bottom: 50px;
  }
  .project-card { aspect-ratio: 3/4; border-radius: 14px; }
  .project-card h3 { font-size: 14px; line-height: 1.25; }
  .project-card .body { padding: 12px 10px; }
  .project-card .meta { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 5px; }
  .project-card .sub, .project-card .cta { font-size: 10px; }
  .project-card .badges { top: 10px; inset-inline-end: 10px; }
  .project-card .badge-vr { padding: 4px 8px; font-size: 9px; letter-spacing: 1px; }

  .filters {
    padding: 0 12px;
    overflow-x: auto; flex-wrap: nowrap;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-chip { flex-shrink: 0; padding: 8px 14px; font-size: 12px; }

  .hero { padding: 50px 16px 30px; }
  h1.hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero-lead { font-size: .95rem; line-height: 1.8; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn-lg { padding: 12px 20px; font-size: 13px; letter-spacing: 0; }
  .hero-stats { gap: 12px; margin-top: 26px; padding: 0 10px; grid-template-columns: repeat(3, 1fr); }
  .hero-stat b { font-size: 1.4rem; }
  .hero-stat span { font-size: 10px; letter-spacing: 1.5px; }

  .section-divider { padding: 0 12px; margin: 36px auto 18px; gap: 12px; }
  .section-divider h2 { font-size: 18px; }
  .section-divider .count { font-size: 10px; }

  .gallery { padding: 0 12px; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-item { aspect-ratio: 4/3; border-radius: 10px; }

  .project-hero { min-height: 46vh; padding: 30px 16px; }
  h1.project-title { font-size: clamp(1.9rem, 9vw, 2.8rem); }
  .project-hero .desc { font-size: .95rem; line-height: 1.85; }
  .project-hero .meta-chip { padding: 5px 12px; font-size: 10px; letter-spacing: 1.5px; }
  .project-hero .actions .btn-lg { padding: 12px 18px; font-size: 12px; }

  .site-footer { padding: 26px 16px; font-size: 12px; }
  .site-footer .foot-links { gap: 14px; }
}

@media (max-width: 400px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 13px; }
  .nav-links .btn-sm { padding: 5px 8px; font-size: 10px; }
  h1.hero-title { font-size: 1.75rem; }
}

/* Default: show long label, hide short */
.nav-book-short { display: none; }
.nav-book-long  { display: inline; }
@media (max-width: 520px) {
  .nav-secondary { display: none !important; }
  .nav-book-long  { display: none; }
  .nav-book-short { display: inline; }
  .nav-book { padding: 8px 16px !important; font-size: 12px !important; font-weight: 800 !important; }
  .nav-inner { padding: 10px 12px !important; }
  .brand-mark { width: 34px !important; height: 34px !important; font-size: 15px !important; }
  .brand-name { font-size: 12px !important; }
  .brand-sub { display: none !important; }
}
