/* ===== CSS RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #1a1a1a;
  --gray: #7a7a78;
  --light-gray: #e2e2de;
  --bg: #f9f9f7;
  --white: #ffffff;
  --accent: #e2e2de;
  --max-width: 1100px;
  --content-width: 720px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin: 32px 0;
}

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

/* ===== NAVIGATION ===== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  background: rgba(249,249,247,0.95);
  backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid transparent;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--black);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: 400;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover {
  color: var(--black);
  border-bottom-color: var(--black);
}

.nav-links a.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 1.5rem;
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  color: var(--black);
  text-decoration: none;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--black);
}

/* ===== HERO (HOME) ===== */
.hero {
  max-width: 680px;
  margin: 0 auto;
  padding: 72px 40px 48px;
  text-align: center;
}

.hero-greeting {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 16px;
}

.hero h1,
.hero-h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  line-height: 1.4;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 28px;
}

.hero h1 .highlight {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  font-weight: 700;
}

.hero-learn-more {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s;
}

.hero-learn-more:hover { opacity: 0.6; }

/* ===== PROJECT LIST ===== */
.projects-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 40px 80px;
}

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-top: 1px solid var(--light-gray);
  text-decoration: none;
  color: var(--black);
  transition: opacity 0.2s;
}

.project-row:last-child { border-bottom: 1px solid var(--light-gray); }

.project-row:hover { opacity: 0.85; }

.project-row-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-gray);
  aspect-ratio: 4/3;
  flex-shrink: 0;
}

.project-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  display: block;
}

.project-row-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--black);
}

.project-row-info p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray);
  margin-bottom: 12px;
}

.project-link-inline {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}

.view-project {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--black);
}

/* ===== CASE STUDY ===== */
.case-study {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.case-hero {
  max-width: var(--content-width);
  margin-bottom: 40px;
}

.project-tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.case-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--black);
}

.case-hero p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 600px;
}

.case-cover {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 60px;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 60px;
  align-items: start;
}

.case-content h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 48px 0 16px;
  color: var(--black);
}

.case-content h2:first-child { margin-top: 0; }

.case-content p {
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 1rem;
}

.case-content img {
  width: 100%;
  border-radius: 8px;
  margin: 24px 0;
}

.project-link {
  display: inline-block;
  font-weight: 500;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.6; }

/* Sidebar */
.case-sidebar {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  font-size: 0.875rem;
}

.case-sidebar dt {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 20px;
}

.case-sidebar dt:first-child { margin-top: 0; }

.case-sidebar dd {
  color: var(--black);
  margin: 4px 0 0;
  line-height: 1.5;
}

/* Case nav */
.case-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--light-gray);
  font-size: 0.875rem;
  font-weight: 500;
  gap: 16px;
}

.case-nav a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

.case-nav a:hover { color: var(--black); }

/* ===== NAV LOGO IMAGE ===== */
.nav-logo-img {
  height: 28px;
  width: auto;
  display: block;
  margin: 0;
  border-radius: 0;
}

/* ===== ABOUT PAGE ===== */
.about-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}

.about-photo-wrap {
  display: flex;
  justify-content: center;
}

.about-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0;
}

.about-text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 28px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 16px;
}

.about-text a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.about-links {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.about-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  border-bottom: 1.5px solid var(--black);
  padding-bottom: 1px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.about-links a:hover { opacity: 0.6; }

/* Testimonials */
.testimonials-section {
  border-top: 1px solid var(--light-gray);
  padding-top: 60px;
  margin-top: 20px;
}

.testimonials-label {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--black);
  margin-bottom: 48px;
  letter-spacing: 0;
}

/* Stacked single-column testimonials — large quote, small author below */
.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.testimonial-item {
  padding: 48px 0;
  border-bottom: 1px solid var(--light-gray);
}

.testimonial-item:last-child {
  border-bottom: none;
}

.testimonial-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--black);
  margin: 0 0 20px;
  font-style: normal;
  max-width: 900px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0;
  flex-shrink: 0;
}

