:root {
  --color-bg: #FFFFFF;
  --color-text: #111111;
  --color-muted: #999999;
  --color-border: #E5E5E5;
  --font: 'DM Sans', -apple-system, sans-serif;
  --max-width: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-text);
  color: var(--color-bg);
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--color-muted); }

/* ── NAV ─────────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--color-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
nav.scrolled { border-bottom-color: var(--color-border); }

.nav-left {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 22px;
  line-height: 1;
}

.nav-left a {
  color: var(--color-muted);
  font-weight: 400;
}
.nav-left a:first-child {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
}
.nav-left a:hover { color: var(--color-text); }

.nav-left a.active {
  color: var(--color-text);
  font-weight: 500;
}

.nav-sep {
  color: rgba(0, 0, 0, 1);
  margin: 0 0.5em;
  font-weight: 300;
  user-select: none;
}

.nav-dot {
  color: #555555;
  margin: 0 0.6em;
  font-weight: 300;
  user-select: none;
}

.nav-crumb {
  color: rgba(0, 0, 0, 1);
  font-weight: 300;
  font-size: 22px;
}

.nav-right a {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 400;
}
.nav-right a:hover { color: var(--color-text); }

/* ── HERO (home) ─────────────────────────────────────────── */

.hero-bg {
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 20px 20px;
}

.hero {
  padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-bottom: var(--space-sm);
}

.hero-sub {
  font-size: 0.95rem;
  color: rgba(85, 85, 85, 1);
  max-width: 560px;
  line-height: 1.65;
}

/* ── SECTIONS ────────────────────────────────────────────── */

section {
  padding: var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 1.125rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.section-title {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
}

.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ── PILLARS (What I Do) ─────────────────────────────────── */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.pillar {
  padding: 0;
}

.pillar-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
  font-size: 1rem;
  color: var(--color-muted);
}

.pillar h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.pillar p {
  font-size: 0.88rem;
  color: var(--color-muted);
  line-height: 1.55;
}

/* ── CASE STUDIES (home) ─────────────────────────────────── */

.case-studies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.case-study {
  display: block;
  cursor: pointer;
}
.case-study:hover { color: var(--color-text); }
.case-study:hover .case-study-content h3 { color: var(--color-muted); }

.case-study-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-sm);
}

.case-study-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.cs-img-1 { background: #1a1a1a; }
.cs-img-2 { background: #2a2a2a; }
.cs-img-3 { background: #333333; }

.case-study-content {
  display: flex;
  flex-direction: column;
}

.case-study-tag {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.case-study-content h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.case-study-content p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: var(--space-xs);
}

.case-study-outcomes {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.outcome {
  display: flex;
  flex-direction: column;
}
.outcome-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.2;
}
.outcome-label {
  font-size: 0.68rem;
  color: var(--color-muted);
  margin-top: 0.1rem;
}

/* ── PROJECT GRID (work.html) ────────────────────────────── */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.project-card {
  display: block;
  cursor: pointer;
}
.project-card:hover { color: var(--color-text); }
.project-card:hover .project-content h3 { color: var(--color-muted); }

.project-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-sm);
}
.project-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}

