/* Profile page (Ar. Dhanvay Mhatre) — dark portrait hero, then light résumé
   sections. Loaded after career.css, which supplies the white navbar scrim,
   the buttons and the compact footer. */

.profile_hero {
  background-color: #111;
  color: var(--secondary-color);
  padding-top: 9rem;
  padding-bottom: 6rem;
  position: relative;
  overflow: hidden;
}

/* A faint gold wash behind the text column, echoing the brand mark. */
.profile_hero::before {
  content: "";
  background-image: radial-gradient(circle at 75% 40%, rgba(191, 153, 83, .16), rgba(191, 153, 83, 0) 55%);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile_hero-grid {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 5rem;
  display: grid;
  position: relative;
}

.profile_portrait {
  aspect-ratio: 3 / 4;
  border-radius: .4rem;
  overflow: hidden;
  position: relative;
}

.profile_portrait::after {
  content: "";
  border: 1px solid rgba(191, 153, 83, .55);
  border-radius: .4rem;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.profile_portrait img {
  object-fit: cover;
  object-position: center top;
  width: 100%;
  height: 100%;
  display: block;
}

.profile_eyebrow {
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: .35em;
  margin: 0 0 1.4rem;
  font-family: "Century Gothic", sans-serif;
  font-size: .8rem;
  font-weight: 600;
}

.profile_name {
  margin: 0;
  color: var(--secondary-color);
  font-family: "Century Gothic", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.08;
}

.profile_role {
  color: rgba(255, 255, 255, .78);
  margin: 1.4rem 0 0;
  font-family: "Century Gothic", sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
}

.profile_role span {
  color: var(--accent-color);
  margin: 0 .35em;
}

.profile_contact {
  border-top: 1px solid rgba(255, 255, 255, .16);
  margin: 2.6rem 0 0;
  padding: 2.2rem 0 0;
  list-style: none;
  grid-template-columns: repeat(2, minmax(0, max-content));
  column-gap: 3rem;
  row-gap: 1rem;
  display: grid;
}

.profile_contact li {
  color: rgba(255, 255, 255, .85);
  align-items: center;
  gap: .8rem;
  display: flex;
  font-family: "Century Gothic", sans-serif;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.profile_contact a {
  color: inherit;
  text-decoration: none;
  transition: color .3s;
}

.profile_contact a:hover {
  color: var(--accent-color);
}

.profile_contact svg {
  fill: none;
  stroke: var(--accent-color);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  width: 1.2rem;
  height: 1.2rem;
}

.profile_contact svg .is-filled {
  fill: var(--accent-color);
  stroke: none;
}

/* Light résumé sections */

.profile_section {
  padding-top: 7rem;
  padding-bottom: 0;
}

.profile_section.is-skills {
  padding-bottom: 2rem;
}

.profile_heading {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 2rem;
  font-family: "Century Gothic", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.profile_heading::after {
  content: "";
  background-color: var(--accent-color);
  width: 3rem;
  height: 2px;
  margin-top: 1rem;
  display: block;
}

.profile_subheading {
  color: rgba(44, 44, 44, .6);
  text-transform: uppercase;
  letter-spacing: .25em;
  margin: 3.5rem 0 2rem;
  font-family: "Century Gothic", sans-serif;
  font-size: .85rem;
  font-weight: 600;
}

.profile_about-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6rem;
  display: grid;
}

.profile_about p {
  color: rgba(44, 44, 44, .82);
  margin: 0;
  font-family: "Century Gothic", sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
}

.profile_about p + p {
  margin-top: 1.2rem;
}

.profile_timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}

.profile_timeline::before {
  content: "";
  background-color: rgba(44, 44, 44, .15);
  width: 1px;
  position: absolute;
  top: .5rem;
  bottom: .5rem;
  left: .45rem;
}

.profile_timeline li {
  padding-left: 2.4rem;
  position: relative;
}

.profile_timeline li + li {
  margin-top: 1.8rem;
}

.profile_timeline li::before {
  content: "";
  background-color: #fff;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  box-sizing: border-box;
  width: .95rem;
  height: .95rem;
  position: absolute;
  top: .25rem;
  left: 0;
}

.profile_timeline h3 {
  color: var(--primary-color);
  margin: 0 0 .35rem;
  font-family: "Century Gothic", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
}

.profile_timeline em {
  color: rgba(44, 44, 44, .6);
  font-style: normal;
  font-weight: 400;
}

.profile_timeline p {
  color: rgba(44, 44, 44, .75);
  margin: 0;
  font-family: "Century Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

/* Personal traits */

.profile_traits {
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.5rem;
  display: grid;
}

.profile_traits li {
  color: var(--primary-color);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  display: flex;
  font-family: "Century Gothic", sans-serif;
  font-size: .85rem;
}

.profile_trait-icon {
  border: 1px solid rgba(44, 44, 44, .25);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 4.6rem;
  height: 4.6rem;
  display: flex;
  transition: border-color .4s, background-color .4s, transform .4s;
}

.profile_trait-icon svg {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 1.8rem;
  height: 1.8rem;
  transition: stroke .4s;
}

.profile_traits li:hover .profile_trait-icon {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  transform: translateY(-3px);
}

.profile_traits li:hover .profile_trait-icon svg {
  stroke: #fff;
}

/* Software proficiency */

.profile_tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4rem;
  display: grid;
}

.profile_tool-group h4 {
  color: rgba(44, 44, 44, .6);
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid rgba(44, 44, 44, .2);
  margin: 0 0 1.2rem;
  padding-bottom: .7rem;
  font-family: "Century Gothic", sans-serif;
  font-size: .8rem;
  font-weight: 600;
}

.profile_tool-group ul + h4 {
  margin-top: 2.4rem;
}

.profile_tool-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile_tool-group li {
  color: var(--primary-color);
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  display: grid;
  font-family: "Century Gothic", sans-serif;
  font-size: 1rem;
}

.profile_tool-group li + li {
  margin-top: 1rem;
}

.profile_bar {
  background-color: rgba(44, 44, 44, .12);
  height: 3px;
  position: relative;
  overflow: hidden;
}

.profile_bar::after {
  content: "";
  background-color: var(--accent-color);
  width: var(--level, 0%);
  position: absolute;
  inset: 0 auto 0 0;
  transition: width 1.4s cubic-bezier(.22, 1, .36, 1);
}

/* profile.js empties the bars until they scroll into view. */
.profile_tools.is-pending .profile_bar::after {
  width: 0;
}

/* Closing call to action */

.profile_cta {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 7rem;
}

.profile_cta-text {
  color: var(--primary-color);
  margin: 0 0 2.4rem;
  font-family: "Century Gothic", sans-serif;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.3;
}

/* Elements fade up once, as they enter the viewport. */
.is-profile-hidden {
  opacity: 0;
  transform: translateY(1.5rem);
}

[data-profile-reveal] {
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, 1, .36, 1);
}

@media screen and (max-width: 991px) {
  .profile_hero-grid {
    gap: 3rem;
  }

  .profile_name {
    font-size: 3rem;
  }

  .profile_contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile_about-grid {
    gap: 4rem;
  }

  .profile_traits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 2.4rem;
  }

  .profile_tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
}

@media screen and (max-width: 767px) {
  .profile_hero {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .profile_hero-grid,
  .profile_about-grid,
  .profile_tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile_portrait {
    max-width: 22rem;
  }

  .profile_name {
    font-size: 2.5rem;
  }

  .profile_section {
    padding-top: 5rem;
  }

  .profile_cta-text {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 479px) {
  .profile_name {
    font-size: 2.1rem;
  }

  .profile_traits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-profile-reveal],
  .profile_bar::after {
    transition: none;
  }
}
