/* ============================================================
   AHMAD YUSUF FAHREZZI — Architecture Portfolio
   Dark architectural studio theme
   ============================================================ */

:root {
  --ink: #0c0e11;
  --ink-2: #11141a;
  --ink-3: #171b22;
  --line: rgba(200, 169, 106, 0.22);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #c8a96a;
  --gold-2: #e3c88f;
  --text: #e8e4dc;
  --text-dim: #9aa0a9;
  --text-faint: #6b7179;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--ink); }

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

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

button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-mark {
  font-family: var(--serif); font-size: 44px; letter-spacing: 6px;
  color: var(--gold); display: block; font-weight: 600;
}
.preloader-line { display: block; width: 180px; height: 1px; background: var(--line-soft); margin: 18px auto; overflow: hidden; }
.preloader-line i { display: block; width: 100%; height: 100%; background: var(--gold); transform: translateX(-100%); animation: loadline 1.1s var(--ease) forwards; }
.preloader-tag { font-size: 11px; letter-spacing: 4px; text-transform: uppercase; color: var(--text-faint); }
@keyframes loadline { to { transform: translateX(0); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 1001;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(12, 14, 17, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s ease;
}
.nav.scrolled .nav-inner { padding: 12px 28px; }
.nav-logo {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: 0.5px; display: flex; flex-direction: column; line-height: 1.15;
}
.nav-logo-sub { font-family: var(--sans); font-size: 9px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 12.5px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--text-dim); position: relative; padding: 4px 0; transition: color 0.3s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0%;
  background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-burger { display: none; background: none; border: 0; width: 34px; height: 26px; position: relative; z-index: 1100; }
.nav-burger span {
  display: block; height: 2px; width: 100%; background: var(--text);
  margin: 6px 0; transition: 0.35s var(--ease); transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; font-size: 13px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  border: 1px solid transparent; transition: all 0.35s var(--ease);
  position: relative; overflow: hidden;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(200, 169, 106, 0.25); }
.btn-line { border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { padding: 9px 20px; font-size: 11px; }
.btn-block { width: 100%; justify-content: center; }
.link-arrow { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); transition: color 0.3s ease; }
.link-arrow span { display: inline-block; transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--gold); }
.link-arrow:hover span { transform: translateX(6px); }

/* ---------- Section scaffolding ---------- */
.section { padding: 120px 0; position: relative; }
.section-head { margin-bottom: 64px; }
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px; font-weight: 600;
}
.kicker::before { content: ""; width: 44px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(38px, 5vw, 62px);
  line-height: 1.08; letter-spacing: -0.5px;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; position: relative; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.08); animation: heroZoom 14s var(--ease) forwards;
  filter: saturate(0.85);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(12,14,17,0.94) 0%, rgba(12,14,17,0.72) 45%, rgba(12,14,17,0.35) 100%),
    linear-gradient(0deg, rgba(12,14,17,0.9) 0%, rgba(12,14,17,0.1) 40%, rgba(12,14,17,0.55) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 140px 28px 80px; width: 100%; }
.hero-kicker {
  font-size: 12px; letter-spacing: 4.5px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 26px; display: flex; align-items: center; gap: 16px;
}
.hero-kicker::before { content: ""; width: 52px; height: 1px; background: var(--gold); }
.hero-title { font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 8vw, 108px); line-height: 0.98; letter-spacing: -1px; margin-bottom: 30px; }
.hero-title-line { display: block; }
.hero-title-serif { font-style: italic; color: var(--gold); }
.hero-sub { max-width: 560px; font-size: 17px; color: var(--text-dim); margin-bottom: 44px; font-weight: 300; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 70px; }
.hero-meta { display: flex; gap: 48px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 26px; max-width: 700px; }
.hero-meta-item { display: flex; flex-direction: column; gap: 3px; }
.hero-meta-item span { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-faint); }
.hero-meta-item strong { font-size: 13.5px; font-weight: 500; color: var(--text); letter-spacing: 0.3px; }
.hero-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 2;
}
.hero-scroll span {
  width: 1px; height: 56px; background: var(--gold); position: relative; overflow: hidden;
}
.hero-scroll span::after {
  content: ""; position: absolute; left: 0; top: -100%; width: 100%; height: 100%;
  background: #fff; animation: scrollDrop 2s ease-in-out infinite;
}
@keyframes scrollDrop { 0% { top: -100%; } 60%, 100% { top: 100%; } }
.hero-scroll small { font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint); }

