
:root {
  --bg: #0f0d0a;
  --bg-soft: #17130f;
  --panel: #211a13;
  --panel-2: #2c2117;
  --text: #f6ead2;
  --muted: #cab99a;
  --gold: #f2c14e;
  --gold-deep: #b7832f;
  --line: rgba(242, 193, 78, .22);
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
  --radius: 24px;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(242, 193, 78, .18), transparent 29rem),
    radial-gradient(circle at 100% 12%, rgba(183, 131, 47, .14), transparent 32rem),
    linear-gradient(180deg, #100d09 0%, #0c0b09 54%, #15110d 100%);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

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

.promo {
  background: linear-gradient(90deg, #7a551e, #f2c14e, #7a551e);
  color: #160f08;
  text-align: center;
  font-weight: 800;
  letter-spacing: .04em;
  padding: .65rem 1rem;
  text-transform: uppercase;
  font-size: .82rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(15, 13, 10, .82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.2rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  min-width: 220px;
}
.brand img { width: 62px; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.brand span { display: block; }
.brand-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: .02em; }
.brand-kicker { color: var(--gold); font-size: .76rem; text-transform: uppercase; letter-spacing: .18em; }

.nav-links { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: .92rem;
  padding: .55rem .72rem;
  border-radius: 999px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(242, 193, 78, .1); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(242, 193, 78, .08);
  color: var(--text);
  border-radius: 999px;
  padding: .55rem .85rem;
  font-weight: 800;
}

main { overflow: hidden; }
.section { max-width: var(--max); margin: 0 auto; padding: 5rem 1.2rem; }
.hero { padding-top: 4rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr); gap: 2rem; align-items: center; }
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: .22em; font-weight: 800; font-size: .78rem; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.08; margin: 0 0 1rem; }
h1 { font-size: clamp(2.7rem, 7vw, 6.2rem); letter-spacing: -.05em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.6rem); letter-spacing: -.035em; }
h3 { font-size: 1.45rem; }
p { color: var(--muted); margin: 0 0 1.2rem; }
.hero p { font-size: 1.12rem; max-width: 62ch; }

.hero-card {
  position: relative;
  min-height: 520px;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #17100b;
}
.hero-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, transparent 0 45%, rgba(0,0,0,.86) 100%),
    url('../projects/mustang-golden-hour/01-front-quarter.jpg') center/cover;
  filter: saturate(1.03) contrast(1.04);
}
.hero-card-content { position: absolute; left: 1.35rem; right: 1.35rem; bottom: 1.35rem; z-index: 1; }
.hero-card-content p { margin: 0; color: var(--text); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  border-radius: 999px;
  padding: .86rem 1.12rem;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
  background: rgba(242, 193, 78, .08);
  color: var(--text);
  cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, var(--gold), #edaa33); color: #1d1208; border-color: transparent; }
.btn:hover { transform: translateY(-1px); }

.panel {
  background: linear-gradient(180deg, rgba(44,33,23,.9), rgba(28,22,16,.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.toolbar {
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 1rem;
  margin-top: 2rem;
}
.searchbox {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(15, 13, 10, .65);
  color: var(--text);
  border-radius: 999px;
  padding: .9rem 1rem;
  font: inherit;
}
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(242, 193, 78, .08);
  color: var(--muted);
  border-radius: 999px;
  padding: .75rem .9rem;
  cursor: pointer;
  font-weight: 850;
}
.filter-btn.active, .filter-btn:hover { color: #1d1208; background: var(--gold); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.4rem;
}
.project-card {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(33, 26, 19, .82);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.project-card figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0e0d0a; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease; }
.project-card:hover img { transform: scale(1.045); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: rgba(242, 193, 78, .92);
  color: #1e1308;
  border-radius: 999px;
  padding: .35rem .62rem;
  font-weight: 900;
  font-size: .78rem;
}
.project-card .badge { position: absolute; left: .8rem; top: .8rem; }
.project-content { padding: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.meta { color: var(--gold); font-weight: 800; font-size: .86rem; letter-spacing: .03em; }
.project-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .55rem; padding-top: .8rem; }
.project-actions .btn { padding: .7rem .85rem; font-size: .88rem; }
.empty-state { display: none; text-align: center; padding: 2rem; color: var(--muted); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.4rem; }
.info-card { padding: 1.25rem; }
.info-card strong { display: block; color: var(--gold); margin-bottom: .35rem; }

.project-hero {
  padding: 4rem 1.2rem 2.5rem;
}
.project-hero .section { padding: 0; }
.project-shell { display: grid; grid-template-columns: minmax(0, .84fr) minmax(280px, .36fr); gap: 1.4rem; align-items: start; }
.project-details { padding: 1.4rem; position: sticky; top: 112px; }
.detail-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .75rem; }
.detail-list li { border-bottom: 1px solid var(--line); padding-bottom: .7rem; color: var(--muted); }
.detail-list b { display: block; color: var(--text); }
.image-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.image-card { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(33, 26, 19, .72); }
.image-card button { width: 100%; border: 0; background: transparent; padding: 0; cursor: zoom-in; }
.image-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-caption { padding: .9rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.image-caption span { color: var(--muted); font-weight: 750; }
.image-caption .btn { padding: .55rem .75rem; font-size: .84rem; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 84vh; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lightbox-close { position: absolute; right: 1rem; top: 1rem; }

.footer {
  border-top: 1px solid var(--line);
  background: rgba(8,7,5,.62);
}
.footer .section { padding: 3rem 1.2rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: end; }
.footer-links { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 800; }
.footer-links a:hover { color: var(--gold); }
.small { font-size: .9rem; color: var(--muted); }

.notice { padding: 1rem; border-left: 4px solid var(--gold); background: rgba(242,193,78,.08); border-radius: 16px; }

@media (max-width: 900px) {
  .hero-grid, .project-shell, .footer .section { grid-template-columns: 1fr; }
  .hero-card { min-height: 380px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: 1fr; }
  .project-details { position: static; }
}

@media (max-width: 680px) {
  .nav-wrap { align-items: flex-start; }
  .menu-toggle { display: inline-flex; margin-top: .35rem; }
  .nav-links { display: none; width: 100%; justify-content: flex-start; padding-top: .7rem; }
  .nav-links.open { display: flex; }
  .nav-wrap { flex-wrap: wrap; }
  .toolbar { grid-template-columns: 1fr; }
  .filters { justify-content: flex-start; }
  .project-grid, .image-grid { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.35rem, 15vw, 4rem); }
}
