/* ============================================================
   Crossing Scales — Kai-Min Lee Portfolio
   style.css
   ============================================================ */

/* ------------------------------------------------------------
   Google Fonts
   ------------------------------------------------------------ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500&display=swap');

/* ------------------------------------------------------------
   CSS Custom Properties
   ------------------------------------------------------------ */
:root {
  /* Colors */
  --color-bg:           #ffffff;
  --color-bg-nav:       rgba(255, 255, 255, 0.90);
  --color-surface:      #f5f4f0;
  --color-placeholder:  #eeece8;
  --color-placeholder-label: #b0aa9f;
  --color-border:       #e0dcd6;
  --color-text:         #1a1a1a;
  --color-text-muted:   #7a7570;
  --color-text-faint:   #a8a39c;
  --color-accent:       #1a1a1a;
  --color-link:         #1a1a1a;

  /* Typography */
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', system-ui, sans-serif;

  /* Type scale */
  --text-xs:    0.72rem;
  --text-sm:    0.85rem;
  --text-base:  1rem;
  --text-md:    1.125rem;
  --text-lg:    1.375rem;
  --text-xl:    1.75rem;
  --text-2xl:   2.5rem;
  --text-3xl:   3.75rem;
  --text-4xl:   5.5rem;
  --text-hero:  clamp(3.5rem, 9vw, 7.5rem);

  /* Spacing */
  --space-xs:   0.375rem;
  --space-sm:   0.75rem;
  --space-md:   1.25rem;
  --space-lg:   2rem;
  --space-xl:   3rem;
  --space-2xl:  5rem;
  --space-3xl:  8rem;

  /* Layout */
  --nav-height: 64px;
  --content-max: 720px;
  --site-max:   1280px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --duration:   0.35s;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: opacity var(--duration) var(--ease-out);
}

a:hover {
  opacity: 0.55;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.3em;
}

p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
  background: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out),
    backdrop-filter var(--duration) var(--ease-out);
}

.nav.is-solid {
  background: var(--color-bg-nav);
  border-color: var(--color-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--site-max);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  white-space: nowrap;
  transition: color var(--duration) var(--ease-out);
}

.nav.is-solid .nav__logo {
  color: var(--color-text);
}

.nav__logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.nav__logo:hover {
  opacity: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition:
    color var(--duration) var(--ease-out),
    opacity var(--duration) var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--color-text);
  opacity: 1;
}

/* ------------------------------------------------------------
   Image Placeholder
   ------------------------------------------------------------ */
.img-placeholder {
  background: var(--color-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.img-placeholder::after {
  content: '[ image ]';
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-placeholder-label);
}

/* Aspect ratios */
.img-placeholder--card {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.img-placeholder--hero {
  width: 100%;
  height: 60vh;
  min-height: 320px;
}

.img-placeholder--figure {
  width: 100%;
  height: 50vh;
  min-height: 260px;
}

.img-placeholder--portrait {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-width: 380px;
}

/* ------------------------------------------------------------
   Hero — Home
   ------------------------------------------------------------ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65vh;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-xl) calc(var(--space-2xl) + 12vh);
  text-align: center;
  overflow: hidden;
}

/* Background video */
.hero__bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

/* White fade overlay */
.hero__bg-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
}

/* All direct children above video */
.hero > *:not(.hero__bg-video) {
  position: relative;
  z-index: 1;
}

.hero__logo {
  display: block;
  width: 300px;
  height: auto;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1.1s var(--ease-out) both;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 1.1s var(--ease-out) both;
}

.hero__name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: var(--space-md);
  animation: fadeInUp 1.1s 0.1s var(--ease-out) both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
  animation: fadeInUp 1.1s 0.2s var(--ease-out) both;
}

.hero__location {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  color: var(--color-text-faint);
  margin-bottom: 0;
  animation: fadeInUp 1.1s 0.3s var(--ease-out) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   Section Divider
   ------------------------------------------------------------ */
.section-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ------------------------------------------------------------
   Projects Section — Home
   ------------------------------------------------------------ */
.projects-section {
  padding: var(--space-3xl) var(--space-xl);
  max-width: var(--site-max);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2xl);
}

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

/* ------------------------------------------------------------
   Project Card
   ------------------------------------------------------------ */
