/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --black:        #070707;
  --black-2:      #0d0d0d;
  --black-3:      #131313;
  --black-4:      #1a1a1a;
  --gold:         #c9a84c;
  --gold-light:   #e2c06a;
  --gold-dark:    #9e7b30;
  --gold-dim:     rgba(201, 168, 76, 0.10);
  --gold-glow:    rgba(201, 168, 76, 0.20);
  --gold-border:  rgba(201, 168, 76, 0.28);
  --white:        #f8f6f2;
  --text:         #b8b3a8;
  --text-muted:   #606060;
  --border:       rgba(255, 255, 255, 0.06);
  --font-body:    'Inter', sans-serif;
  --font-display: 'Cormorant Garamond', 'Playfair Display', serif;
  --nav-h:        72px;
  --radius:       6px;
  --radius-lg:    12px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --t:            0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* Nav-open: lock scroll + show backdrop */
body.nav-open { overflow: hidden; }
body.nav-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
}

/* =========================================================
   UTILITIES
   ========================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-pad   { padding: 100px 0; }
.hidden        { display: none !important; }

.gold-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.gold-line::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.gold-line-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .gold-line {
  justify-content: center;
}
.section-header .gold-line::before,
.section-header .gold-line::after {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}
.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
  white-space: nowrap;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  border: 1px solid var(--gold-border);
  color: var(--gold);
}
.btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.15); }

.btn-danger { background: #b02a2a; color: #fff; }
.btn-danger:hover { background: #d93232; }

.btn-sm { padding: 9px 20px; font-size: 0.78rem; min-height: 38px; }
.btn-full { width: 100%; }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--t), box-shadow var(--t), height var(--t);
}

.navbar.scrolled,
.navbar.always-dark {
  background: rgba(7, 7, 7, 0.98);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.12);
  height: 62px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}

.logo-initials {
  width: 40px; height: 40px;
  background: var(--gold);
  color: var(--black);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
}

.logo-sub {
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-top: 1px;
}

/* Desktop links */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
  position: relative;
  padding: 4px 0;
  -webkit-tap-highlight-color: transparent;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--t);
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { width: 100%; }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}

/* radial vignette */
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--black) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(transparent, var(--black));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 60px 0;
}

/* Corner frame decoration */
.hero-frame {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  height: 340px;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.hero-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 168, 76, 0.18);
}

.hero-frame::after {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(201, 168, 76, 0.08);
}

.hero-frame-tl,
.hero-frame-br {
  position: absolute;
  width: 28px; height: 28px;
}

.hero-frame-tl {
  top: -1px; left: -1px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.hero-frame-br {
  bottom: -1px; right: -1px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}

.hero-eyebrow-line {
  width: 48px; height: 1px;
  background: var(--gold);
}

.hero-eyebrow-text {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 11vw, 9rem);
  font-weight: 600;
  color: var(--white);
  line-height: 0.92;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  animation: fadeUp 0.9s var(--ease) 0.22s both;
}

.hero-title {
  font-size: clamp(0.88rem, 1.6vw, 1rem);
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s var(--ease) 0.36s both;
}

.hero-divider {
  width: 48px; height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
  animation: expand 0.8s var(--ease) 0.5s both;
}

@keyframes expand {
  from { width: 0; opacity: 0; }
  to   { width: 48px; opacity: 1; }
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 44px;
  animation: fadeUp 0.8s var(--ease) 0.55s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease) 0.68s both;
}

.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
  animation: fadeUp 1s var(--ease) 1.2s both;
}

.scroll-mouse {
  width: 20px; height: 32px;
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 2px; height: 6px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

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

/* =========================================================
   STATS BAR
   ========================================================= */
.stats-bar {
  background: var(--black-3);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: var(--border);
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 10px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.9rem);
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { background: var(--black-2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 88px;
  align-items: center;
}

.about-visual { display: flex; flex-direction: column; gap: 16px; }

.about-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.about-card-number {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.about-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.about-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.badge {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  transition: border-color var(--t), color var(--t);
}

.badge:hover { border-color: var(--gold-border); color: var(--gold); }

.about-text .section-title { margin-bottom: 24px; }

.about-text p {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-text p:last-of-type { margin-bottom: 32px; }

/* =========================================================
   SERVICES
   ========================================================= */
.services { background: var(--black); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--black-2);
  padding: 40px 32px;
  transition: background var(--t);
  position: relative;
}

.service-card:hover { background: var(--black-3); }

.service-card:hover .service-icon-wrap {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

.service-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-weight: 600;
  margin-bottom: 24px;
}

.service-icon-wrap {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
  transition: border-color var(--t), background var(--t);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  position: relative;
  padding: 88px 0;
  text-align: center;
  background: var(--black-3);
  border-top: 1px solid var(--gold-border);
  border-bottom: 1px solid var(--gold-border);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.cta-content { position: relative; z-index: 1; }

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--black-2); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.contact-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color var(--t), transform var(--t);
}

.contact-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
}

.contact-card-icon {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.contact-card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-card-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #040404;
  border-top: 1px solid var(--border);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
}

.footer-brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  letter-spacing: 0.06em;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--t);
}

