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

/* ─── Variables ──────────────────────────────────── */
:root {
  --background: #ffffff;
  --foreground: #111111;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e6e6e6;
  --primary: #000000;
  --primary-foreground: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── Typography classes ─────────────────────────── */
.font-serif-display {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.font-sans-ui {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 400;
}

/* ─── Nav Link ───────────────────────────────────── */
.nav-link {
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
  display: inline-block;
}

.nav-link:hover {
  opacity: 1;
  transform: translateX(4px);
}

.nav-link.active {
  opacity: 1;
}

/* ─── Image Container ────────────────────────────── */
.image-container {
  position: relative;
  overflow: hidden;
  background-color: var(--muted);
}

.image-container img {
  transition: filter 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.6s ease;
}

.image-container:hover img {
  filter: brightness(1.05);
}

/* ─── Shimmer ────────────────────────────────────── */
.shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg,
      var(--muted) 25%,
      rgba(115, 115, 115, 0.08) 50%,
      var(--muted) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ─── Section Padding ────────────────────────────── */
.section-padding {
  padding: 15vh 1.5rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 15vh 6rem;
  }
}

/* ─── Header ─────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .header-inner {
    padding: 2rem;
  }
}

.logo {
  font-size: 1.25rem;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .logo {
    font-size: 1.5rem;
  }
}

nav.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  pointer-events: auto;
}

@media (min-width: 768px) {
  nav.desktop-nav {
    display: flex;
  }
}

#menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--foreground);
  opacity: 0.6;
  transition: opacity 0.3s;
}

#menu-toggle:hover {
  opacity: 1;
}

@media (min-width: 768px) {
  #menu-toggle {
    display: none;
  }
}

/* ─── Mobile Menu ────────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu a {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

#mobile-menu.open a:nth-child(1) {
  transition-delay: 0s;
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open a:nth-child(2) {
  transition-delay: 0.1s;
  opacity: 1;
  transform: translateY(0);
}

#mobile-menu.open a:nth-child(3) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

/* ─── Scroll Reveal ──────────────────────────────── */
.reveal-image {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-image.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── HERO SECTION ───────────────────────────────── */
.hero-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.5rem 3rem;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 2rem 2rem 4rem;
  }
}

/* 
  Hero title: match the print exactly.
  Cormorant Garamond at huge size — 5rem mobile, 8–9rem desktop.
  The text must animate up from below on load.
*/
.hero-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  font-size: clamp(3.5rem, 11vw, 9rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 56rem;
  color: var(--foreground);
  /* start state */
  opacity: 0;
  transform: translateY(30px);
  /* animation fires via JS adding .animate */
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0.2s;
}

.hero-title.animate {
  opacity: 1;
  transform: translateY(0);
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
}

.hero-year {
  margin-top: 1.5rem;
  color: var(--muted-foreground);
  /* start state */
  opacity: 0;
  transition: opacity 0.8s ease;
  transition-delay: 0.65s;
}

.hero-year.animate {
  opacity: 1;
}

/* ─── Featured / Work sections ───────────────────── */
.featured-section {
  padding: 0 1.5rem;
}

@media (min-width: 768px) {
  .featured-section {
    padding: 0 2rem;
  }
}

.project-link {
  display: block;
  margin-bottom: 20vh;
}

.project-meta {
  margin-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.work-grid {
  display: flex;
  flex-direction: column;
  gap: 15vh;
}

.project-title {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-style: italic;
  font-weight: 300;
}

/* ─── Project Detail ─────────────────────────────── */
.project-hero-img {
  width: 100%;
  height: 100svh;
  object-fit: cover;
}

.image-series {
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 10vh;
}

@media (min-width: 768px) {
  .image-series {
    padding: 0 2rem;
  }
}

.image-counter {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
  text-align: right;
}

/* ─── About ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
}

.about-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-col p {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin-top: 1.5rem;
}

.about-text-col p:first-of-type {
  margin-top: 0;
}

.about-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ─── Contact ────────────────────────────────────── */
.contact-form {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 36rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--muted-foreground);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--foreground);
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--foreground);
}

.contact-email-link {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(115, 115, 115, 0.3);
  transition: text-decoration-color 0.3s;
}

.contact-email-link:hover {
  text-decoration-color: var(--foreground);
}

.contact-social {
  display: flex;
  gap: 1.5rem;
  margin-top: 6rem;
}

.success-message {
  display: none;
  margin-top: 4rem;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlideIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.success-message.show {
  display: block;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Footer ─────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .site-footer {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

/* ─── CTA ────────────────────────────────────────── */
.cta-section {
  text-align: center;
}

.cta-link {
  display: inline-block;
  border-bottom: 1px solid var(--foreground);
  padding-bottom: 0.25rem;
  letter-spacing: 0.2em;
}

/* ─── 404 ────────────────────────────────────────── */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--muted);
  text-align: center;
}

.not-found h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.not-found a {
  text-decoration: underline;
}

/* ─── Page top padding (below fixed nav) ─────────── */
.page-top {
  padding-top: 8rem;
}

@media (min-width: 768px) {
  .page-top {
    padding-top: 10rem;
  }
}

/* ─── Helpers ────────────────────────────────────── */
.text-muted {
  color: var(--muted-foreground);
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.w-full {
  width: 100%;
}

/* Staggered width helpers (desktop only) */
@media (min-width: 768px) {
  .md-w-75 {
    width: 75%;
  }

  .md-w-70 {
    width: 70%;
  }

  .md-w-65 {
    width: 65%;
  }

  .md-w-60 {
    width: 60%;
  }

  .md-w-55 {
    width: 55%;
  }

  .md-w-50 {
    width: 50%;
  }

  .md-w-45 {
    width: 45%;
  }

  .md-w-40 {
    width: 40%;
  }

  .md-w-2-3 {
    width: 66.666%;
  }

  .md-w-half {
    width: 50%;
  }

  .md-w-80pct {
    width: 80%;
  }

  .md-ml-auto {
    margin-left: auto;
  }

  .md-ml-10 {
    margin-left: 10%;
  }

  .md-ml-15 {
    margin-left: 15%;
  }

  .md-ml-8 {
    margin-left: 8%;
  }

  .md-h-80vh {
    height: 80vh;
  }

  .md-h-70vh {
    height: 70vh;
  }
}

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