:root {
  --olivewood: #210706;
  --tuscan: #891D1A;
  --slate: #5E657B;
  --cream: #F1E6D2;
  --text: #210706;
}

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

body {
  font-family: 'Work Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(241, 230, 210, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  text-decoration: none;
}

.logo {
  display: inline-block;
  position: relative;
  font-family: 'Playwrite ES', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--olivewood);
  cursor: pointer;
  transition: color 0.3s ease;
}

.logo::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--tuscan);
  transition: width 0.3s ease;
}

.logo-link:hover .logo {
  color: var(--tuscan);
}

.logo-link:hover .logo::after {
  width: 100%;
}

.nav-links a {
  font-family: 'Playwrite ES', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--olivewood);
  text-decoration: none;
  margin-left: 20px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--tuscan);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--tuscan);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Homepage */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  background: linear-gradient(160deg, var(--cream) 0%, rgba(241, 230, 210, 0.5) 100%);
}

.hero-content {
  max-width: 700px;
  color: var(--olivewood);
}

.hero .eyebrow {
  color: var(--slate);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: 'Playwrite ES', serif;
  font-size: 64px;
  color: var(--tuscan);
  margin: 12px 0;
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
}

.hero-name-link {
  text-decoration: none;
  color: var(--tuscan);
  display: inline-block;
  transition: color 0.3s ease, transform 0.3s ease;
}

.hero-name-link:hover {
  color: var(--olivewood);
  transform: scale(1.05);
}

.hero-name-link:active {
  transform: scale(1.1);
}

.project-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  overflow: hidden;
}

.project-split.reverse {
  direction: rtl;
}

.project-split.reverse .text-side {
  direction: ltr;
}

.image-side {
  background-size: cover;
  background-position: center;
  transition: transform 1s ease;
}

.project-split:hover .image-side {
  transform: scale(1.05);
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1s ease;
}

.project-split:hover .image-side img {
  transform: scale(1.05);
}

.text-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  transition: background-color 0.6s ease;
}

.text-side a {
  text-decoration: none;
  max-width: 480px;
  transition: transform 0.4s ease;
}

.text-side a:hover {
  transform: translateY(-6px);
}

.text-side h2 {
  font-family: 'Playwrite ES', serif;
  font-size: 44px;
  margin: 10px 0;
}

.text-side p {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  font-weight: 600;
  text-decoration: underline;
}

.color-cream {
  background: var(--cream);
  color: var(--olivewood);
}

.color-tuscan {
  background: var(--tuscan);
  color: var(--cream);
}

.color-slate {
  background: var(--slate);
  color: var(--cream);
}

.color-olivewood {
  background: var(--olivewood);
  color: var(--cream);
}

.text-side.color-tuscan a,
.text-side.color-slate a,
.text-side.color-olivewood a {
  color: var(--cream);
}

.text-side.color-cream a {
  color: var(--olivewood);
}

.text-side.color-tuscan .read-more,
.text-side.color-slate .read-more,
.text-side.color-olivewood .read-more {
  color: var(--cream);
  opacity: 0.9;
}

.text-side.color-cream .read-more {
  color: var(--slate);
}

.footer {
  text-align: center;
  padding: 60px 0;
  color: var(--olivewood);
  background: linear-gradient(180deg, rgba(241, 230, 210, 0.8), var(--cream));
  font-weight: 500;
}

/* Shared animation */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(.2, .9, .3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Project pages */
.project-page {
  background: var(--cream);
  color: var(--olivewood);
}

.project-hero {
  min-height: 56vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 80px 6vw;
  position: relative;
}

.project-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.02));
}

.project-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: var(--cream);
}

.project-hero-inner h1 {
  font-family: 'Playwrite ES', serif;
  font-size: 56px;
  color: var(--olivewood);
  margin: 12px 0;
}

.project-hero-inner .lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--olivewood);
}

.project-sticky-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding: 80px 24px 40px;
  position: relative;
}

