/* Professional page: a calm, polished portfolio.
   Serif headlines, generous white space and one deep navy accent. */

.pro {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #121417;
  --muted: #5d636b;
  --line: rgba(18, 20, 23, 0.1);
  --accent: #1f3a5f;
  --serif: "Instrument Serif", Georgia, serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 76rem;
  /* Side padding that keeps content inside --max while backgrounds run full width */
  --inline: max(var(--gutter), calc((100% - var(--max)) / 2));

  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1875rem;
  line-height: 1.5;
}

.pro em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.pro-dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.pro-dot--live {
  background: #2e9e5b;
  animation: live 2s ease-out infinite;
}

@keyframes live {
  from { box-shadow: 0 0 0 0 rgba(46, 158, 91, 0.5); }
  to   { box-shadow: 0 0 0 0.5rem rgba(46, 158, 91, 0); }
}

/* ---------- Buttons and links ---------- */

.pro-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.625rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.pro-button:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.pro-button--small {
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
}

.pro-button--light {
  background: #fff;
  color: var(--ink);
}

.pro-button--light:hover {
  background: #dfe7f1;
}

.pro-link {
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

.pro-link:hover {
  color: var(--accent);
}

/* ---------- Top bar ---------- */

.pro-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 4.5rem;
  padding-inline: var(--inline);
  background: rgba(246, 245, 241, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.pro-nav__name {
  font-family: var(--serif);
  font-size: 1.625rem;
  color: inherit;
  text-decoration: none;
}

.pro-nav__links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.pro-nav__links a {
  color: var(--muted);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pro-nav__links a:hover {
  color: var(--ink);
}

/* ---------- Intro ---------- */

.pro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: clamp(3rem, 7vw, 5.5rem) var(--inline);
}

.pro-hero__title {
  margin: 1.25rem 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 5.4vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.pro-hero__intro {
  max-width: 34em;
  color: var(--muted);
  font-size: 1.25rem;
}

.pro-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.pro-hero__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.25rem;
  background: var(--accent);
}

.pro-hero__portrait :is(video, img) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pro-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  max-width: calc(100% - 2rem);
  padding: 0.625rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Key numbers ---------- */

.pro-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-inline: var(--inline);
  border-block: 1px solid var(--line);
}

.pro-stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 2rem 1.5rem;
}

.pro-stat:first-child {
  padding-left: 0;
}

.pro-stat + .pro-stat {
  border-left: 1px solid var(--line);
}

.pro-stat__num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.5vw, 3.75rem);
  line-height: 1;
}

.pro-stat__label {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Sections: heading stays put on the left while content scrolls ---------- */

.pro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 2rem clamp(2rem, 6vw, 5rem);
  padding: clamp(4rem, 9vw, 7rem) var(--inline);
}

.pro-section + .pro-section {
  border-top: 1px solid var(--line);
}

.pro-section__head {
  position: sticky;
  top: 7rem;
  align-self: start;
}

.pro-section__title {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.05;
}

/* ---------- Experience timeline ---------- */

.pro-timeline {
  list-style: none;
  padding: 0;
}

.pro-job {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1.5rem;
}

.pro-job__years {
  padding-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pro-job__body {
  position: relative;
  padding: 0 0 3rem 2rem;
  border-left: 1px solid var(--line);
}

.pro-job:last-child .pro-job__body {
  padding-bottom: 0;
}

.pro-job__body::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -0.3125rem;
  width: 0.625rem;
  height: 0.625rem;
  border: 1px solid var(--muted);
  border-radius: 50%;
  background: var(--bg);
}

.pro-job--current .pro-job__body::before {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 0.3125rem rgba(31, 58, 95, 0.15);
}

.pro-job__role {
  font-size: 1.625rem;
  font-weight: 700;
  line-height: 1.15;
}

.pro-job__company {
  margin-top: 0.25rem;
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 600;
}

.pro-job__desc {
  max-width: 36em;
  margin-top: 0.75rem;
  color: var(--muted);
}

/* ---------- Expertise cards ---------- */

.pro-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.pro-card {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s ease;
}

.pro-card:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(18, 20, 23, 0.08);
  transform: translateY(-4px);
}

.pro-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.pro-card h3 {
  margin: 2.5rem 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
}

.pro-card p {
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- Testimonial ---------- */

.pro-quote {
  padding: clamp(4rem, 9vw, 7rem) var(--inline);
  border-top: 1px solid var(--line);
  text-align: center;
}

.pro-quote p {
  max-width: 24em;
  margin-inline: auto;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-style: italic;
  line-height: 1.15;
}

.pro-quote footer {
  margin-top: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact card ---------- */

.pro-contact {
  margin: 0 var(--gutter);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: 1.5rem;
  background: var(--accent);
  color: #fff;
}

.pro-contact .pro-eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.pro-contact h2 {
  margin: 1.25rem 0 2.5rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.pro-contact h2 em {
  color: #b9cde6;
}

.pro-contact__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.pro-contact .pro-link {
  color: #fff;
}

/* ---------- Footer ---------- */

.pro-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem var(--inline) 2.5rem;
  color: var(--muted);
  font-size: 1rem;
}

.pro-footer nav {
  display: flex;
  gap: 1.5rem;
}

.pro-footer a {
  color: inherit;
  text-decoration: none;
}

.pro-footer a:hover {
  color: var(--ink);
}

/* ---------- Phones and small tablets ---------- */

@media (max-width: 860px) {
  .pro-nav__links {
    display: none;
  }

  .pro-nav {
    justify-content: space-between;
  }

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

  .pro-hero__portrait {
    width: min(100%, 26rem);
  }

  .pro-section__head {
    position: static;
  }

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

  .pro-stat {
    padding: 1.5rem 1rem;
  }

  .pro-stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .pro-stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

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

  .pro-job {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}