.project-card {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.project-card:hover {
  opacity: 1;
}

.project-card__image-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.project-card__image-wrap .img-placeholder--card {
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
  transition: background 0.45s var(--ease-out);
  pointer-events: none;
}

.project-card__overlay-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  color: var(--color-surface);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s var(--ease-out),
    transform 0.4s var(--ease-out);
}

.project-card__overlay-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(245, 244, 240, 0.75);
  margin-top: 0.4em;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s 0.05s var(--ease-out),
    transform 0.4s 0.05s var(--ease-out);
}

.project-card:hover .project-card__overlay-meta {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .img-placeholder--card {
  transform: scale(1.04);
}

.project-card:hover .project-card__overlay {
  background: rgba(26, 26, 26, 0.42);
}

.project-card:hover .project-card__overlay-title {
  opacity: 1;
  transform: translateY(0);
}

.project-card__meta {
  display: none;
}

/* ------------------------------------------------------------
   Project Page — Hero
   ------------------------------------------------------------ */
.project-hero {
  margin-top: var(--nav-height);
}

/* ------------------------------------------------------------
   Project Page — Header
   ------------------------------------------------------------ */
.project-header {
  padding: var(--space-xl) var(--space-xl) 0;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: var(--space-2xl);
}

.project-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}

.project-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-bottom: var(--space-xl);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.meta-item__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.meta-item__value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   Project Body Content
   ------------------------------------------------------------ */
.project-body {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-3xl);
}

.intro {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.01em;
}

.chapter {
  margin-bottom: var(--space-xl);
}

.chapter__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.chapter p {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.75;
}

/* Pull Quotes */
.pull-quote {
  border-left: 2px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  color: var(--color-text-muted);
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 0;
}

.pull-quote__attribution {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-style: normal;
  color: var(--color-text-faint);
  margin-top: var(--space-sm);
  display: block;
}

/* Figures */
.figure {
  margin: var(--space-xl) 0;
}

.figure__caption {
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.55;
}

.figure__label {
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

/* Section headings within project body */
.project-body .section-heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.project-body .section-sub {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-xs);
  margin-top: var(--space-xl);
}

/* Footnotes */
.footnotes {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.footnotes__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: var(--space-md);
}

.footnotes ol {
  list-style: decimal;
  list-style-position: outside;
  padding-left: 1.4em;
}

.footnotes ol li {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  line-height: 1.65;
  margin-bottom: 0.6em;
}

/* ------------------------------------------------------------
   Prev / Next Navigation
   ------------------------------------------------------------ */
.project-nav {
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  max-width: var(--site-max);
  margin: 0 auto;
}

.project-nav__item {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  max-width: 45%;
}

.project-nav__item--next {
  align-items: flex-end;
  text-align: right;
}

.project-nav__direction {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.project-nav__title {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-text);
  transition: opacity var(--duration) var(--ease-out);
}

.project-nav__title:hover {
  opacity: 0.5;
}

.project-nav__placeholder {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
}

/* ------------------------------------------------------------
   About Page
   ------------------------------------------------------------ */
.about-page {
  padding-top: var(--nav-height);
}

.about-header {
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  max-width: var(--site-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--color-border);
}

.about-header__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: -0.025em;
}

.about-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-3xl);
  padding: var(--space-2xl) var(--space-xl);
  max-width: var(--site-max);
  margin: 0 auto;
  align-items: start;
}

.about-layout--no-photo {
  grid-template-columns: 1fr;
  max-width: var(--content-max);
}

.about-photo {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
}

.about-bio__lead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-xl);
}

.about-section {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.about-section__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.education-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.education-item__degree {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 400;
}

.education-item__school {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: 0.1em;
}

.manifesto-text {
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.contact-email {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1px;
  transition:
    border-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out);
}

.contact-email:hover {
  color: var(--color-text-muted);
  border-color: var(--color-text-muted);
  opacity: 1;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.footer {
  padding: var(--space-xl);
  border-top: 1px solid var(--color-border);
  text-align: center;
  margin-top: auto;
}

.footer__inner {
  max-width: var(--site-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4em;
}

.footer__name {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.footer__email {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--duration) var(--ease-out);
}

.footer__email:hover {
  color: var(--color-text-muted);
  opacity: 1;
}

/* ------------------------------------------------------------
   Page Shell
   ------------------------------------------------------------ */
.page-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-shell .footer {
  margin-top: auto;
}

/* ------------------------------------------------------------
   Figure Grid — 2 or 3 equal columns
   ------------------------------------------------------------ */
.figure-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: var(--space-xl) 0;
  align-items: start;
}

.figure-3col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  margin: var(--space-xl) 0;
  align-items: start;
}

.figure-2col img,
.figure-2col video,
.figure-3col img,
.figure-3col video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ------------------------------------------------------------
   Figure Mosaic (1 tall left + 2 stacked right)
   ------------------------------------------------------------ */
.figure-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 4px;
  margin: var(--space-xl) 0;
}