.footer-links a:hover { color: var(--gold); }

.footer-credit {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-credit a {
  color: var(--gold);
  transition: color var(--t);
}

.footer-credit a:hover { color: var(--gold-light); }

/* =========================================================
   PAGE HEADER (projects.html)
   ========================================================= */
.page-header {
  position: relative;
  padding: 160px 0 72px;
  background: var(--black);
  overflow: hidden;
}

.page-header .hero-bg-grid { opacity: 0.7; }
.page-header .container { position: relative; z-index: 1; }

.page-header-eyebrow { margin-bottom: 16px; }

.page-header-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.page-header p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* =========================================================
   FILTER BAR
   ========================================================= */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.filter-btn {
  padding: 9px 22px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: color var(--t), background var(--t), border-color var(--t);
  background: transparent;
  min-height: 40px;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--black);
  background: var(--gold);
  border-color: var(--gold);
}

/* =========================================================
   PROJECTS GRID
   ========================================================= */
.projects-section { background: var(--black-2); }

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

.project-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
}

.project-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.project-thumb {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: var(--black-4);
}

.project-thumb-placeholder {
  width: 100%;
  height: 220px;
  background: var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2.4rem;
}

.project-info { padding: 22px 20px; }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.project-year { font-size: 0.8rem; color: var(--text-muted); }

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.3;
}

.project-location {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-skeleton {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 340px;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.7; }
}

.no-projects {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* =========================================================
   PROJECT MODAL
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease);
}

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

.modal {
  background: var(--black-3);
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  transform: translateY(24px) scale(0.98);
  transition: transform 0.3s var(--ease);
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
  z-index: 10;
  transition: background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}

.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.modal-gallery { background: #000; }

.gallery-main {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #000;
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t);
  z-index: 5;
  -webkit-tap-highlight-color: transparent;
}

.gallery-nav:hover { background: var(--gold); color: var(--black); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }

.gallery-thumbs {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #050505;
  -webkit-overflow-scrolling: touch;
}

.gallery-thumb {
  width: 60px; height: 44px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  border: 1.5px solid transparent;
  flex-shrink: 0;
  transition: border-color var(--t), opacity var(--t);
  opacity: 0.55;
}

.gallery-thumb.active,
.gallery-thumb:hover { border-color: var(--gold); opacity: 1; }

.modal-body { padding: 28px 32px 40px; }

.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.modal-year { font-size: 0.82rem; color: var(--text-muted); }

.modal #modalTitle {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.2;
}

.modal-location {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.modal #modalDesc {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.85;
}

/* =========================================================
   ADMIN LOGIN
   ========================================================= */
.admin-body {
  background: var(--black);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-login-wrap {
  width: 100%;
  max-width: 420px;
}

.admin-login-card {
  background: var(--black-3);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
}

.admin-login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.admin-login-logo .logo-initials {
  width: 56px; height: 56px;
  font-size: 1.1rem;
}

.admin-login-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.admin-login-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-form { text-align: left; }
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--black-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  transition: border-color var(--t);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; line-height: 1.6; min-height: 100px; }
.form-group select option { background: var(--black-3); }

.form-error {
  background: rgba(176, 42, 42, 0.12);
  border: 1px solid rgba(176, 42, 42, 0.4);
  color: #e05555;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.83rem;
  margin-bottom: 16px;
  text-align: left;
}

.admin-back-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--t);
  padding: 8px 0;
}

.admin-back-link:hover { color: var(--gold); }

.admin-footer-credit {
  margin-top: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

.admin-footer-credit a { color: var(--gold); }

/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */
.dashboard-body { background: var(--black-2); display: block; }

.dash-header {
  background: var(--black-3);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0; z-index: 100;
}

.dash-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
}

.dash-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dash-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.dash-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 20px;
}

.dash-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.dash-subtitle { font-size: 0.85rem; color: var(--text-muted); }

.dash-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dash-project-card {
  background: var(--black-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t);
}

.dash-project-card:hover { border-color: var(--gold-border); }

.dash-project-thumb {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
}

.dash-project-thumb-placeholder {
  width: 100%; height: 160px;
  background: var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 2rem;
}

.dash-project-info { padding: 18px; }

.dash-project-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.dash-project-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.dash-project-actions { display: flex; gap: 10px; }