.scroll-gallery {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.scroll-gallery figure {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.4s ease;
}

.scroll-gallery figure:hover {
  transform: scale(1.02);
}

.scroll-gallery img,
.scroll-gallery video {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.sticky-text {
  flex: 0 0 48%;
  position: sticky;
  top: 120px;
  align-self: flex-start;
}

.sticky-inner {
  background: linear-gradient(180deg, rgba(241, 230, 210, 0.97), rgba(241, 230, 210, 0.9));
  padding: 32px 28px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sticky-inner h2 {
  font-family: 'Playwrite ES', serif;
  color: var(--tuscan);
  font-size: 34px;
  margin-bottom: 16px;
}

.sticky-inner p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--olivewood);
}

.sticky-inner a {
  color: var(--tuscan);
}

.sticky-inner a:hover {
  color: #891D1A;
}

/* Old scroll layout keep */
.project-scroll-layout {
  display: flex;
  position: relative;
  min-height: 200vh;
  background: var(--cream);
}

.scroll-images {
  width: 50%;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.scroll-images img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.scroll-images img.active {
  opacity: 1;
}

.scroll-text {
  width: 50%;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 18px;
  line-height: 1.7;
}

.scroll-text h2 {
  font-family: 'Playwrite ES', serif;
  font-size: 36px;
  color: var(--tuscan);
  margin-bottom: 20px;
}

/* Process */
.process-section {
  padding: 40px 0 100px;
  background: var(--cream);
  overflow: hidden;
}

.process-header {
  padding: 0 24px 24px;
}

.process-header h2 {
  font-family: 'Playwrite ES', serif;
  color: var(--tuscan);
  font-size: 34px;
}

.process-strip {
  overflow: hidden;
  width: 100%;
}

.process-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: process-scroll 28s linear infinite;
  will-change: transform;
}

.process-track.paused {
  animation-play-state: paused;
}

.process-card {
  flex: 0 0 auto;
  width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.process-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

@keyframes process-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.back-button-container {
  text-align: center;
  margin: 60px 0;
}

.back-button {
  display: inline-block;
  padding: 14px 28px;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Playwrite ES', serif;
  color: var(--cream);
  background-color: var(--tuscan);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
  background-color: var(--olivewood);
  transform: scale(1.05);
}

.project-footer {
  text-align: center;
  padding: 60px 0;
  background: var(--cream);
  overflow: hidden;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s ease forwards;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s ease forwards;
}

.lightbox.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* About page */
.about-page {
  background: var(--cream);
  color: var(--olivewood);
  padding-top: 100px;
}

.about-hero {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 60px;
  text-align: center;
  padding: 0 24px;
}

.about-hero p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--olivewood);
}

.about-label {
  font-family: 'Playwrite ES', serif;
  font-size: clamp(70px, 10vw, 140px);
  font-weight: 700;
  color: var(--tuscan);
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0;
}

.about-label span {
  display: inline-block;
  transform-origin: center bottom;
}

.about-label span:hover {
  animation: rubber-letter 0.6s ease;
}

@keyframes rubber-letter {
  0% { transform: scale3d(1, 1, 1); }
  30% { transform: scale3d(1.55, 0.68, 1); }
  40% { transform: scale3d(0.78, 1.2, 1); }
  55% { transform: scale3d(1.22, 0.85, 1); }
  70% { transform: scale3d(0.92, 1.05, 1); }
  80% { transform: scale3d(1.05, 0.95, 1); }
  100% { transform: scale3d(1, 1, 1); }
}

.about-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  margin: 0;
  padding: 0 24px;
}

.about-text {
  flex: 1;
  padding-left: 0;
  margin-top: 120px;
}

.about-text h2 {
  font-family: 'Playwrite ES', serif;
  font-size: 36px;
  color: var(--tuscan);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--olivewood);
}

.about-photo {
  flex: 0 0 auto;
  margin-top: -410px;
  margin-left: auto;
  display: flex;
  justify-content: flex-end;
}

