:root {
  --bg: #f5f3ef;
  --ink: #1c1b19;
  --muted: #5e5b55;
  --accent: #6f7a76;
  --card: #fbfaf7;
  --border: #ded9d1;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(160deg, #f7f6f2 0%, #f1f0ec 100%);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 32px 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.title-with-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.title-with-badge .title-text {
  display: inline-block;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-left: 10px;
  border-radius: 999px;
  background: #dde7e2;
  border: 1px solid #c9d6cf;
  color: #596660;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0 28px;
  display: grid;
  gap: 6px;
}

.lead p {
  margin: 0;
}

.link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.link-row a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.link-row a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.divider {
  color: var(--border);
}


main {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding-top: 50px;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  animation: fadeRise 0.6s ease both;
  animation-delay: var(--delay, 0ms);
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-header {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.project-meta {
  margin: 0;
  color: var(--accent);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.project-description {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.project-notes {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  display: grid;
  gap: 10px;
}

.project-notes li {
  margin: 0;
}

.maker-intro {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.maker-intro:last-of-type {
  margin-bottom: 24px;
}

.ai-note {
  margin: 0 0 22px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f0eee9;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.media-grid.media-grid-video {
  margin-top: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.media-grid-2x2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-grid.media-grid-video > .media-shot:only-child {
  grid-column: 1 / -1;
}

.media-tile {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, #f3f1ec 0%, #ece9e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7f7b74;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.media-tile {
  aspect-ratio: 4 / 3;
}

.media-shot {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(140deg, #f3f1ec 0%, #ece9e3 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-shot.landscape {
  aspect-ratio: 16 / 9;
}

.media-shot.portrait {
  aspect-ratio: 9 / 16;
}

.media-shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

body.is-locked {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 18, 0.55);
}

.lightbox-shell {
  position: relative;
  z-index: 1;
  width: 90vw;
  height: 90vh;
  background: #f7f5f0;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 18px 18px 14px;
}

.lightbox-stage {
  flex: 1;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f1eee8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  transform-origin: center;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.lightbox-stage img.is-dragging {
  cursor: grabbing;
}

.lightbox-close {
  align-self: flex-end;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
  margin-bottom: 12px;
}

.lightbox-close:hover {
  color: var(--ink);
  border-color: var(--accent);
}

.video-embed {
  width: 100%;
  height: 100%;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}


.footer {
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 700px) {
  .page {
    padding: 48px 20px 70px;
  }

  .media-grid.media-grid-video {
    grid-template-columns: 1fr;
  }

  .media-grid.media-grid-2x2 {
    grid-template-columns: 1fr;
  }


  .link-row {
    flex-wrap: wrap;
  }

  .project-card {
    padding: 22px;
  }
}