/* ---------- About ---------- */
.about { background: var(--ink-2); }
.about-grid { display: grid; grid-template-columns: 420px 1fr; gap: 72px; align-items: start; }
.about-photo { position: relative; }
.about-photo-frame {
  position: relative; padding: 14px; border: 1px solid var(--line);
  background: var(--ink-3);
}
.about-photo-frame::before {
  content: ""; position: absolute; inset: -1px; border: 1px solid transparent;
  transition: border-color 0.5s ease; pointer-events: none;
}
.about-photo:hover .about-photo-frame::before { border-color: var(--gold); }
.about-photo-frame img { width: 100%; aspect-ratio: 4/5; object-fit: cover; filter: grayscale(0.25); transition: filter 0.6s ease; }
.about-photo:hover .about-photo-frame img { filter: grayscale(0); }
.about-photo-badge {
  position: absolute; right: -22px; top: 36px; background: var(--gold); color: var(--ink);
  padding: 18px 22px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.about-photo-badge strong { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; font-weight: 700; }
.about-photo-badge span { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; }
.about-photo-sig {
  margin-top: 26px; padding-left: 26px; border-left: 2px solid var(--gold);
  display: flex; flex-direction: column;
}
.sig-name { font-family: var(--serif); font-size: 26px; font-style: italic; }
.sig-title { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--text-faint); }
.about-body p { margin-bottom: 20px; color: var(--text-dim); font-weight: 300; }
.about-body .lead { font-size: 20px; color: var(--text); line-height: 1.6; }
.about-body .lead strong, .about-body p strong { color: var(--gold-2); font-weight: 500; }
.about-facts {
  margin: 34px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
}
.fact { background: var(--ink-2); padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }
.fact-value { font-size: 14px; color: var(--text); font-weight: 500; }
.about-cta { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }

/* ---------- Stats ---------- */
.stats { background: linear-gradient(135deg, var(--ink-3), var(--ink)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; text-align: center; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stat-num {
  font-family: var(--serif); font-size: clamp(40px, 4.5vw, 58px); font-weight: 600;
  color: var(--gold); line-height: 1;
}
.stat-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); }

/* ---------- Services ---------- */
.services { background: var(--ink); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  border: 1px solid var(--line-soft); background: var(--ink-2);
  padding: 40px 34px; position: relative; overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s ease, background 0.45s ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 0.5s var(--ease);
}
.service:hover { transform: translateY(-8px); border-color: var(--line); background: var(--ink-3); }
.service:hover::before { width: 100%; }
.service-num { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 18px; }
.service h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin-bottom: 14px; line-height: 1.25; }
.service p { color: var(--text-dim); font-size: 14.5px; font-weight: 300; margin-bottom: 22px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim);
  border: 1px solid var(--line-soft); padding: 5px 12px; border-radius: 30px; transition: all 0.3s ease;
}
.service:hover .service-tags span { border-color: var(--line); color: var(--gold-2); }

