:root {
  --about-paper: #fffdfa;
  --about-ink: #262429;
  --about-muted: #77727a;
  --about-line: rgba(38, 36, 41, 0.14);
  --about-dark: #2b292e;
  --about-sage: #c7dab8;
  --about-blue: #dfe4ff;
  --about-pink: #f3c8d8;
  --about-yellow: #f8e7a3;
  --about-coral: #e2766d;
  --about-display: var(--portfolio-font-display, "Archivo Black", "Noto Sans SC", sans-serif);
  --about-body: var(--portfolio-font-body, "Gabarito", "Noto Sans SC", sans-serif);
  --about-mono: var(--portfolio-font-mono, "DM Mono", monospace);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--about-paper);
  color: var(--about-ink);
}

body.about-page {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 2% 10%, rgba(248, 231, 163, 0.2), transparent 19rem),
    radial-gradient(circle at 98% 92%, rgba(223, 228, 255, 0.25), transparent 21rem),
    var(--about-paper);
  color: var(--about-ink);
  font-family: var(--about-body);
}

body.about-page::after {
  position: fixed;
  z-index: 10;
  top: 0;
  right: 7.5vw;
  width: 66px;
  height: 3px;
  background: var(--about-ink);
  content: "";
}

a {
  color: inherit;
}

.about-header {
  position: absolute;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  max-width: 1320px;
  align-items: center;
  justify-content: space-between;
  margin-inline: auto;
  padding: 22px clamp(24px, 4.5vw, 68px);
}

.about-brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.about-brand__mark {
  position: relative;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 1px solid rgba(38, 36, 41, 0.11);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(38, 36, 41, 0.07);
  font: 800 16px/1 var(--about-body);
}

.about-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  mix-blend-mode: multiply;
  transform: scale(1.08);
}

.about-brand__mark i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6878ea;
}