.about-photo img {
  width: 30vw;
  max-width: 430px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.about-contact-buttons {
  display: flex;
  gap: 16px;
  margin-top: -150px;
  justify-content: center;
  flex-wrap: wrap;
}

.about-contact-button {
  display: inline-block;
  padding: 12px 20px;
  background: var(--tuscan);
  color: var(--cream);
  text-decoration: none;
  border-radius: 999px;
  font-family: 'Playwrite ES', serif;
  font-size: 18px;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.about-contact-button:hover {
  transform: scale(1.05);
  background: var(--olivewood);
}

/* Photo story */
.photo-story {
  padding: 120px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.camera-photo-wrap {
  position: relative;
  width: fit-content;
  margin-bottom: 48px;
}

.camera-photo {
  width: min(520px, 88vw);
  display: block;
  border-radius: 18px;
}

.camera-hotspot {
  position: absolute;
  top: 44%;
  left: 36%;
  width: 21%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.camera-icon {
  width: 100%;
  display: block;
  transition: transform 0.25s ease;
}

.camera-hotspot:hover .camera-icon {
  transform: scale(1.14);
}

.photo-masonry {
  column-count: 3;
  column-gap: 18px;
  max-width: 1100px;
  width: 100%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease;
}

.photo-masonry.active {
  opacity: 1;
  max-height: 5000px;
}

.photo-masonry img {
  width: 100%;
  margin-bottom: 18px;
  display: block;
  border-radius: 16px;
  break-inside: avoid;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

/* Responsive */
@media (max-width: 900px) {
  .project-split,
  .project-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    min-height: auto;
  }

  .text-side {
    padding: 40px 20px;
  }

  .text-side h2 {
    font-size: 32px;
  }

  .project-scroll-layout {
    flex-direction: column;
  }

  .scroll-images,
  .scroll-text {
    width: 100%;
    position: relative;
  }

  .scroll-images img {
    position: relative;
    height: 70vh;
  }

  .project-sticky-layout {
    flex-direction: column;
    gap: 24px;
    padding: 40px 16px;
  }

  .scroll-gallery {
    width: 100%;
    gap: 24px;
  }

  .sticky-text {
    position: relative;
    top: auto;
    width: 100%;
    max-width: 100%;
    flex: none;
    display: block;
  }

  .sticky-inner {
    position: relative;
    top: auto;
    width: 100%;
    display: block;
    padding: 24px 20px;
  }

  .process-header {
    padding: 0 16px 20px;
  }

  .process-card {
    width: 280px;
  }

  .process-card img {
    height: 200px;
  }

  .about-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 0 16px;
  }

  .about-text {
    width: 100%;
    margin-top: 0;
    text-align: center;
  }

  .about-photo {
    width: 100%;
    margin-top: 0;
    margin-left: 0;
    justify-content: center;
  }

  .about-photo img {
    width: min(84vw, 320px);
    max-width: 320px;
  }

  .about-contact-buttons {
    margin-top: 20px;
    justify-content: center;
  }

  .photo-story {
    padding: 80px 16px;
  }

  .camera-photo-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .camera-photo {
    width: min(92vw, 360px);
    max-width: 360px;
  }

  .photo-masonry {
    width: 100%;
    column-count: 2;
    column-gap: 12px;
  }

  .photo-masonry img {
    margin-bottom: 12px;
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    padding: 12px 16px;
  }

  .logo,
  .nav-links a {
    font-size: 16px;
  }

  .hero {
    padding: 0 16px;
  }

  .hero h1,
  .project-hero-inner h1 {
    font-size: 36px;
  }

  .hero p,
  .about-hero p {
    font-size: 18px;
    line-height: 1.6;
  }

  .about-label {
    font-size: clamp(42px, 14vw, 72px);
    line-height: 1;
    margin-bottom: 16px;
  }

  .project-hero {
    min-height: 40vh;
    padding: 100px 16px 32px;
  }

  .project-hero-inner {
    max-width: 100%;
  }

  .project-hero-inner .lead {
    font-size: 18px;
  }

  .sticky-inner h2 {
    font-size: 28px;
  }

  .sticky-inner p {
    font-size: 16px;
    line-height: 1.7;
  }

  .process-section {
    padding: 32px 0 60px;
  }

  .process-header h2 {
    font-size: 28px;
  }

  .process-card {
    width: 260px;
  }

  .process-card img {
    height: 180px;
  }

  .about-text h2 {
    font-size: 30px;
  }

  .about-text p {
    font-size: 16px;
    line-height: 1.7;
  }

  .about-contact-button,
  .back-button {
    font-size: 16px;
    padding: 10px 16px;
  }
}

@media (max-width: 480px) {
  .logo,
  .nav-links a {
    font-size: 14px;
  }

  .hero h1,
  .project-hero-inner h1 {
    font-size: 30px;
  }

  .about-label {
    font-size: clamp(34px, 13vw, 56px);
  }

  .hero p,
  .about-hero p,
  .about-text p,
  .sticky-inner p {
    font-size: 16px;
    line-height: 1.6;
  }

  .photo-masonry {
    column-count: 1;
  }

  .about-photo img {
    width: min(84vw, 280px);
  }

  .camera-photo {
    width: min(92vw, 320px);
  }

  .process-card {
    width: 220px;
  }

  .process-card img {
    height: 160px;
  }
}
