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

:root {
  --font-heading: 'Syne', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-primary: #0d0d0f;
  --bg-surface: #151518;
  --bg-surface-hover: #1c1c21;
  --text-primary: #f7f7f9;
  --text-muted: #b4b4be;
  --border-subtle: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.36);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 5%;
  border-bottom: 1px solid var(--border-subtle);
}

header.home-header {
  justify-content: center;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
}

main {
  flex: 1;
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 3.5rem 0 4.5rem;
}

main.home-main {
  width: 94%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 2.75rem 0 4.5rem;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
}

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

footer {
  padding: 1.75rem 5%;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Centered Homepage Hero */
.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0 4rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 4rem;
}

.hero-centered h1 {
  font-size: clamp(3.75rem, 8.5vw, 6.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-eyebrow,
.page-eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.15vw, 0.92rem);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.hero-eyebrow {
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.page-eyebrow {
  display: block;
  margin-bottom: 0.65rem;
}

.hero-bio {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--text-muted);
  max-width: 58ch;
}

/* 3-Column Equal-Spaced Process Timelapse Triptych */
.timelapse-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.timelapse-triptych video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}

.btn-primary {
  display: inline-block;
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Subpage Header */
.page-header {
  margin-bottom: 2.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header-centered {
  text-align: center;
  margin-bottom: 2.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.22;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.08rem;
  margin-top: 0.15rem;
}

/* Responsive Artwork Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 1.85rem;
}

.gallery-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease,
              box-shadow 0.28s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.72);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* 3D Page-Flip Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  perspective: 1600px;
}

.lightbox-content img {
  max-height: 75vh;
  width: auto;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8);
  transform-origin: left center;
  backface-visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.lightbox-content img.flip-next-out {
  transform: rotateY(-75deg) scale(0.96);
  opacity: 0;
}

.lightbox-content img.flip-prev-out {
  transform: rotateY(75deg) scale(0.96);
  opacity: 0;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.lightbox-meta {
  text-align: center;
}

.lightbox-caption {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
}

.lightbox-hint {