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

:root {
  --black: #111111;
  --white: #f8f8f6;
  --grey:  #888888;
  --font:  Helvetica, Arial, sans-serif;
  --sans:  Helvetica, Arial, sans-serif;
  --gap:   2rem;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: default;
}

a,
.project-images img,
.project-hero {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%230066FF'/%3E%3C/svg%3E") 12 12, pointer;
}

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

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

/* ─── Navigation ───────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  padding-left:  max(2.5rem, calc((100% - 1200px) / 2 + 2.5rem));
  padding-right: max(2.5rem, calc((100% - 1200px) / 2 + 2.5rem));
}

nav .site-name {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  transition: opacity 0.2s;
}

nav ul li a:hover {
  opacity: 0.4;
}


/* ─── Slider ───────────────────────────────────────────────── */

/* Full-screen outer wrapper — centers the band vertically, slightly low */
.slider-outer {
  height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 8rem;   /* nav height + push below true center */
  padding-bottom: 2rem;
}

.slider {
  position: relative;
  width: 100%;
  height: 65vh;
  overflow: hidden;
  user-select: none;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* Each slide is 80% wide — leaves ~10% of adjacent slides peeking in */
.slide {
  flex: 0 0 80%;
  height: 100%;
  position: relative;
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}



/* Dots */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%230066FF'/%3E%3C/svg%3E") 12 12, pointer;
  transition: background 0.2s;
}

.dot.active {
  background: var(--white);
}

/* ─── Inner pages: shared layout ───────────────────────────── */
.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
}

/* ─── About page ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
  line-height: 1.3;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.2rem;
}

.about-text .contact {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.about-text .contact a {
  border-bottom: 1px solid var(--grey);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.about-text .contact a:hover {
  opacity: 0.5;
}

/* ─── Projects listing ─────────────────────────────────────── */
.projects-header {
  margin-bottom: 3rem;
}

.projects-header h2 {
  font-family: var(--font);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  font-style: italic;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px; /* tight grid with hair-thin gaps */
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ccc;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.project-card-info {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card-info h3 {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
  line-height: 1.2;
}

.project-card-info span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248,248,246,0.65);
  margin-top: 0.3rem;
}

/* ─── Single project page ──────────────────────────────────── */
.project-hero {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
  margin-bottom: 3rem;
}

/* push hero image below the fixed nav */
.project-hero-wrap {
  padding-top: 4rem;
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.project-sidebar {
  position: sticky;
  top: 5rem;
  order: -1;
}

.project-meta {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.project-meta span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
}

.project-body {
  margin-bottom: 0;
}

.project-body h1 {
  font-family: var(--font);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.project-body p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.2rem;
}

.project-images {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-images img {
  width: 100%;
  display: block;
}

.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.back-link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  border-bottom: 1px solid var(--grey);
  padding-bottom: 1px;
  display: inline-block;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.5;
}

.photo-credits {
  font-size: 0.75rem;
  color: var(--grey);
  text-align: right;
}

/* ─── Project link button ───────────────────────────────────── */
.project-link-btn {
  display: inline-block;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--black);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.project-link-btn:hover {
  background: var(--black);
  color: var(--white);
}

/* ─── Lightbox ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(248, 248, 246, 0.97);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 85vw;
  max-height: 85vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%230066FF'/%3E%3C/svg%3E") 12 12, pointer;
  color: var(--black);
  line-height: 1;
  font-weight: 300;
  transition: opacity 0.2s;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  background: none;
  border: none;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='%230066FF'/%3E%3C/svg%3E") 12 12, pointer;
  color: var(--black);
  padding: 1rem 1.5rem;
  line-height: 1;
  font-weight: 300;
  transition: opacity 0.2s;
}

.lightbox-prev { left: 0; }
.lightbox-next { right: 0; }

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover { opacity: 0.4; }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 1.2rem 1.5rem;
  }

  .page-wrap {
    padding: 6rem 1.5rem 4rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-image {
    order: -1;
  }

  .project-layout {
    grid-template-columns: 1fr;
  }

  .project-sidebar {
    position: static;
  }

  .landing-caption {
    left: 1.5rem;
    bottom: 2rem;
  }
}