/* ---------- Portfolio ---------- */
.portfolio { background: var(--ink-2); }
.portfolio-filters { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.filter-btn {
  background: none; border: 1px solid var(--line-soft); color: var(--text-dim);
  font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; padding: 11px 24px;
  transition: all 0.35s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; }

.masonry { columns: 3; column-gap: 24px; }
.masonry-item {
  break-inside: avoid; margin-bottom: 24px; position: relative;
  cursor: pointer; overflow: hidden; background: var(--ink-3);
  transition: transform 0.4s var(--ease), opacity 0.4s ease;
}
.masonry-item.hide { display: none; }
.masonry-item img { width: 100%; transition: transform 0.7s var(--ease), filter 0.7s ease; }
.masonry-item:hover img { transform: scale(1.05); filter: brightness(0.75); }
.masonry-overlay {
  position: absolute; inset: 0; padding: 24px; display: flex; flex-direction: column;
  justify-content: flex-end; background: linear-gradient(0deg, rgba(12,14,17,0.92) 0%, rgba(12,14,17,0.2) 55%, transparent 100%);
  opacity: 0; transition: opacity 0.45s ease;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.mo-tag { font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.mo-title { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--text); }
.mo-loc { font-size: 12px; color: var(--text-dim); margin-top: 3px; letter-spacing: 0.6px; }
.mo-count { position: absolute; top: 18px; right: 18px; font-size: 10px; letter-spacing: 2px; color: var(--gold-2); border: 1px solid var(--line); padding: 4px 10px; background: rgba(12,14,17,0.6); }
.masonry-loading { color: var(--text-faint); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Timeline ---------- */
.timeline { background: var(--ink); }
.timeline-wrap { position: relative; max-width: 860px; margin: 0 auto; }
.timeline-line { position: absolute; left: 220px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.tl-item { position: relative; display: grid; grid-template-columns: 220px 1fr; padding: 0 0 58px 0; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 212px; top: 6px; width: 17px; height: 17px;
  background: var(--ink); border: 2px solid var(--gold); border-radius: 50%;
  transform: translateX(50%); transition: background 0.4s ease;
}
.tl-item:hover .tl-dot { background: var(--gold); }
.tl-dot-current { background: var(--gold); box-shadow: 0 0 0 7px rgba(200,169,106,0.15); }
.tl-year { text-align: right; padding-right: 46px; font-family: var(--serif); font-size: 21px; font-style: italic; color: var(--gold); font-weight: 600; line-height: 1.4; }
.tl-card { padding-left: 46px; }
.tl-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.tl-card p { color: var(--text-dim); font-size: 14px; font-weight: 300; }

/* ---------- Skills ---------- */
.skills { background: var(--ink-2); }
.skills-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; }
.skill { margin-bottom: 24px; }
.skill-top { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13.5px; letter-spacing: 0.4px; }
.skill-top span:first-child { color: var(--text); font-weight: 500; }
.skill-pct { color: var(--gold); font-weight: 600; }
.skill-bar { height: 5px; background: var(--ink-3); border: 1px solid var(--line-soft); overflow: hidden; }
.skill-bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 1.4s var(--ease);
}
.skills-side-card {
  border: 1px solid var(--line-soft); background: var(--ink-3);
  padding: 36px 34px; margin-bottom: 24px;
}
.skills-side-card h3 { font-family: var(--serif); font-size: 25px; font-weight: 600; margin-bottom: 16px; }
.skills-side-card p { color: var(--text-dim); font-size: 14.5px; font-weight: 300; }
.tool-list { list-style: none; }
.tool-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; color: var(--text-dim); }
.tool-list li:last-child { border-bottom: 0; }
.tool-list li strong { color: var(--gold-2); font-weight: 500; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-intro { color: var(--text-dim); font-size: 16px; font-weight: 300; margin-bottom: 40px; }
.contact-methods { display: flex; flex-direction: column; }
.cm {
  display: flex; align-items: center; gap: 18px; padding: 18px 0;
  border-bottom: 1px solid var(--line-soft); transition: all 0.3s ease;
}
.cm:hover { padding-left: 12px; }
.cm-icon {
  width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--gold); font-family: var(--serif); font-size: 20px;
  transition: all 0.35s ease;
}
.cm:hover .cm-icon { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.cm-body { display: flex; flex-direction: column; }
.cm-body small { font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--text-faint); }
.cm-body strong { font-size: 15px; font-weight: 500; color: var(--text); word-break: break-word; }
.contact-form {
  border: 1px solid var(--line-soft); background: var(--ink-2); padding: 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--ink-3); border: 1px solid var(--line-soft); color: var(--text);
  padding: 14px 16px; font-family: inherit; font-size: 14.5px; outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0;
}
.form-group select { appearance: none; cursor: pointer; }
.form-group select option { background: var(--ink-3); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,169,106,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { margin-top: 16px; font-size: 13px; color: var(--gold); min-height: 20px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink-2); border-top: 1px solid var(--line-soft); padding: 70px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-logo { font-family: var(--serif); font-size: 28px; font-weight: 600; color: var(--text); }
.footer-brand p { color: var(--text-dim); font-size: 14px; font-weight: 300; margin-top: 12px; max-width: 320px; }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-links a, .footer-social a { color: var(--text-dim); font-size: 14px; transition: color 0.3s ease, transform 0.3s ease; width: fit-content; }
.footer-links a:hover, .footer-social a:hover { color: var(--gold); transform: translateX(4px); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 30px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.5px;
}
.footer-bottom-note { text-transform: uppercase; letter-spacing: 1.6px; font-size: 10.5px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1500; background: rgba(8, 9, 12, 0.96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-close {
  position: absolute; top: 26px; right: 30px; z-index: 10;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-soft);
  background: rgba(12,14,17,0.7); color: var(--text); font-size: 26px; line-height: 1;
  transition: all 0.3s ease;
}
.lb-close:hover { border-color: var(--gold); color: var(--gold); transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-soft);
  background: rgba(12,14,17,0.7); color: var(--text); font-size: 30px; line-height: 1;
  transition: all 0.3s ease;
}
.lb-nav:hover { border-color: var(--gold); color: var(--gold); }
.lb-prev { left: 26px; }
.lb-next { right: 26px; }
.lb-stage {
  display: flex; gap: 44px; align-items: stretch; justify-content: center;
  max-width: calc(100vw - 160px); max-height: 84vh; width: 100%;
}
.lb-figure { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; max-width: 78%; }
.lb-figure img {
  flex: 1; object-fit: contain; max-height: calc(84vh - 90px); width: 100%;
  border: 1px solid var(--line-soft); background: #000;
}
.lb-caption { display: flex; flex-direction: column; gap: 4px; padding: 18px 4px 0; }
.lb-index { font-size: 11px; letter-spacing: 2.4px; color: var(--gold); text-transform: uppercase; }
.lb-title { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.lb-meta { font-size: 13px; color: var(--text-dim); }
.lb-panel {
  flex: 0 0 340px; overflow-y: auto; background: var(--ink-3);
  border: 1px solid var(--line-soft); padding: 34px;
  max-height: calc(84vh - 90px);
}
.lb-panel::-webkit-scrollbar { width: 6px; }
.lb-panel::-webkit-scrollbar-thumb { background: var(--line); }
.lb-panel h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 6px; }
.lb-panel .lp-loc { color: var(--gold); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
.lp-desc { color: var(--text-dim); font-size: 14px; font-weight: 300; margin-bottom: 22px; }
.lp-block { margin-bottom: 20px; }
.lp-block h5 { font-size: 10.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.lp-block p, .lp-block li { color: var(--text-dim); font-size: 13.5px; font-weight: 300; }
.lp-block ul { list-style: none; }
.lp-block li { padding: 5px 0; border-bottom: 1px solid var(--line-soft); }
.lp-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tags span { font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; border: 1px solid var(--line); color: var(--gold-2); padding: 5px 12px; }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1050; background: rgba(12, 14, 17, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mobile-menu nav a {
  font-family: var(--serif); font-size: 34px; color: var(--text); padding: 8px 0;
  opacity: 0; transform: translateY(20px); transition: all 0.5s var(--ease); font-weight: 500;
}
.mobile-menu.open nav a { opacity: 1; transform: none; }
.mobile-menu nav a:hover { color: var(--gold); font-style: italic; }
.mobile-menu-foot { margin-top: 40px; text-align: center; color: var(--text-faint); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu-foot a { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); row-gap: 46px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry { columns: 2; }
  .about-grid { grid-template-columns: 340px 1fr; gap: 48px; }
  .skills-grid { grid-template-columns: 1fr; gap: 44px; }
  .lb-stage { flex-direction: column; max-width: calc(100vw - 80px); }
  .lb-figure { max-width: 100%; }
  .lb-panel { flex: 1 1 auto; max-height: 34vh; }
  .lb-nav { width: 46px; height: 46px; font-size: 24px; }
  .lb-prev { left: 14px; } .lb-next { right: 14px; }
}

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-cta .btn { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .about-photo-badge { right: 12px; top: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .timeline-line { left: 16px; }
  .tl-item { grid-template-columns: 1fr; padding-left: 52px; padding-bottom: 46px; }
  .tl-dot { left: 6px; transform: none; }
  .tl-year { text-align: left; padding-right: 0; margin-bottom: 8px; }
  .tl-card { padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 34px; }
  .hero-meta { gap: 28px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .contact-form { padding: 30px 24px; }
  .about-facts { grid-template-columns: 1fr; }
  .hero-sub { font-size: 15.5px; }
  .lb-stage { max-width: calc(100vw - 30px); }
  .lb-close { top: 14px; right: 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