.testimonial-author-info {
  font-size: 0.875rem;
  line-height: 1.4;
}

.testimonial-author-name {
  font-weight: 500;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.testimonial-author-name:hover { opacity: 0.7; }

.testimonial-author-title {
  color: var(--gray);
  margin-top: 2px;
}

/* ===== RESUME PAGE ===== */
.resume-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.resume-section h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  margin-bottom: 8px;
}

.resume-tagline {
  font-size: 1.05rem;
  color: var(--gray);
  margin-bottom: 48px;
  line-height: 1.5;
}

.resume-block {
  margin-bottom: 56px;
}

.resume-block-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.resume-job {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  margin-bottom: 32px;
  align-items: start;
}

.resume-job:last-child { margin-bottom: 0; }

.resume-job-company {
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  grid-column: 1;
}

.resume-job-date {
  font-size: 0.8rem;
  color: var(--gray);
  white-space: nowrap;
  text-align: right;
  grid-column: 2;
  padding-top: 2px;
}

.resume-job-title {
  font-size: 0.9rem;
  color: var(--gray);
  grid-column: 1 / -1;
  margin-top: -6px;
  margin-bottom: 10px;
}

.resume-job ul {
  grid-column: 1 / -1;
  padding-left: 18px;
  margin: 0;
}

.resume-job li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--black);
  margin-bottom: 6px;
}

.resume-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 48px;
}

.resume-skill-item {
  font-size: 0.9rem;
  color: var(--black);
  line-height: 1.6;
}

.resume-edu-item {
  margin-bottom: 20px;
}

.resume-edu-item:last-child { margin-bottom: 0; }

.resume-edu-school {
  font-weight: 600;
  font-size: 0.95rem;
}

.resume-edu-degree {
  font-size: 0.875rem;
  color: var(--gray);
  margin-top: 3px;
}

.resume-contact-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.resume-contact-row a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--black);
}

.resume-contact-row a:hover { opacity: 0.6; }

/* ===== LOGOS PAGE ===== */
.logos-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.logos-section h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.logos-section .subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 48px;
}

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

.logo-card {
  background: #f4f4f0;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.25s, transform 0.25s;
}

.logo-card:hover {
  background: #e8e8e4;
  transform: scale(1.015);
}

.logo-card img {
  max-width: 65%;
  max-height: 65%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}

/* ===== GALLERY PAGES ===== */
.gallery-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.gallery-section h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 12px;
}

.gallery-section .subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 40px;
}

.photo-grid {
  columns: 3;
  column-gap: 12px;
}

.photo-grid img {
  width: 100%;
  margin: 0 0 12px;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  break-inside: avoid;
  transition: opacity 0.2s;
}

.photo-grid img:hover { opacity: 0.9; }

/* ===== PHOTOGRAPHY SUB-NAV ===== */
.photo-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}

.photo-hero {
  margin-bottom: 40px;
}

.photo-hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 400;
  margin-bottom: 20px;
}

.photo-subnav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 0;
  margin-bottom: 0;
  position: static;
  background: none;
  backdrop-filter: none;
  z-index: auto;
  border-top: none;
  border-left: none;
  border-right: none;
  justify-content: flex-start;
  align-items: center;
}

.photo-subnav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.photo-subnav a:hover {
  color: var(--black);
}

.photo-subnav a.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* ===== ACCORDION ===== */
.accordion {
  margin: 24px 0 32px;
  border-top: 1px solid var(--light-gray);
}

.accordion details {
  border-bottom: 1px solid var(--light-gray);
}

.accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  color: var(--black);
  letter-spacing: 0.01em;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--gray);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.accordion details[open] > summary::after {
  content: '−';
}

.accordion details > *:not(summary) {
  padding: 0 0 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--black);
}

.accordion details ul {
  padding-left: 20px;
  margin: 0;
}

.accordion details ul li {
  margin-bottom: 6px;
}

