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

:root {
  --bg: #edeee8;
  --text: #153e10;
  --menu-size: 58px;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow: hidden;
}

/* inter-300 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/inter-v20-latin-300.woff2") format("woff2");
}
/* inter-300italic - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 300;
  src: url("../fonts/inter-v20-latin-300italic.woff2") format("woff2");
}
/* inter-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-v20-latin-regular.woff2") format("woff2");
}
/* inter-italic - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 400;
  src: url("../fonts/inter-v20-latin-italic.woff2") format("woff2");
}
/* inter-500 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/inter-v20-latin-500.woff2") format("woff2");
}
/* inter-500italic - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 500;
  src: url("../fonts/inter-v20-latin-500italic.woff2") format("woff2");
}
/* inter-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/inter-v20-latin-600.woff2") format("woff2");
}
/* inter-600italic - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 600;
  src: url("../fonts/inter-v20-latin-600italic.woff2") format("woff2");
}
/* inter-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/inter-v20-latin-700.woff2") format("woff2");
}
/* inter-700italic - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/inter-v20-latin-700italic.woff2") format("woff2");
}
/* inter-800 - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  src: url("../fonts/inter-v20-latin-800.woff2") format("woff2");
}
/* inter-800italic - latin */
@font-face {
  font-display: swap;
  font-family: "Inter";
  font-style: italic;
  font-weight: 800;
  src: url("../fonts/inter-v20-latin-800italic.woff2") format("woff2");
}
.site {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* LEFT SIDE */

.left {
  position: fixed;
  inset: 0 auto 0 0;
  width: 43%;
  height: 100vh;
  overflow: hidden;
  background: #edeee8;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: translateY(6%) scale(1.05);
  opacity: 0;
  transition:
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.2s ease;
  will-change: transform, opacity;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  z-index: 2;
}

.slide.exit {
  transform: translateY(-6%) scale(1.02);
  opacity: 0;
  z-index: 3;
}
.bio-image picture,
.bio-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.bio-image img {
  object-fit: cover;
  object-position: center;
}
/* RIGHT SIDE */

.right {
  position: relative;
  margin-left: 43%;
  width: 57%;
  height: 100vh;
  overflow-y: auto;
  background: var(--bg);
}

.content {
  min-height: 100%;
  padding: 64px 120px 48px;
}

.hero {
  padding-top: 24px;
  margin-bottom: clamp(32px, 5vw, 64px);
}
.home .hero {
  padding-top: 20vh;
}

h1 {
  font-size: clamp(3rem, 5vw, 6rem);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.06em;
  margin-bottom: 36px;
}

.site:not(.home) h1 {
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.2;
  font-weight: 400;
}

.section-title {
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 400;
  margin-bottom: 1rem;
  margin-top: 4rem;
}

.subtitle {
  font-size: clamp(1.2rem, 1.6vw, 1.6rem);
  line-height: 1.25;
  max-width: 30rem;
  margin-top: 2rem;
  font-weight: 400;
}

ul {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

li {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 6px;
}

.intro {
  max-width: 36rem;
  margin-top: clamp(32px, 6vh, 80px);
  font-size: 1.05rem;
  line-height: 1.5;
}

.intro p:not(:last-child) {
  margin-bottom: 28px;
}

.image-note {
  margin-top: clamp(32px, 3vw, 64px);
  font-size: 0.85rem;
  font-weight: 400;
}

.image-note a,
.image-note a:visited {
  color: #153e10;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.image-note a:hover {
  color: #638260;
  border-bottom-color: #638260;
}

.contact-email {
  margin-bottom: 16px;
}

.contact-email a.link-underline,
.contact-email a.link-underline:visited {
  color: #153e10;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact-email a.link-underline:hover {
  color: #638260;
  border-bottom-color: #638260;
}

.footer {
  margin-top: 380px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 48px;
}

.footer a,
.menu-panel a {
  color: var(--text);
  text-decoration: none;
}

.footer a:hover,
.menu-panel a:hover {
  opacity: 0.7;
}

/* MENU BUTTON */

.menu-btn {
  position: fixed;
  top: 28px;
  right: 38px;
  width: var(--menu-size);
  height: var(--menu-size);
  border-radius: 999px;
  border: 1px solid var(--text);
  background: rgba(239, 239, 233, 0.9);
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition:
    transform 250ms ease,
    opacity 250ms ease;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* MENU PANEL */

.menu-panel {
  position: fixed;
  top: 0;
  left: 43%;
  width: 57%;
  height: 100vh;
  background: rgba(239, 239, 233, 0.98);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 120px;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.menu-panel.open {
  transform: translateX(0);
}

.menu-panel a {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: clamp(1.2rem, 2vw, 2.2rem);
  line-height: 1;
  font-weight: 400;
}

.menu-panel a::before {
  content: "";
  display: block;
  width: 1em;
  height: 1em;
  background: url("media/arrow.svg") no-repeat center;
  background-size: contain;
  flex-shrink: 0;
  opacity: 0.7;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.menu-panel a.is-active::before {
  transform: scaleX(-1) translateX(-4px);
}
.menu-panel a.is-active {
  opacity: 0.7;
}

/* GALLERY LAYOUT */

.gallery-layout {
  display: block;
}

.gallery-layout .left {
  display: none;
}

.gallery-layout .right {
  margin-left: 0;
  width: 100%;
  height: 100vh;
}

.gallery-layout .content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 72px 48px;
}

.gallery-layout .hero {
  padding-top: 40px;
  margin-bottom: 40px;
}

/* GALLERY */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
  margin-top: 48px;
}

.gallery-grid figure {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--text);
}

/* RESPONSIVE */

@media (max-width: 1024px) {
  .menu-btn {
    background: rgba(239, 239, 233, 0.9);
    backdrop-filter: blur(6px);
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .site {
    display: block;
    height: auto;
  }

  .left {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(260px, 35vh, 420px);
    overflow: hidden;
  }
  .bio-image.left {
    height: auto;
  }

  .bio-image picture,
  .bio-image img {
    width: 100%;
    height: auto;
  }

  .bio-image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
  }
  .right {
    margin-left: 0;
    width: 100%;
    height: auto;
    overflow: visible;
  }

  .content {
    padding: 16px 36px 36px;
  }

  .hero {
    padding-top: 24px;
    margin-bottom: 24px;
  }

  .intro {
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.05;
    margin-bottom: 20px;
  }

  .site:not(.home) h1 {
    font-size: 1.9rem;
    line-height: 1.1;
  }

  .subtitle {
    font-size: 1.1rem;
    line-height: 1.3;
    max-width: 22rem;
  }

  .menu-btn {
    top: 20px;
    right: 20px;
  }

  .menu-panel {
    left: 0;
    width: 100%;
    justify-content: flex-start;
    padding: 140px 24px 24px;
    gap: 28px;
  }

  .menu-panel a {
    font-size: 1.35rem;
    line-height: 1.1;
    gap: 12px;
  }

  .site.home .content {
    padding: 20px 24px 36px;
  }

  .site.home .hero {
    padding-top: 0;
    margin-bottom: 40px;
  }

  .gallery-layout .right {
    height: auto;
  }

  .gallery-layout .content {
    padding: 24px 24px 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
  }
}
