*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #222222;
  --muted: #909090;
  --hairline: rgba(144, 144, 144, 0.2);
  --ease: cubic-bezier(0.4, 0, 0, 1);
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Figtree", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

img {
  display: block;
}

.page {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 150px 0 100px;
  display: flex;
  flex-direction: column;
  gap: 128px;
}

.row {
  display: flex;
  gap: 88px;
  align-items: flex-start;
}

.col-left {
  flex: 1 1 0;
  min-width: 0;
}

.col-right {
  flex: none;
  width: 440px;
}

.logo {
  display: block;
  width: 86px;
  height: 117px;
}

.logo img {
  width: 100%;
  height: 100%;
}

.contact {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: underline;
  transition: color 0.2s;
}

a:hover {
  color: var(--muted);
}

.logo:hover {
  color: inherit;
}

.book {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: 50px;
  background-color: black;
  color: white;
  font-family: sans-serif;
  font-size: 16px;
  font-weight: bold;
  line-height: normal;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.book:hover {
  background-color: #333;
  color: white;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.portrait {
  width: 182px;
  height: 260px;
  border-radius: 32px;
  overflow: hidden;
}

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

.curve {
  position: absolute;
  top: 87px;
  left: calc(51.5909% - 56px);
  width: 112px;
  height: 112px;
  z-index: 1;
}

.curve svg {
  width: 100%;
  height: 100%;
  transform-origin: center;
  animation: spin 12s linear infinite;
}

.curve text {
  font-family: "Figtree", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.48em;
  fill: var(--ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

h1 {
  max-width: 400px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--muted);
}

h1 span {
  color: var(--ink);
}

h2 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.prose p {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.education {
  list-style: none;
}

.education li + li {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.education h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.education p {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.js .reveal {
  opacity: 0;
  transform: perspective(1200px) translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 810px) and (max-width: 1199px) {
  .page {
    max-width: 750px;
  }

  .row {
    gap: 25px;
  }

  .curve {
    left: 175px;
    top: 78px;
  }
}

@media (max-width: 809px) {
  .page {
    padding: 30px;
    gap: 100px;
  }

  .row {
    flex-direction: column;
    gap: 20px;
  }

  .hero {
    gap: 50px;
  }

  .col-left,
  .col-right {
    flex: none;
    width: 100%;
  }

  .contact p {
    font-size: 13px;
    color: #333;
  }

  .curve {
    left: 172px;
    top: 84px;
  }

  h1 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .curve svg {
    animation: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