.about-header__aside {
  display: flex;
  align-items: center;
  gap: 24px;
  font: 500 11px/1.25 var(--about-mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.about-header__aside > span {
  color: #908a90;
}

.about-header__aside a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--about-ink);
  font-family: var(--about-body);
  color: var(--about-ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: none;
}

.about-header__aside i {
  font-style: normal;
  transition: transform 180ms ease;
}

.about-header__aside a:hover i,
.about-header__aside a:focus-visible i {
  transform: translate(2px, -2px);
}

.profile-main {
  display: block;
  min-height: 100svh;
  padding: clamp(148px, 15vh, 178px) clamp(24px, 5vw, 82px) 154px;
}

.profile-sheet {
  position: relative;
  display: grid;
  width: min(1180px, 100%);
  grid-template-columns: minmax(350px, 390px) minmax(0, 650px);
  gap: clamp(74px, 7vw, 118px);
  align-items: start;
  margin-inline: auto;
}

.profile-sheet::before {
  position: absolute;
  z-index: 2;
  top: -18px;
  left: 42px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: var(--about-sage);
  content: "";
}

.profile-card {
  border: 1px solid rgba(38, 36, 41, 0.18);
  background: var(--about-dark);
  color: #fff;
  box-shadow: 0 22px 54px rgba(43, 41, 46, 0.17);
  animation: about-card-enter 640ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.profile-card__photo {
  position: relative;
  margin: 0;
  padding: 17px 17px 0;
  overflow: hidden;
}

.profile-card__photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1044 / 1507;
  object-fit: cover;
  object-position: center top;
  background: #f7f5f0;
  filter: saturate(0.9) contrast(1.02);
  transition: filter 350ms ease, transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.profile-card:hover .profile-card__photo img {
  filter: saturate(1) contrast(1);
  transform: scale(1.012);
}

.profile-card__photo > span {
  position: absolute;
  top: 25px;
  left: 26px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--about-ink);
  font: 600 11px/1.2 var(--about-mono);
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.profile-card__body {
  padding: 20px 24px 27px;
}

.profile-card__label {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.48);
  font: 500 11px/1.25 var(--about-mono);
  letter-spacing: 0.12em;
}

.profile-card h1 {
  margin: 0;
  font-family: var(--about-display);
  font-size: 32px;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.profile-card__name {
  margin: 6px 0 0;
  color: var(--about-yellow);
  font-size: 17px;
  font-weight: 700;
}

.profile-card__role {
  margin: 9px 0 25px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.profile-card__contact {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: #fff;
  font: 700 14px/1 var(--about-display);
  letter-spacing: -0.025em;
  text-decoration: none;
}

.profile-card__contact i {
  color: var(--about-pink);
  font: 500 16px/1 var(--about-body);
  font-style: normal;
  transition: transform 180ms ease;
}

.profile-card__contact:hover i,
.profile-card__contact:focus-visible i {
  transform: translate(3px, -3px);
}

.profile-copy {
  position: relative;
  width: 100%;
  max-width: 650px;
  padding-top: 42px;
  animation: about-copy-enter 700ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.profile-copy h2 {
  margin: 0;
  font-family: var(--about-display);
  font-size: clamp(54px, 4.2vw, 66px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.profile-copy__lead {
  max-width: 610px;
  margin: 29px 0 0;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.012em;
}

.profile-copy__lead strong {
  font-weight: 800;
}

.profile-copy__intro {
  display: grid;
  max-width: 610px;
  gap: 17px;
  margin-top: 30px;
}

.profile-copy__intro p {
  margin: 0;
  color: var(--about-ink);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.002em;
}

.profile-resume {
  margin-top: 43px;
  padding-top: 22px;
  border-top: 1px solid var(--about-line);
}

.profile-resume h3 {
  margin: 0 0 15px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.profile-resume__row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 24px;
  padding: 13px 0;
}

.profile-resume__row + .profile-resume__row {
  border-top: 1px solid color-mix(in srgb, var(--about-line) 72%, transparent);
}

.profile-resume__row > span {
  padding-top: 1px;
  color: #6f696f;
  font: 500 12.5px/1.4 var(--about-mono);
  letter-spacing: 0.06em;
}

.profile-resume__row > div {
  display: grid;
  gap: 11px;
}

.profile-resume__row p {
  display: grid;
  grid-template-columns: minmax(136px, 0.58fr) minmax(0, 1.42fr);
  gap: 22px;
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.profile-resume__row strong {
  font-weight: 700;
}

.profile-resume__row small {
  color: #59545a;
  font-size: 14px;
  line-height: 1.55;
}

.profile-meta {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 36px;
  margin-top: 35px;
  padding-top: 22px;
  border-top: 2px solid var(--about-ink);
}

.profile-meta > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.profile-meta span {
  color: #6f696f;
  font: 500 11px/1.2 var(--about-mono);
  letter-spacing: 0.06em;
}

.profile-meta p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.55;
}

@keyframes about-card-enter {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(-0.7deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes about-copy-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  .profile-sheet {
    grid-template-columns: minmax(290px, 330px) minmax(0, 1fr);
    gap: clamp(44px, 5vw, 64px);
  }

  .profile-copy {
    padding-top: 26px;
  }

  .profile-copy h2 {
    font-size: clamp(44px, 5vw, 50px);
  }

  .profile-resume__row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 16px;
  }

  .profile-resume__row p {
    grid-template-columns: minmax(116px, 0.62fr) minmax(0, 1.38fr);
    gap: 14px;
  }

  .profile-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 860px) {
  body.about-page::after {
    right: 24px;
    width: 42px;
  }

  .about-header {
    padding-inline: 20px;
  }

  .about-header__aside > span {
    display: none;
  }

  .profile-main {
    display: block;
    padding: 104px clamp(20px, 5vw, 36px) 124px;
  }

  .profile-sheet {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .profile-sheet::before {
    left: max(42px, calc(50% - 146px));
  }

  .profile-card {
    width: min(376px, 100%);
    margin-inline: auto;
  }

  .profile-copy {
    max-width: 650px;
    margin-inline: auto;
    padding-top: 0;
  }

  .profile-copy h2 {
    font-size: clamp(42px, 10vw, 54px);
  }

  .profile-resume__row {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .profile-resume__row p {
    grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .about-brand > span:last-child {
    display: none;
  }

  .about-header__aside {
    gap: 12px;
  }

  .profile-main {
    padding: 96px 15px 118px;
  }

  .profile-sheet {
    gap: 44px;
  }

  .profile-card__body {
    padding-inline: 17px;
  }

  .profile-copy h2 {
    font-size: clamp(40px, 11vw, 44px);
    line-height: 1;
    letter-spacing: -0.025em;
  }

  .profile-copy__lead {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.55;
  }

  .profile-copy__intro {
    gap: 14px;
    margin-top: 24px;
  }

  .profile-copy__intro p {
    font-size: 16px;
    line-height: 1.7;
  }

  .profile-resume {
    margin-top: 36px;
    padding-top: 19px;
  }

  .profile-resume__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 15px 0;
  }

  .profile-resume__row p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-resume__row small {
    font-size: 14px;
  }

  .profile-meta > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

@media (min-width: 861px) {
  .profile-main {
    min-height: 100svh;
    padding: clamp(86px, 12.5svh, 116px) clamp(24px, 6vw, 92px) 102px;
  }

  .profile-sheet {
    width: min(1000px, 100%);
    grid-template-columns: minmax(280px, 340px) minmax(0, 606px);
    gap: clamp(36px, 4vw, 54px);
  }

  .profile-sheet::before {
    top: -15px;
    left: 36px;
    width: 26px;
    height: 26px;
  }

  .profile-card__photo {
    padding: 14px 14px 0;
  }

  .profile-card__photo img {
    aspect-ratio: 4 / 5;
    object-position: center 18%;
  }

  .profile-card__photo > span {
    top: 22px;
    left: 23px;
    font-size: 11px;
  }

  .profile-card__body {
    padding: 12px 16px 16px;
  }

  .profile-card__label {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .profile-card h1 {
    font-size: 27px;
  }

  .profile-card__name {
    margin-top: 4px;
    font-size: 15px;
  }

  .profile-card__role {
    margin: 6px 0 14px;
    font-size: 14px;
  }

  .profile-card__contact {
    min-height: 34px;
    padding-top: 11px;
    font-size: 12.5px;
  }

  .profile-copy {
    max-width: 606px;
    padding-top: 22px;
  }

  .profile-copy h2 {
    font-size: 48px;
  }

  .profile-copy__lead {
    margin-top: 14px;
    font-size: 18px;
  }

  .profile-copy__intro {
    gap: 8px;
    margin-top: 18px;
  }

  .profile-copy__intro p {
    font-size: 15.5px;
    line-height: 1.5;
  }

  .profile-resume {
    margin-top: 20px;
    padding-top: 14px;
  }

  .profile-resume h3 {
    margin-bottom: 5px;
    font-size: 16px;
  }

  .profile-resume__row {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 5px 0;
  }

  .profile-resume__row > span {
    font-size: 12px;
  }

  .profile-resume__row > div {
    gap: 5px;
  }

  .profile-resume__row p {
    grid-template-columns: minmax(118px, auto) minmax(0, 1fr);
    gap: 10px;
    font-size: 14.5px;
    line-height: 1.25;
  }

  .profile-resume__row small {
    font-size: 13.5px;
    line-height: 1.3;
  }

  .profile-meta {
    gap: 18px;
    margin-top: 16px;
    padding-top: 14px;
  }

  .profile-meta span {
    font-size: 11px;
  }

  .profile-meta p {
    font-size: 12.5px;
    line-height: 1.4;
  }
}

@media (min-width: 861px) and (max-height: 760px) {
  .profile-main {
    padding-top: 78px;
    padding-bottom: 90px;
  }

  .profile-sheet {
    width: min(860px, 100%);
    grid-template-columns: minmax(250px, 292px) minmax(0, 522px);
    gap: clamp(32px, 3.6vw, 46px);
  }

  .profile-card__photo img {
    aspect-ratio: 5 / 6;
  }

  .profile-copy {
    padding-top: 16px;
  }

  .profile-copy h2 {
    font-size: 44px;
  }

  .profile-copy__intro p {
    font-size: 15px;
  }

  .profile-resume__row {
    padding-block: 4px;
  }
}

/* Large desktop composition ------------------------------------------------
   The About page is a single, deliberately complete screen.  The former
   compact desktop rules made the profile look like a small card in the upper
   half of a tall display, leaving most of the page unused.  These values give
   the portrait, copy and credentials a shared reading scale while retaining a
   compact version for short laptop viewports above. */
@media (min-width: 861px) and (min-height: 980px) {
  .profile-main {
    display: grid;
    min-height: 100svh;
    align-items: center;
    padding: clamp(104px, 10svh, 142px) clamp(32px, 6vw, 112px) clamp(112px, 10svh, 144px);
  }

  .profile-sheet {
    width: min(1580px, 100%);
    grid-template-columns: minmax(430px, 500px) minmax(0, 1fr);
    gap: clamp(72px, 6vw, 130px);
    align-items: center;
  }

  .profile-sheet::before {
    top: -21px;
    left: 44px;
    width: 32px;
    height: 32px;
  }

  .profile-card__photo {
    padding: 17px 17px 0;
  }

  .profile-card__photo img {
    aspect-ratio: 4 / 5;
    object-position: center 18%;
  }

  .profile-card__photo > span {
    top: 26px;
    left: 27px;
    font-size: 11px;
  }

  .profile-card__body {
    padding: 19px 22px 24px;
  }

  .profile-card__label {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .profile-card h1 {
    font-size: 35px;
  }

  .profile-card__name {
    margin-top: 5px;
    font-size: 17px;
  }

  .profile-card__role {
    margin: 8px 0 20px;
    font-size: 15px;
  }

  .profile-card__contact {
    min-height: 42px;
    padding-top: 14px;
    font-size: 14px;
  }

  .profile-copy {
    max-width: 900px;
    padding-top: 0;
  }

  .profile-copy h2 {
    font-size: clamp(58px, 4.5vw, 78px);
    line-height: .94;
  }

  .profile-copy__lead {
    max-width: 800px;
    margin-top: 24px;
    font-size: 23px;
    line-height: 1.48;
  }

  .profile-copy__intro {
    max-width: 800px;
    gap: 13px;
    margin-top: 25px;
  }

  .profile-copy__intro p {
    font-size: 18px;
    line-height: 1.64;
  }

  .profile-resume {
    margin-top: 31px;
    padding-top: 18px;
  }

  .profile-resume h3 {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .profile-resume__row {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 20px;
    padding: 10px 0;
  }

  .profile-resume__row > span {
    font-size: 12.5px;
  }

  .profile-resume__row > div {
    gap: 8px;
  }

  .profile-resume__row p {
    grid-template-columns: minmax(145px, .6fr) minmax(0, 1.4fr);
    gap: 18px;
    font-size: 16px;
    line-height: 1.35;
  }

  .profile-resume__row small {
    font-size: 15px;
    line-height: 1.42;
  }

  .profile-meta {
    grid-template-columns: 1.22fr .78fr;
    gap: 32px;
    margin-top: 25px;
    padding-top: 18px;
  }

  .profile-meta span {
    font-size: 11px;
  }

  .profile-meta p {
    font-size: 14px;
    line-height: 1.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
