/* ==========================================================================
   Brian Su — Concept Artist & Matte Painter
   ========================================================================== */

:root {
  --bg: #0c0e12;
  --bg-alt: #12151c;
  --surface: #161a22;
  --line: #262c38;
  --text: #e9e7e1;
  --muted: #9aa2ad;
  --accent: #d4a94e;
  --accent-soft: rgba(212, 169, 78, 0.12);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

::selection { background: var(--accent); color: #14161a; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem max(1.5rem, calc((100vw - var(--maxw)) / 2));
  background: rgba(12, 14, 18, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand span { color: var(--accent); }

.nav-links { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover { background: var(--accent); color: #14161a; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(12, 14, 18, 0.55) 0%, rgba(12, 14, 18, 0.35) 45%, var(--bg) 100%),
    url("assets/matte_painting/establishingshot.jpg") center / cover no-repeat;
  padding: 8rem max(1.5rem, calc((100vw - var(--maxw)) / 2)) 6rem;
}

.hero-inner { max-width: 780px; }

.hero-kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(212, 169, 78, 0.45);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
  background: rgba(12, 14, 18, 0.4);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.hero-title em { color: var(--accent); font-style: italic; }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: #d5d3cc;
  max-width: 560px;
  margin-bottom: 2.4rem;
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--accent); color: #14161a; box-shadow: 0 10px 30px rgba(212, 169, 78, 0.28); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(212, 169, 78, 0.38); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--text);
  background: rgba(12, 14, 18, 0.35);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.06); }

.btn-lg { padding: 1.1rem 2.6rem; font-size: 1.05rem; }

.hero-scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 44px;
  margin: 0.8rem auto 0;
  background: linear-gradient(180deg, var(--accent), transparent);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) max(1.5rem, calc((100vw - var(--maxw)) / 2));
  scroll-margin-top: 4rem;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-count {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.section-lead { color: var(--muted); font-size: 1.05rem; }

/* ==========================================================================
   Grid
   ========================================================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.item { display: block; }

.thumb {
  display: block;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  background: var(--surface);
  border: 1px solid var(--line);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.item:hover .thumb img { transform: scale(1.05); }
.item:hover .thumb { border-color: rgba(212, 169, 78, 0.5); }

/* ==========================================================================
   About
   ========================================================================== */

.about {
  display: grid;
  grid-template-columns: minmax(280px, 400px) 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.about-media { position: relative; }
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 169, 78, 0.35);
  border-radius: 4px;
  pointer-events: none;
}
.about-media img {
  position: relative;
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--line);
}

.about-text {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
}
.about-text + .about-text { margin-top: 1.1rem; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { text-align: center; }

.contact-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact .section-title { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.contact .btn { margin-top: 0.75rem; }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
  margin-top: 2.75rem;
}
.socials a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s ease;
}
.socials a:hover { color: var(--accent); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--line);
  padding: 2.25rem max(1.5rem, calc((100vw - var(--maxw)) / 2));
  text-align: center;
}
.footer p { font-size: 0.82rem; color: var(--muted); }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 11, 0.94);
  padding: clamp(1rem, 4vw, 3rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1500px, 94vw);
  max-height: 82vh;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-index {
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.lb-close {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.lb-close::before,
.lb-close::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--text);
}
.lb-close::before { transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-close:hover { background: var(--accent); border-color: var(--accent); }
.lb-close:hover::before,
.lb-close:hover::after { background: #14161a; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(12, 14, 18, 0.4);
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lb-arrow:hover { background: var(--accent); border-color: var(--accent); color: #14161a; }

.lb-prev { left: 1.6rem; }
.lb-next { right: 1.6rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 860px) {
  .nav-cta { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about-media { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .nav { padding-top: 0.85rem; padding-bottom: 0.85rem; }
  .nav-links { gap: 1rem; }
  .hero { padding-top: 7rem; }
  .lb-arrow { width: 40px; height: 40px; font-size: 1.5rem; }
  .lb-prev { left: 0.8rem; }
  .lb-next { right: 0.8rem; }
  .lb-close { top: 1rem; right: 1rem; }
}

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