.dash-empty { text-align: center; padding: 80px 0; color: var(--text-muted); }

/* =========================================================
   FORM MODAL
   ========================================================= */
.modal-form { max-width: 720px; padding: 40px; }

.modal-form h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.image-upload-area {
  background: var(--black-4);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
  cursor: pointer;
  transition: border-color var(--t);
}

.image-upload-area:hover { border-color: var(--gold-border); }

.upload-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.image-preview-grid { display: flex; gap: 10px; flex-wrap: wrap; }

.preview-item { position: relative; width: 80px; height: 80px; }

.preview-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.preview-remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: #b02a2a;
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t);
}

.preview-remove:hover { background: #d93232; }
.form-loading { text-align: center; padding: 12px; color: var(--gold); font-size: 0.9rem; }

.modal-sm { max-width: 460px; padding: 40px; }
.modal-sm h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.modal-sm p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; line-height: 1.7; }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger via inline --i custom property */
.reveal { transition-delay: calc(var(--i, 0) * 0.08s); }

/* =========================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-frame { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 56px; }
}

@media (max-width: 960px) {
  .section-pad { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-projects-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::before { display: none; }
  .stat-item:nth-child(n+3) {
    border-top: 1px solid var(--border);
  }
  .stat-item:nth-child(4)::before { display: none; }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  :root { --nav-h: 62px; }
  .container { padding: 0 20px; }
  .section-pad { padding: 64px 0; }
  .section-header { margin-bottom: 44px; }

  /* ----- HAMBURGER & DRAWER NAV ----- */
  .hamburger { display: flex; }

  /*
   * Right-side drawer. Always display:flex (no reflow on toggle).
   * Animated purely by transform + visibility.
   */
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 82vw);
    background: #0a0a0a;
    border-left: 1px solid var(--gold-border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    z-index: 999;
    padding: 80px 0 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s var(--ease), visibility 0.32s;
  }

  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links li:first-child { border-top: 1px solid rgba(255,255,255,0.04); }

  .nav-links a {
    display: flex;
    align-items: center;
    padding: 18px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color var(--t), background var(--t);
    width: 100%;
  }
  .nav-links a::after { display: none; }
  .nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.03); }
  .nav-links a.active { color: var(--gold); background: var(--gold-dim); }

  /* ----- HERO ----- */
  .hero { padding-bottom: 40px; }
  .hero-content { padding: 32px 0; }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-name { font-size: clamp(3.8rem, 14vw, 5.5rem); margin-bottom: 20px; }
  .hero-title { font-size: 0.72rem; margin-bottom: 18px; }
  .hero-divider { margin-bottom: 18px; }
  .hero-desc { font-size: 0.95rem; margin-bottom: 32px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .hero-scroll { display: none; }

  /* ----- STATS ----- */
  .stats-bar { padding: 40px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.6rem; }

  /* ----- SERVICES ----- */
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 32px 24px; }

  /* ----- CTA ----- */
  .cta-banner { padding: 60px 0; }
  .cta-content p { margin-bottom: 28px; }

  /* ----- CONTACT ----- */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 22px; }

  /* ----- FOOTER ----- */
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; gap: 20px; }

  /* ----- PROJECTS PAGE ----- */
  .page-header { padding: 110px 0 48px; }
  .page-header-title { font-size: clamp(2rem, 10vw, 3rem); }
  .projects-grid { grid-template-columns: 1fr; gap: 16px; }
  .filter-bar { gap: 6px; margin-bottom: 36px; }
  .filter-btn { padding: 8px 16px; font-size: 0.72rem; }

  /* ----- MODAL (bottom sheet) ----- */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 93vh;
    max-height: 93dvh;
    width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
    transform: translateY(100%);
  }
  .modal-overlay.open .modal { transform: translateY(0); }
  .gallery-main { height: 230px; }
  .modal-body { padding: 22px 20px 36px; }

  /* ----- ADMIN DASH ----- */
  .dash-header-inner { padding: 12px 20px; }
  .dash-main { padding: 28px 20px 60px; }
  .dash-top-bar { flex-direction: column; gap: 12px; align-items: flex-start; }
  .dash-projects-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ----- FORMS ----- */
  .form-row { grid-template-columns: 1fr; }
  .modal-form { padding: 24px 20px; }
  .form-actions { flex-direction: column-reverse; gap: 10px; }
  .form-actions .btn { width: 100%; }
  .modal-sm { padding: 28px 20px; }

  /* ----- ADMIN LOGIN ----- */
  .admin-login-card { padding: 36px 24px; }
}

/* =========================================================
   SMALL PHONES (≤ 400px)
   ========================================================= */
@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-name { font-size: clamp(3rem, 14vw, 4rem); }
  .about-badges { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
