.profile-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}


/* COMMON */

.page-label,
.section-heading > span,
.about-closing > div > span {
  display: block;

  color: var(--accent);
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ABOUT HERO */

.profile-hero {
  min-height: clamp(600px, 68vh, 760px);

  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  align-items: end;
  gap: 6rem;

  padding: 8rem 0 6rem;

  border-bottom: 1px solid var(--border);
}

.profile-hero .page-label {
  margin-bottom: 2rem;
}

.profile-hero h1 {
  max-width: 900px;
  margin: 0;

  font-size: clamp(4rem, 8vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.profile-hero h1 span {
  display: block;
  color: var(--text-muted);
}

.profile-intro {
  margin: 0;
  padding-bottom: 0.5rem;

  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1.75;
}


/* ABOUT STORY */

.about-story {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 7rem;

  padding: 10rem 0;

  border-bottom: 1px solid var(--border);
}

.section-heading > span {
  margin-bottom: 2rem;
}

.section-heading h2 {
  max-width: 550px;
  margin: 0;

  font-size: clamp(3rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.about-copy {
  max-width: 650px;
  padding-top: 2.5rem;
}

.about-copy p {
  margin: 0;

  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.85;
}

.about-copy p + p {
  margin-top: 2rem;
}


/* INTERESTS */

.interests-section {
  padding: 10rem 0;

  border-bottom: 1px solid var(--border);
}

.interests-section .section-heading {
  max-width: 800px;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  margin-top: 6rem;

  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.interest-grid article {
  min-height: 280px;

  padding: 2rem;

  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.interest-grid article > span {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.7rem;
}

.interest-grid h3 {
  margin: 4rem 0 1rem;

  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.interest-grid p {
  max-width: 440px;
  margin: 0;

  color: var(--text-muted);
  line-height: 1.7;
}


/* ABOUT CLOSING */

.about-closing {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  align-items: end;
  gap: 6rem;

  padding: 10rem 0 12rem;
}

.about-closing > div > span {
  margin-bottom: 2rem;
}

.about-closing h2 {
  max-width: 800px;
  margin: 0;

  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.about-links {
  display: flex;
  flex-direction: column;
}

.about-links a {
  display: flex;
  justify-content: space-between;
  gap: 2rem;

  padding: 1.2rem 0;

  border-bottom: 1px solid var(--border);

  color: var(--text);
  text-decoration: none;
}

.about-links a:first-child {
  border-top: 1px solid var(--border);
}

.about-links a span {
  color: var(--accent);
}


/* CV HERO */

.cv-hero {
  min-height: 55vh;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;

  padding: 8rem 0 6rem;

  border-bottom: 1px solid var(--border);
}

.cv-hero .page-label {
  margin-bottom: 2rem;
}

.cv-hero h1 {
  margin: 0;

  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.8;
  letter-spacing: -0.065em;
}

.cv-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 5rem;

  margin-top: 4rem;
}

.cv-summary > p {
  max-width: 680px;
  margin: 0;

  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1.65;
}

.cv-location {
  padding-top: 1rem;

  border-top: 1px solid var(--border);
}

.cv-location span,
.cv-location strong {
  display: block;
}

.cv-location span {
  margin-bottom: 0.5rem;

  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
}


/* CV SECTIONS */

.cv-section,
.cv-projects {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 5rem;

  padding: 8rem 0;

  border-bottom: 1px solid var(--border);
}

.cv-section-title > span {
  display: block;

  margin-bottom: 1rem;

  color: var(--accent);
  font-family: monospace;
  font-size: 0.7rem;
}

.cv-section-title h2 {
  margin: 0;

  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.cv-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 3rem;

  padding: 0 0 4rem;
}

.cv-item + .cv-item {
  padding-top: 4rem;

  border-top: 1px solid var(--border);
}

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

.cv-item-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.cv-item-content {
  max-width: 650px;
}

.cv-item-content h3 {
  margin: 0 0 1.5rem;

  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.cv-item-content p {
  margin: 0;

  color: var(--text-muted);
  line-height: 1.75;
}

.cv-item-content p + p {
  margin-top: 1.25rem;
}

.inline-link {
  display: inline-flex;
  gap: 0.75rem;

  margin-top: 2rem;

  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.inline-link span {
  color: var(--accent);
}


/* SKILLS */

.skills-grid {
  border-top: 1px solid var(--border);
}

.skills-grid > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;

  padding: 1.4rem 0;

  border-bottom: 1px solid var(--border);
}

.skills-grid span {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.skills-grid strong {
  font-size: 0.95rem;
  font-weight: 600;
}


/* CV PROJECTS */

.cv-project-links {
  border-top: 1px solid var(--border);
}

.cv-project-links a {
  display: grid;
  grid-template-columns: 50px 1fr 1fr 30px;
  align-items: center;
  gap: 1.5rem;

  padding: 1.7rem 0;

  border-bottom: 1px solid var(--border);

  color: var(--text);
  text-decoration: none;
}

.cv-project-links a > span {
  color: var(--text-muted);
  font-family: monospace;
  font-size: 0.7rem;
}

.cv-project-links strong {
  font-size: 1.1rem;
}

.cv-project-links small {
  color: var(--text-muted);
}

.cv-project-links b {
  color: var(--accent);
  font-weight: 400;

  transition: transform 180ms ease;
}

.cv-project-links a:hover b {
  transform: translateX(4px);
}


/* CV CLOSING */

.cv-closing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;

  padding: 5rem 0 7rem;
}

.cv-closing p {
  margin: 0;

  color: var(--text-muted);
}

.cv-closing a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.cv-closing a span {
  color: var(--accent);
}


/* MOBILE */

@media (max-width: 700px) {
  .profile-page {
    padding: 0 1.25rem;
  }

  .profile-hero {
    min-height: auto;

    grid-template-columns: 1fr;
    gap: 4rem;

    padding: 6rem 0;
  }

  .profile-hero h1 {
    font-size: clamp(3.5rem, 16vw, 6rem);
  }

  .about-story,
  .about-closing {
    grid-template-columns: 1fr;
    gap: 3rem;

    padding: 6rem 0;
  }

  .about-copy {
    padding-top: 0;
  }

  .interests-section {
    padding: 6rem 0;
  }

  .interest-grid {
    grid-template-columns: 1fr;
    margin-top: 4rem;
  }

  .interest-grid article {
    min-height: auto;
  }

  .interest-grid h3 {
    margin-top: 3rem;
  }

  .cv-hero {
    min-height: auto;
    padding: 6rem 0;
  }

  .cv-hero h1 {
    font-size: clamp(4.5rem, 22vw, 8rem);
  }

  .cv-summary {
    grid-template-columns: 1fr;
    gap: 3rem;

    margin-top: 3rem;
  }

  .cv-section,
  .cv-projects {
    grid-template-columns: 1fr;
    gap: 3rem;

    padding: 6rem 0;
  }

  .cv-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .cv-item-meta {
    flex-direction: row;
    justify-content: space-between;
  }

  .skills-grid > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .cv-project-links a {
    grid-template-columns: 35px 1fr 25px;
  }

  .cv-project-links small {
    grid-column: 2;
  }

  .cv-project-links b {
    grid-column: 3;
    grid-row: 1 / 3;
  }

  .cv-closing {
    align-items: flex-start;
    flex-direction: column;

    padding: 4rem 0 6rem;
  }
}
