:root {
  --paper: #ffffff;
  --ink: #303030;
  --soft: #8e8e8e;
  --line: #494949;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", serif;
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.canvas {
  position: sticky;
  top: 0;
  min-height: 100vh;
  max-width: 1680px;
  margin: 0 auto;
  padding: 2.4vh 2.7vw;
  overflow: hidden;
}

.scroll-space {
  height: 220vh;
}

.topline {
  position: absolute;
  left: 8.7%;
  top: 1.5vh;
  text-align: left;
  transform: none;
}

.project-list {
  position: absolute;
  left: 10.8%;
  bottom: 2.6vh;
  width: min(420px, 33vw);
  display: grid;
  gap: 2.45rem;
}

.project-list article {
  max-width: 42ch;
}

.index {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
}

.project-list h2 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.18rem, 1.42vw, 1.62rem);
  line-height: 0.96;
}

.project-list p {
  margin: 0.45rem 0 0;
  font-size: clamp(0.98rem, 1.08vw, 1.33rem);
  line-height: 0.92;
}

.profile-wrap {
  position: absolute;
  right: 3.1%;
  top: 23.2vh;
  width: min(700px, 40.6vw);
}

.hero-art {
  width: 100%;
  height: auto;
  display: block;
}

.bio-grid {
  margin-top: -0.9rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
  max-width: 430px;
}

.profile-intro {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 0.2rem;
}

.intro-name {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-weight: 200;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a4a4a;
  font-size: clamp(1.42rem, 1.85vw, 2rem);
  line-height: 1;
}

.bio {
  margin: 0;
  font-size: clamp(1.18rem, 1.24vw, 1.34rem);
  line-height: 0.92;
}

.contacts {
  justify-self: start;
  width: 100%;
}

.contacts p,
.contacts a {
  display: block;
  margin: 0.18rem 0;
  font-size: clamp(1.08rem, 1.02vw, 1.18rem);
  text-align: left;
}

.contacts .find {
  margin-top: 0.9rem;
}

.contacts .tree-title {
  margin-top: 1rem;
}

.contacts .tree-link {
  width: fit-content;
  margin-left: 0;
}

.roles-block {
  margin-top: 1.1rem;
  border-top: 1px solid rgba(73, 73, 73, 0.35);
  padding-top: 0.7rem;
  display: grid;
  gap: 0.85rem;
}

.role-item {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(73, 73, 73, 0.22);
}

.role-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.role-item p {
  margin: 0.12rem 0;
}

.role-item .role-head {
  margin-bottom: 0.28rem;
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .canvas {
    position: sticky;
    top: 0;
    padding: 2rem 1.2rem 1.6rem;
    min-height: 100vh;
    display: grid;
    gap: 1.4rem;
  }

  .topline,
  .project-list {
    position: static;
    width: 100%;
    transform: none;
  }

  .profile-wrap {
    position: static;
    top: auto;
    width: 100%;
    transform: none;
    z-index: 2;
  }

  .profile-wrap {
    max-width: 900px;
    margin-left: auto;
  }

  .project-list {
    order: 4;
  }

  .project-list p {
    line-height: 1.05;
  }
}

@media (max-width: 700px) {
  .scroll-space {
    height: 120vh;
  }

  .profile-wrap {
    top: 6vh;
  }

  .bio-grid {
    margin-top: 0.35rem;
    grid-template-columns: 1fr;
  }

  .profile-intro {
    gap: 0;
    margin-top: 0.2rem;
  }

  .intro-name {
    font-size: 1.22rem;
    line-height: 1;
    color: #6f6f6f;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.055em;
  }

  .bio {
    text-align: left;
  }

  .contacts {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-top: 0.5rem;
  }

  .contacts p,
  .contacts a {
    text-align: left;
  }

  .contacts .tree-link {
    margin-left: 0;
  }

}