.figure-mosaic__left {
  grid-row: 1 / 3;
}

.figure-mosaic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-mosaic__left img {
  height: 100%;
}

/* ------------------------------------------------------------
   Real Images / Videos replacing placeholders
   ------------------------------------------------------------ */
.project-card__image-wrap img,
.project-card__image-wrap video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.project-card:hover .project-card__image-wrap img,
.project-card:hover .project-card__image-wrap video {
  transform: scale(1.04);
}

/* Anarchronism hover-video card */
.project-card--video {
  cursor: default;
}

.project-card__hover-video {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* Video card overlay — only shows on hover (same as image cards) */

.project-hero img,
.project-hero video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: unset;
}

.figure img {
  display: block;
  width: 100%;
  height: auto;
}

.figure video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  cursor: pointer;
}

.about-photo img {
  display: block;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
}

/* ------------------------------------------------------------
   Lazy Load
   ------------------------------------------------------------ */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

img.is-loaded {
  opacity: 1;
}

/* ------------------------------------------------------------
   Responsive — 768px Breakpoint
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  :root {
    --space-xl: 1.5rem;
    --space-2xl: 3rem;
    --space-3xl: 5rem;
    --nav-height: 56px;
  }

  .nav {
    padding: 0 var(--space-lg);
  }

  .nav__links {
    gap: var(--space-lg);
  }

  .hero__name {
    font-size: clamp(2.8rem, 11vw, 5rem);
  }

  .hero__logo {
    width: clamp(180px, 55vw, 280px);
  }

  .project-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  /* Figure grids: 2col → single col, 3col → 2 col */
  .figure-2col,
  .figure-mosaic {
    grid-template-columns: 1fr !important;
  }

  .figure-mosaic > *:first-child {
    grid-row: auto;
  }

  .figure-3col {
    grid-template-columns: 1fr 1fr !important;
  }

  .projects-section {
    padding: var(--space-2xl) var(--space-lg);
  }

  .project-header {
    padding: var(--space-xl) var(--space-lg) 0;
  }

  .project-header__title {
    font-size: var(--text-2xl);
  }

  .project-body {
    padding: 0 var(--space-lg) var(--space-2xl);
  }

  .project-nav {
    padding: var(--space-lg);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .project-nav__item--next {
    align-items: flex-start;
    text-align: left;
    align-self: flex-end;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-lg);
  }

  .about-photo {
    position: static;
    max-width: 220px;
  }

  .img-placeholder--portrait {
    max-width: 220px;
  }

  .about-header {
    padding: var(--space-xl) var(--space-lg) var(--space-lg);
  }

  .img-placeholder--hero {
    height: 45vw;
    min-height: 220px;
  }

  .img-placeholder--figure {
    height: 40vw;
    min-height: 200px;
  }

  .pull-quote {
    padding: var(--space-md) var(--space-md);
    margin: var(--space-lg) 0;
  }

  .project-header__meta {
    flex-direction: column;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  .nav__links {
    gap: var(--space-md);
  }

  .hero {
    padding-left: var(--space-lg);
    padding-right: var(--space-lg);
  }

  .hero__logo {
    width: 72vw;
    max-width: 240px;
  }

  /* All figure grids collapse to single column on small phones */
  .figure-2col,
  .figure-3col,
  .figure-mosaic {
    grid-template-columns: 1fr !important;
  }

  .figure-mosaic > *:first-child {
    grid-row: auto;
  }

  /* Project grid: single column on phones */
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-body {
    padding: 0 var(--space-md) var(--space-2xl);
  }

  .project-nav__item {
    max-width: 100%;
  }
}

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  cursor: zoom-out;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

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

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: default;
  transform: scale(0.96);
  transition: transform 0.25s var(--ease-out);
  box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

.lightbox.is-open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-xl);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox__close:hover {
  color: #fff;
}

/* Make project body images show pointer */
.project-body img,
.figure img,
.figure-2col img,
.figure-3col img,
.figure-mosaic img {
  cursor: zoom-in;
}