.accordion details p {
  margin-bottom: 8px;
}

/* ===== VIDEOGRAPHY ===== */
.video-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* Shared video wrapper — always 16:9 */
.video-wrap {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  flex: 1 1 0;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Video block base */
.video-block {
  margin-bottom: 80px;
}

/* Title / description header */
.video-block-header--center {
  text-align: center;
  margin-bottom: 28px;
}

.video-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 12px;
}

.video-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

/* Full-width block */
.video-block--full .video-wrap {
  width: 100%;
}

/* Split: video + text side by side */
.video-block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.video-block-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-block-text .video-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 16px;
}

.video-block-text .video-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.65;
  margin: 0;
  max-width: none;
}

/* Reverse: text left, video right */
.video-block--reverse {
  direction: rtl;
}
.video-block--reverse > * {
  direction: ltr;
}

/* Two videos side by side */
.video-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Legacy */
.video-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px 80px;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  margin: 0;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: 8px;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--light-gray);
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.footer-name {
  font-family: 'DM Serif Display', serif;
  font-size: 0.95rem;
}

.footer-meta { color: var(--gray); }

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

.footer-links a {
  color: var(--gray);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 48px 24px 36px; }
  .projects-section { padding: 0 24px 60px; }

  .project-row {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px 0;
  }
  .project-row-image { aspect-ratio: 16/9; width: 100%; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo-wrap { order: -1; }
  .about-photo { max-width: 220px; }

  .case-study { padding: 40px 24px 60px; }
  .case-body { grid-template-columns: 1fr; }
  .case-sidebar { position: static; order: -1; }

  .logos-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .photo-grid { columns: 2; }

  .gallery-section,
  .logos-section,
  .video-section,
  .video-page,
  .photo-page { padding: 40px 24px 60px; }

  .video-block--split {
    grid-template-columns: 1fr;
    gap: 24px;
    direction: ltr;
  }
  .video-block--reverse { direction: ltr; }
  .video-pair { grid-template-columns: 1fr; }
  .video-block { margin-bottom: 48px; }

  footer { padding: 24px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 560px) {
  .logos-grid { grid-template-columns: 1fr; }
  .photo-grid { columns: 1; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
}

/* ===== PAGE FADE-IN ===== */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.photo-page .photo-grid,
.logos-section .logos-grid {
  animation: pageFadeIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.lightbox-overlay img {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  margin: 0;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox-overlay.open img {
  transform: scale(1);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  padding: 8px;
  z-index: 9001;
}

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

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
  padding: 16px;
  z-index: 9001;
  user-select: none;
}

.lightbox-arrow:hover { opacity: 1; }
.lightbox-arrow--prev { left: 12px; }
.lightbox-arrow--next { right: 12px; }

/* Make clickable images show a pointer */
.photo-grid img,
.logo-card {
  cursor: zoom-in;
}

/* ===== RESUME DOWNLOAD BUTTON ===== */
.resume-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 40px;
  margin-bottom: 8px;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
}

.resume-download-btn:hover { opacity: 0.75; }

.resume-download-btn svg {
  flex-shrink: 0;
}

/* ===== RESEARCH CAROUSEL ===== */
.research-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 32px 0;
  /* negative side margins let carousel extend a bit wider than text col */
}

.carousel-track-wrap {
  overflow: hidden;
  flex: 1;
  border-radius: 10px;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 0; /* override global img margin — carousel handles spacing */
  cursor: zoom-in;
}

.carousel-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s, transform 0.15s;
  z-index: 2;
  position: relative;
}

.carousel-btn:hover { opacity: 1; transform: scale(1.08); }
.carousel-btn--prev { margin-right: 12px; }
.carousel-btn--next { margin-left: 12px; }

@media (max-width: 600px) {
  .carousel-btn { width: 32px; height: 32px; font-size: 0.85rem; }
  .carousel-btn--prev { margin-right: 8px; }
  .carousel-btn--next { margin-left: 8px; }
}
