/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: #1a1a1a;
  color: #e0e0e0;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Typography ──────────────────────────────────── */
h1, h2, h3 {
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ── Header / Navigation ─────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ccc;
}

nav {
  display: flex;
  align-items: center;
  gap: 48px;
}

nav a {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #ccc;
  transition: color 0.3s;
  position: relative;
}

nav a:hover,
nav a.active {
  color: #c9a96e;
}

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: #c9a96e;
}

.social-icons {
  display: flex;
  gap: 14px;
  align-items: center;
}

.social-icons a {
  color: #ccc;
  transition: color 0.3s;
  display: flex;
}

.social-icons a:hover {
  color: #fff;
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #ccc;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

/* ── Hero Section ────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

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

.hero h1 {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero p {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Page Header (for inner pages) ───────────────── */
.page-header {
  padding: 160px 40px 60px;
  text-align: center;
  background: #1a1a1a;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
}

.page-header p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #999;
}

.page-header-divider {
  width: 60px;
  height: 1px;
  background: #c9a96e;
  margin: 24px auto 0;
}

/* ── Contact Section ─────────────────────────────── */
.contact-section {
  background: #222;
  padding: 80px 40px;
}

.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}

.contact-info p {
  color: #999;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.contact-info a {
  color: #ccc;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #c9a96e;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  color: #999;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: 1px solid #444;
  color: #e0e0e0;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #c9a96e;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  align-self: flex-start;
  background: #f5f5f0;
  color: #1a1a1a;
  border: none;
  padding: 14px 40px;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.btn-submit:hover {
  background: #e0e0d8;
  transform: translateY(-1px);
}

/* ── Resume Section ──────────────────────────────── */
.resume-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.resume-section p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 16px;
  text-align: justify;
}

/* ── Masonry Gallery (Headshots) ─────────────────── */
.gallery-masonry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
  columns: 3;
  column-gap: 16px;
}

.gallery-masonry .gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-masonry .gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-masonry .gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* ── Portfolio Projects ──────────────────────────── */
.portfolio-section {
  max-width: 100%;
}

.project-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.project-block.reversed {
  direction: rtl;
}

.project-block.reversed > * {
  direction: ltr;
}

.project-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  background: #2a2a2a;
}

.project-block:nth-child(even) .project-text {
  background: #252525;
}

.project-text h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.project-text .project-role {
  font-size: 1rem;
  color: #999;
  margin-bottom: 16px;
}

.project-text .project-desc {
  font-size: 0.95rem;
  font-style: italic;
  color: #aaa;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-text .project-funding {
  font-size: 0.85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.project-text .project-funding img {
  height: 32px;
  width: auto;
}

.project-text .project-funding a {
  color: #c9a96e;
  text-decoration: underline;
}

.project-image {
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  padding: 60px 40px 40px;
  text-align: center;
}

.footer-email {
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer-email a {
  transition: color 0.3s;
}

.footer-email a:hover {
  color: #c9a96e;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-social a {
  color: #ccc;
  transition: color 0.3s;
  display: flex;
}

.footer-social a:hover {
  color: #fff;
}

.footer-social svg {
  width: 22px;
  height: 22px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
  letter-spacing: 0.05em;
}

/* ── Lightbox ────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .header-inner {
    padding: 14px 24px;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-masonry {
    columns: 2;
    padding: 20px 16px 60px;
  }

  .project-block,
  .project-block.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .project-text {
    padding: 40px 30px;
  }

  .project-image {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .gallery-masonry {
    columns: 2;
    column-gap: 10px;
  }

  .hero h1 {
    letter-spacing: 0.06em;
  }

  .page-header {
    padding: 130px 24px 40px;
  }
}