.project-img-1 { background: #1a1a1a; }
.project-img-2 { background: #2a2a2a; }
.project-img-3 { background: #333333; }

.project-content {
  display: flex;
  flex-direction: column;
}

.project-tag {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.project-content h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
  transition: color 0.15s ease;
}

.project-content p {
  font-size: 0.82rem;
  color: #555555;
  line-height: 1.55;
  margin-bottom: var(--space-xs);
}

.project-outcomes {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.project-link {
  margin-top: var(--space-xs);
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ── PROJECT HERO (case study pages) ─────────────────────── */

.project-hero {
  padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-hero-label {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.project-hero h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.project-hero-meta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}
.project-hero-meta-item {
  display: flex;
  flex-direction: column;
}
.project-hero-meta-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}
.project-hero-meta-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.2;
}

.project-hero-image {
  margin-top: var(--space-lg);
  aspect-ratio: 16/9;
  background: #1a1a1a;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.72rem;
}

/* ── CONTENT SECTIONS (case study pages) ─────────────────── */

.content-section {
  padding: var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.content-section h2 {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

.content-section p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-md);
  max-width: 640px;
}

.content-section p.lead {
  font-size: 1rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.content-image {
  margin: var(--space-lg) 0;
  aspect-ratio: 16/9;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.72rem;
}

/* ── IMAGE BORDERS ───────────────────────────────────────── */

.case-study-image,
.project-image,
.writing-article-visual,
.project-hero-image,
.content-image,
.about-photo-frame {
  border: 1px solid #999999;
  border-radius: 10px;
}

/* ── IMAGE SLOTS ─────────────────────────────────────────── */

.case-study-image > img,
.project-image > img,
.writing-article-visual > img,
.project-hero-image > img,
.content-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-photo-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.back-link {
  display: none;
}

/* ── WRITING GRID (home) ────────────────────────────────── */

.writing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.writing-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.writing-card:hover h3 { color: var(--color-muted); }

.writing-type {
  font-size: 0.68rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.writing-card h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: var(--space-xs);
  line-height: 1.35;
  transition: color 0.15s ease;
}

.writing-card p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.55;
  flex-grow: 1;
}

.writing-card-footer {
  margin-top: var(--space-sm);
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ── WRITING LIST (writing.html) ───────────────────────── */

.writing-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.writing-article {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.writing-article:hover { color: inherit; }
.writing-article:hover .writing-article-body h3 { color: var(--color-muted); }

.writing-article-visual {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-sm);
}

.ta-img-1 { background: #1a1a1a; }
.ta-img-2 { background: #2a2a2a; }
.ta-img-3 { background: #333333; }

.writing-article-body {
  display: flex;
  flex-direction: column;
}

.writing-article-type {
  font-size: 0.68rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.writing-article-body h3 {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  color: var(--color-text);
  transition: color 0.15s ease;
}

.writing-article-body p {
  font-size: 0.82rem;
  color: rgba(85, 85, 85, 1);
  line-height: 1.55;
}

.writing-article-link {
  font-size: 0.75rem;
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.writing-article.coming-soon {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
.writing-article.coming-soon .writing-article-visual {
  background: #f5f5f5;
}

/* ── CTA BAND ────────────────────────────────────────────── */

.cta-band {
  display: none;
}

/* ── FOOTER ──────────────────────────────────────────────── */

footer {
  padding: var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

.footer-acknowledgement {
  max-width: 420px;
  line-height: 1.55;
  font-size: 0.75rem;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
}
.footer-links a {
  color: var(--color-muted);
  font-size: 0.78rem;
}
.footer-links a:hover { color: var(--color-text); }

.footer-contact {
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--color-muted);
}
.footer-contact a { color: var(--color-text); }
.footer-contact a:hover { color: var(--color-muted); }

/* ── ABOUT HERO ──────────────────────────────────────────── */

.about-hero {
  padding: calc(80px + var(--space-xl)) var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-xl);
  align-items: start;
}

.about-hero-text {
  padding-top: var(--space-sm);
}

.about-hero-label {
  font-size: 0.78rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.about-hero-text h1 {
  font-family: var(--font);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.about-hero-text h1 em {
  font-style: italic;
}

.about-lede {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 560px;
}

.about-photo {
}

.about-photo-frame {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f5f5f5;
  overflow: hidden;
  position: relative;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-muted);
  opacity: 0.3;
}

.photo-placeholder-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.photo-placeholder-text {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.about-photo-caption {
  margin-top: var(--space-xs);
  font-size: 0.72rem;
  color: var(--color-muted);
  opacity: 0.6;
}

/* ── NARRATIVE ───────────────────────────────────────────── */

.narrative-section {
  padding: var(--space-lg) var(--space-lg) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.narrative-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: var(--space-xl);
}

.narrative-nav {
  position: sticky;
  top: calc(60px + var(--space-lg));
  align-self: start;
}

.narrative-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.narrative-nav-link {
  display: block;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  color: var(--color-muted);
  transition: color 0.15s ease;
  cursor: pointer;
}
.narrative-nav-link:hover {
  color: var(--color-text);
}
.narrative-nav-link.active {
  color: var(--color-text);
  font-weight: 500;
}

.narrative-content {
  max-width: 600px;
}

.narrative-block {
  margin-bottom: var(--space-xl);
  scroll-margin-top: 80px;
}

.narrative-block-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.narrative-block h2 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.narrative-block p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.narrative-block p:last-child {
  margin-bottom: 0;
}

.narrative-block p strong {
  color: var(--color-text);
  font-weight: 500;
}

.inline-highlight {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.04) 40%, transparent 40%);
  padding: 0 2px;
}

/* ── TIMELINE ────────────────────────────────────────────── */

.timeline {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--color-border);
  padding-left: var(--space-md);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--space-md);
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-md) - 3px);
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-border);
}
.timeline-item.current::before {
  background: var(--color-text);
}

.timeline-year {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: 0.1rem;
}

.timeline-role {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.05rem;
}

.timeline-org {
  font-size: 0.82rem;
  color: var(--color-muted);
}

/* ── CAPABILITIES ────────────────────────────────────────── */

.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-md);
}

.capability-item {
  padding: 0;
}

.capability-item h4 {
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.capability-item p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ── COLLABORATORS ───────────────────────────────────────── */

.collaborators-band {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) var(--space-lg);
}

.collaborators-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.collaborators-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.collaborators-title {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.collaborators-desc {
  font-size: 0.88rem;
  color: var(--color-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.collaborators-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
}

.collaborator-card {
  padding: 0;
}

.collaborator-name {
  font-size: 0.92rem;
  font-weight: 400;
}

.collaborator-type {
  font-size: 0.72rem;
  color: var(--color-muted);
}

/* ── AWARDS ──────────────────────────────────────────────── */

.awards-section {
  padding: var(--space-lg) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.awards-label {
  font-size: 0.72rem;
  color: var(--color-muted);
  font-weight: 400;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
}

.awards-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
}

.award-item {
  padding: 0;
}

.award-year {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.award-name {
  font-size: 0.92rem;
  font-weight: 400;
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.award-org {
  font-size: 0.72rem;
  color: var(--color-muted);
}

/* ── CV ──────────────────────────────────────────────────── */

.cv-section {
  padding: 0 var(--space-lg) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.cv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
}

.cv-text h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.2rem;
}

.cv-text p {
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 0.82rem;
  font-family: var(--font);
  font-weight: 400;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}
.cv-download:hover { opacity: 0.7; color: var(--color-bg); }

.cv-download-icon {
  font-size: 0.9rem;
}

/* ── ANNOTATION ──────────────────────────────────────────── */

.annotation {
  position: relative;
}
.annotation::after {
  content: attr(data-note);
  position: absolute;
  right: -260px;
  top: 0;
  width: 220px;
  font-size: 0.68rem;
  color: var(--color-muted);
  line-height: 1.45;
  padding: var(--space-xs) var(--space-sm);
  border-left: 1px solid var(--color-border);
  pointer-events: none;
}
@media (max-width: 1440px) {
  .annotation::after { display: none; }
}

/* ── GALLERY GRID (gallery.html) ─────────────────────────── */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  grid-auto-flow: row dense;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: #1a1a1a;
  border: 1px solid #999999;
  border-radius: 10px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.85;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-caption {
  opacity: 1;
}

.gallery-item-caption span {
  font-size: 0.82rem;
  color: #ffffff;
  font-weight: 400;
}

/* ── LIGHTBOX ────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.lightbox-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.lightbox-caption {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font);
  font-weight: 300;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s ease;
  padding: 0;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  color: #ffffff;
}

.lightbox-close {
  top: var(--space-lg);
  right: var(--space-lg);
  font-size: 2rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
}

.lightbox-prev { left: var(--space-lg); }
.lightbox-next { right: var(--space-lg); }

/* ── RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 768px) {
  .pillars { grid-template-columns: 1fr; }
  .writing-grid { grid-template-columns: 1fr; }
  .case-studies { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-item.wide,
  .gallery-item.featured { grid-column: span 1; }
  .gallery-item.tall,
  .gallery-item.featured { grid-row: span 2; }
  .writing-list { grid-template-columns: 1fr; }
  nav { padding: var(--space-sm) var(--space-md); }
  .nav-left { flex-wrap: wrap; }
  section, .hero, .project-hero, .content-section { padding-left: var(--space-md); padding-right: var(--space-md); }
  footer { flex-direction: column; gap: var(--space-md); }
  .project-hero-meta { gap: var(--space-md); }
}

@media (max-width: 900px) {
  .about-hero {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .about-photo {
    order: -1;
    max-width: 240px;
  }
  .about-photo-frame { aspect-ratio: 1/1; }
  .narrative-grid { grid-template-columns: 1fr; }
  .narrative-nav { display: none; }
  .collaborators-grid { flex-direction: column; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .awards-list { flex-direction: column; }
  .cv-card { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .about-hero { padding-left: var(--space-md); padding-right: var(--space-md); }
  .narrative-section,
  .awards-section,
  .cv-section { padding-left: var(--space-md); padding-right: var(--space-md); }
}
