*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #0d0d0d;
  --paper: #f5f3ee;
  --muted: #7a7a72;
  --serif: 'EB Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}


.swiper {
  width: 100%;
  height: 100%;
  margin-bottom: 20px;
}

.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}


.swiper-slide {
  width: auto;
  height: 100%;

}

.swiper-slide img {
  max-width: 100vw;
  height: auto;
  display: block;
  max-height: 70vh;
}

.swiper-pagination,
.swiper-button-next,
.swiper-button-prev{
  color: white;
}

.swiper-pagination-bullet{
  background: rgba(255,255,255,0.8);
}
.swiper-pagination-bullet-active{
  background-color: white;
}

.swiper-button-prev,
.swiper-button-next{
  border: 1px solid white;
  padding: 1rem;
  background: black;
}

.swiper-wrapper{
  aspect-ratio: 16 / 10;
}

@media (min-width:768px) {
  .swiper-slide img {
    max-height: 600px;
    width: auto;
  }

  
  .swiper-wrapper{
    aspect-ratio: auto;
  }
}






.page {
  max-width: 1600px;
  margin: 0 auto;
}

header {
  padding: 4rem 4rem 3rem;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 2rem;
}

.name {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;

  small {
    font-size: 50%;
    opacity: 0.5;
  }
}

.tagline {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1rem;
}

.header-meta {
  text-align: right;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted);
  line-height: 2;
}

.header-meta a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0.5px solid var(--ink);
}

.bio {
  padding: 3rem 4rem;
  border-bottom: 1px solid var(--ink);
  background-color: var(--ink);
}

.bio p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--paper);
  opacity: 0.7;
  max-width: calc(1600px - 8rem);
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 2.5rem 4rem 0;
}

.project {
  border-bottom: 1px solid var(--ink);
  padding: 3rem 4rem;
}

.project-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.project-num {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.project-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.project-year {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.08em;

}

.project-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a3a35;
  max-width: 560px;
  margin-bottom: 2rem;
  font-family: var(--sans);
  font-weight: 300;
}

/* ── CARROUSEL ── */
.carousel-wrap {
  position: relative;
  user-select: none;
}

.carousel-track-outer {
  overflow: hidden;
  background: #1a1a18;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a18;
}

.carousel-slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /*filter: grayscale(100%) contrast(1.05);*/
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.9rem;
}

.carousel-arrows {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  background: none;
  border: 0.5px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-size: 14px;
}

.carousel-btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.carousel-btn:disabled {
  opacity: 0.2;
  cursor: default;
}

.carousel-btn:disabled:hover {
  background: none;
  color: var(--ink);
}

.carousel-counter {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c0bdb5;
  transition: background 0.25s, transform 0.25s;
  cursor: pointer;
}

.dot.active {
  background: var(--ink);
  transform: scale(1.3);
}

.carousel-caption {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.6rem;
}

footer {
  padding: 2.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-name {
  font-family: var(--serif);
  font-size: 0.9rem;
  font-style: italic;
  color: var(--muted);
}

.footer-contact {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0.5px solid var(--ink);
}

@media (max-width: 640px) {

  header,
  .bio,
  .project,
  .section-label,
  footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  header {
    grid-template-columns: 1fr;
  }

  .header-meta {
    text-align: left;
  }

  .project-header {
    grid-template-columns: auto 1fr;
  }
}