/* Profile page — full-screen editorial scenes layered on the unified theme. */
body.profile-page.unified-theme {
  --profile-serif: Baskerville, "Baskerville Old Face", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --profile-sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  font-family: var(--profile-sans);
}

body.profile-page.unified-theme .profile-page-shell {
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(32, 39, 51, 0.34) transparent;
}

body.profile-page.unified-theme .profile-page-grid,
body.profile-page.unified-theme .profile-page-orbit {
  position: fixed;
}

body.profile-page.unified-theme .profile-card-layout {
  display: block;
  width: 100%;
  max-width: none;
  min-height: auto;
  margin: 0;
  padding: 0;
}

body.profile-page.unified-theme .profile-identity,
body.profile-page.unified-theme .profile-contact-panel {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body.profile-page.unified-theme .profile-identity {
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 112px clamp(24px, 6vw, 90px) 92px;
  text-align: center;
}

body.profile-page.unified-theme .profile-identity::after,
body.profile-page.unified-theme .profile-contact-panel::before {
  content: "";
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  left: clamp(24px, 6vw, 90px);
  height: 1px;
  background: var(--line);
  pointer-events: none;
}

body.profile-page.unified-theme .profile-identity::after { bottom: 0; }
body.profile-page.unified-theme .profile-contact-panel::before { top: 0; }

body.profile-page.unified-theme .profile-page-index {
  margin-bottom: 18px;
  color: #52648b;
  font-family: var(--profile-sans);
  font-weight: 650;
  font-size: 11px;
  letter-spacing: 0.14em;
}

body.profile-page.unified-theme .profile-portrait-frame {
  --portrait-size: clamp(245px, 23vw, 330px);
  padding: 7px;
  border: 1px solid rgba(32, 39, 51, 0.26);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 64px rgba(32, 39, 51, 0.16);
}

body.profile-page.unified-theme .profile-identity h1 {
  margin: 30px 0 10px;
  color: var(--paper);
  font-family: var(--profile-serif);
  font-size: clamp(48px, 5.2vw, 76px);
  font-weight: 400;
  letter-spacing: -0.032em;
}

body.profile-page.unified-theme .profile-role {
  max-width: 460px;
  color: #4e5967;
  font-family: var(--profile-sans);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.7;
  letter-spacing: 0.13em;
}

body.profile-page.unified-theme .profile-socials { margin-top: 24px; }

body.profile-page.unified-theme .profile-screen-cue {
  position: absolute;
  right: clamp(24px, 6vw, 90px);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(32, 39, 51, 0.32);
  color: #445165;
  font: 650 11px/1.2 var(--profile-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.profile-page.unified-theme .profile-screen-cue:hover,
body.profile-page.unified-theme .profile-screen-cue:focus-visible { color: var(--blue); }

body.profile-page.unified-theme .profile-contact-panel {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(500px, 1.22fr);
  grid-template-areas:
    "eyebrow list"
    "code list"
    "title list"
    "intro list"
    "intro actions"
    "footer footer";
  grid-template-rows: auto auto auto 1fr auto auto;
  column-gap: clamp(54px, 8vw, 132px);
  align-items: start;
  padding: 124px clamp(32px, 8vw, 136px) 34px;
}

body.profile-page.unified-theme .profile-contact-panel > .eyebrow {
  grid-area: eyebrow;
  align-self: end;
  font-family: var(--profile-sans);
  font-weight: 650;
  letter-spacing: 0.12em;
}

body.profile-page.unified-theme .profile-contact-code {
  grid-area: code;
  margin: 30px 0 12px;
  color: #52648b;
  font-family: var(--profile-sans);
  font-weight: 650;
  font-size: 11px;
  letter-spacing: 0.14em;
}

body.profile-page.unified-theme .profile-contact-panel h2 {
  grid-area: title;
  color: var(--paper);
  font-family: var(--profile-serif);
  font-size: clamp(68px, 7vw, 108px);
  font-weight: 400;
  letter-spacing: -0.038em;
}

body.profile-page.unified-theme .profile-contact-intro {
  grid-area: intro;
  max-width: 520px;
  margin: 28px 0 0;
  color: #44515f;
  font-family: var(--profile-sans);
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 400;
  line-height: 1.75;
}

body.profile-page.unified-theme .profile-contact-list {
  grid-area: list;
  align-self: center;
  display: block;
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
}

body.profile-page.unified-theme .profile-contact-list > div {
  grid-template-columns: minmax(120px, 0.3fr) minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

body.profile-page.unified-theme .profile-contact-list dt {
  color: #596575;
  font-family: var(--profile-sans);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.11em;
}

body.profile-page.unified-theme .profile-contact-list dd {
  color: var(--paper);
  font-family: var(--profile-sans);
  font-size: 14px;
  font-weight: 450;
}

body.profile-page.unified-theme .profile-contact-list a {
  padding: 0;
  border: 0;
  color: #33486f;
  background: transparent;
}

body.profile-page.unified-theme .profile-action-row {
  grid-area: actions;
  align-self: end;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

body.profile-page.unified-theme .profile-action-row > a,
body.profile-page.unified-theme .profile-action-row > a:not(.line-link) {
  font-family: var(--profile-sans);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.025em;
  text-transform: none;
}

body.profile-page.unified-theme .profile-action-row > .line-link {
  min-height: 46px;
  padding-inline: 18px;
  font-family: var(--profile-sans);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

body.profile-page.unified-theme .profile-action-row > a:not(.line-link) {
  position: relative;
  padding: 8px 0 7px;
  border-bottom: 1px solid transparent;
  color: #3f4d61;
  transition: color 180ms ease, border-color 180ms ease;
}

body.profile-page.unified-theme .profile-action-row > a:not(.line-link):hover,
body.profile-page.unified-theme .profile-action-row > a:not(.line-link):focus-visible {
  color: var(--paper);
  border-bottom-color: rgba(32, 39, 51, 0.4);
}

body.profile-page.unified-theme .profile-page-footer {
  position: relative;
  inset: auto;
  grid-area: footer;
  width: 100%;
  margin: 28px 0 0;
  padding-top: 15px;
  font-family: var(--profile-sans);
  font-weight: 600;
  letter-spacing: 0.1em;
}

body.profile-page.unified-theme .profile-screen-nav {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 45;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

body.profile-page.unified-theme .profile-screen-nav a {
  display: grid;
  grid-template-columns: 6px auto;
  gap: 9px;
  align-items: center;
  min-width: 34px;
  color: rgba(32, 39, 51, 0.48);
  font: 650 10px/1 var(--profile-sans);
  letter-spacing: 0.1em;
  transition: color 180ms ease;
}

body.profile-page.unified-theme .profile-screen-nav a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 180ms ease, background 180ms ease;
}

body.profile-page.unified-theme .profile-screen-nav a.is-active {
  color: var(--paper);
}

body.profile-page.unified-theme .profile-screen-nav a.is-active::before {
  background: var(--blue);
  transform: scale(1.55);
}

@media (max-width: 820px) {
  body.profile-page.unified-theme .profile-page-shell { scroll-snap-type: y proximity; }

  body.profile-page.unified-theme .profile-identity {
    min-height: 100svh;
    padding: 92px 20px 82px;
  }

  body.profile-page.unified-theme .profile-portrait-frame {
    --portrait-size: clamp(198px, 59vw, 250px);
  }

  body.profile-page.unified-theme .profile-identity h1 {
    margin-top: 25px;
    font-size: clamp(42px, 12vw, 56px);
  }

  body.profile-page.unified-theme .profile-screen-cue {
    right: 20px;
    bottom: 27px;
  }

  body.profile-page.unified-theme .profile-contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "code"
      "title"
      "intro"
      "list"
      "actions"
      "footer";
    grid-template-rows: auto;
    gap: 0;
    min-height: 100svh;
    padding: 96px 20px 28px;
  }

  body.profile-page.unified-theme .profile-contact-code { margin-top: 24px; }
  body.profile-page.unified-theme .profile-contact-panel h2 { font-size: clamp(58px, 17vw, 76px); }
  body.profile-page.unified-theme .profile-contact-intro { margin: 20px 0 28px; font-size: 14px; }
  body.profile-page.unified-theme .profile-contact-list { align-self: auto; }
  body.profile-page.unified-theme .profile-contact-list > div {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }
  body.profile-page.unified-theme .profile-contact-list dd { overflow-wrap: anywhere; font-size: 13px; }
  body.profile-page.unified-theme .profile-action-row { margin-top: 20px; }
  body.profile-page.unified-theme .profile-screen-nav { display: none; }
  body.profile-page.unified-theme .profile-page-footer { margin-top: 30px; }
}

@media (max-width: 480px) {
  body.profile-page.unified-theme .profile-contact-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (max-height: 780px) and (min-width: 821px) {
  body.profile-page.unified-theme .profile-identity { padding-top: 92px; padding-bottom: 64px; }
  body.profile-page.unified-theme .profile-portrait-frame { --portrait-size: 218px; }
  body.profile-page.unified-theme .profile-identity h1 { margin-top: 20px; font-size: 52px; }
  body.profile-page.unified-theme .profile-contact-panel { padding-top: 92px; padding-bottom: 22px; }
  body.profile-page.unified-theme .profile-contact-panel h2 { font-size: 66px; }
  body.profile-page.unified-theme .profile-contact-intro { margin-top: 18px; font-size: 14px; }
  body.profile-page.unified-theme .profile-contact-list > div { padding-block: 14px; }
  body.profile-page.unified-theme .profile-page-footer { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  body.profile-page.unified-theme .profile-page-shell { scroll-behavior: auto; }
}
