@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;500&display=swap');

:root {
  --dark: #3e3e3e;
  --mid: #9f9f9f;
  --light: #eeeeee;
  --line: #2f2f2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--dark);
  background: #fff;
  font-family: "Work Sans", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.18;
}

/* ======================
   HERO / CAROUSEL
====================== */

.hero {
  height: 100vh;
  min-height: 620px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 0 45px;
  overflow: hidden;
}

.site-logo {
  display: block;
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  margin: 0 auto 42px;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel {
  width: 100%;
  max-width: 100vw;
  flex: 1;
  position: relative;
  min-height: 0;
}

.slide {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.slide.is-active {
  display: flex;
}

.figure-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

/* ======================
   PLACEHOLDER FIGURES
====================== */

.placeholder {
  position: relative;
  background: #f2f2f2;
  overflow: hidden;
  filter: contrast(0.94);
  background-image:
    radial-gradient(circle at 14% 23%, rgba(0, 0, 0, 0.035) 0 1px, transparent 1px),
    radial-gradient(circle at 67% 78%, rgba(0, 0, 0, 0.03) 0 1px, transparent 1px),
    radial-gradient(circle at 44% 52%, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px);
  background-size: 4px 4px, 5px 5px, 6px 6px;
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 2px solid var(--line);
}

.placeholder::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 2px solid var(--line);
  background:
    linear-gradient(
      to top right,
      transparent 49.85%,
      #bdbdbd 50%,
      transparent 50.15%
    );
}

.placeholder-inner span {
  position: absolute;
  z-index: 2;
  left: 14%;
  bottom: 13%;
  font-family: Arial, sans-serif;
  font-size: 10px;
  color: #444;
}

/* Main project cover */

.project-cover.placeholder-wide {
  display: block;
  width: auto;
  height: auto;
  max-width: min(760px, 80vw);
  max-height: calc(100vh - 245px);
  object-fit: contain;
  background: transparent;
  filter: none;
  flex-shrink: 1;
}

/* Placeholder dimensions for projects without images */

.placeholder-wide {
  width: clamp(420px, 45vw, 760px);
  height: clamp(345px, 37vw, 620px);
}

.placeholder-tall {
  width: clamp(300px, 28vw, 470px);
  height: clamp(420px, 48vw, 620px);
}

.placeholder-small-wide {
  width: clamp(380px, 40vw, 590px);
  height: clamp(300px, 32vw, 620px);
}

/* Project-index cover */

.project-cover.thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  filter: none;
}

.caption {
  margin: 13px 0 0;
  min-height: 40px;
  color: var(--mid);
  text-align: center;
  font-size: 15px;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

/* ======================
   ARROWS
====================== */

.hero > .nav-arrow {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  position: absolute !important;
  top: 50% !important;
  bottom: auto !important;
  width: 70px;
  height: 70px;
  transform: translateY(-50%) !important;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero:hover > .nav-arrow {
  opacity: 1;
}

.hero > .nav-arrow-left {
  left: clamp(30px, 10vw, 160px) !important;
  right: auto !important;
}

.hero > .nav-arrow-right {
  right: clamp(30px, 10vw, 160px) !important;
  left: auto !important;
}

.nav-arrow span {
  display: block;
  width: 25px;
  height: 25px;
  border-top: 4px solid #222;
  border-left: 4px solid #222;
}

.nav-arrow-left span {
  transform: rotate(-45deg);
}

.nav-arrow-right span {
  transform: rotate(135deg);
}

.hero > .down-arrow {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  top: auto !important;
  bottom: 16px !important;
  width: 14px;
  height: 14px;
  border-right: 1.5px solid #333;
  border-bottom: 1.5px solid #333;
  transform: translateX(-50%) rotate(45deg) !important;
  z-index: 20;
}

/* ======================
   INFORMATION SECTION
====================== */

.information {
  min-height: 100vh;
  padding: 25px 8vw 110px;
  position: relative;
  overflow: hidden;
}

h2 {
  margin: 0 0 64px;
  text-align: center;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  font-size: 48px;
  line-height: 1;
  color: var(--dark);
  letter-spacing: -0.03em;
}

.info-grid {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 34px;
  align-items: start;
}

.index-left {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 150px;
  color: var(--mid);
}

.profile-copy {
  max-width: 805px;
}

.profile-copy p {
  font-family: "Work Sans", sans-serif;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 300;
  margin: 0 0 24px;
  color: #3d3d3d;
}

.bottom-meta {
  margin-top: 30px;
  margin-bottom: 25px;
}

.profile-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30px;
}

.profile-photo {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ======================
   FIGURE INDEX
====================== */

.figure-index {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 1.5vw, 18px);
  max-width: 100%;
  overflow: hidden;
}

.figure-index {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1vw, 14px);
}

.figure-index figcaption {
  margin-top: 8px;
  font-size: 14px;
}

.thumb-square {
  width: clamp(95px, 10vw, 165px);
  height: clamp(95px, 10vw, 165px);
}

.thumb-tall {
  width: clamp(110px, 11vw, 180px);
  height: clamp(175px, 18vw, 290px);
}

.thumb-wide {
  width: clamp(120px, 13vw, 210px);
  height: clamp(75px, 8vw, 130px);
}

/* ======================
   CLICKABLE BOOKS
====================== */

.project-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.project-link:hover {
  opacity: 0.85;
}

.project-link figcaption {
  color: var(--mid);
}

.figure-link .placeholder {
  transition: opacity 0.2s ease;
}

.figure-link:hover .placeholder {
  opacity: 0.92;
}

.figure-link:hover .caption {
  color: #666;
}

/* ======================
   MOBILE
====================== */

@media (max-width: 900px) {
  .site-logo {
    width: 190px !important;
    max-width: 190px !important;
    margin-bottom: 30px;
  }

  .project-cover.placeholder-wide {
    max-width: min(760px, 74vw);
    max-height: calc(100vh - 215px);
  }

  .hero > .nav-arrow-left {
    left: 22px !important;
  }

  .hero > .nav-arrow-right {
    right: 22px !important;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 42px;
  }

  .figure-index {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 560px;
    padding: 22px 0 42px;
  }

  .site-logo {
    width: 155px !important;
    max-width: 155px !important;
    margin-bottom: 24px;
  }

  .project-cover.placeholder-wide {
    max-width: 72vw;
    max-height: calc(100vh - 180px);
  }

  .hero > .nav-arrow {
    width: 48px;
    height: 48px;
  }

  .hero > .nav-arrow-left {
    left: 8px !important;
  }

  .hero > .nav-arrow-right {
    right: 8px !important;
  }

  .nav-arrow span {
    width: 19px;
    height: 19px;
    border-top-width: 3px;
    border-left-width: 3px;
  }
}

/* ======================
   CONTACT ME
====================== */

.contact-label {
  color: #9f9f9f;
  font-weight: 500;
  margin-bottom: 3px;
  font-size: 16px;
}

.contact-value {
  margin-bottom: 18px;
}