:root {
  --white: #ffffff;
  --warm-white: #fff9f6;
  --peach-050: #fff1eb;
  --peach-100: #fbe1d5;
  --peach-300: #f2b49c;
  --terracotta: #bd6752;
  --terracotta-dark: #914734;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --warm-gray: #6d6865;
  --muted: #7a726e;
  --charcoal: #272524;
  --line: #eadfd9;
  --line-strong: #d9c7be;
  --sans: "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shadow-soft: 0 24px 70px rgba(78, 48, 38, 0.12);
  --page: min(1180px, calc(100% - 64px));
  --header-height: 82px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(189, 103, 82, 0.36);
  outline-offset: 4px;
}

::selection {
  background: var(--peach-100);
  color: var(--charcoal);
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  text-decoration: none;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.92);
  transition: border-color 200ms ease, box-shadow 200ms ease, height 200ms ease;
}

.site-header.is-scrolled {
  height: 70px;
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(53, 39, 34, 0.06);
}

.page-progress {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--peach-100);
}

.page-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--terracotta);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.nav-shell {
  width: var(--page);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--charcoal);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--peach-100);
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
}

.main-nav a {
  position: relative;
  padding-block: 10px;
  color: var(--warm-gray);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms var(--ease-out);
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.main-nav a.is-active {
  color: var(--charcoal);
}

.main-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (hover: hover) and (pointer: fine) {
  .main-nav a:hover { color: var(--charcoal); }
  .main-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: var(--charcoal);
  transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}

.hero {
  position: relative;
  min-height: 790px;
  overflow: hidden;
  padding: calc(var(--header-height) + 74px) 0 94px;
  background: var(--warm-white);
}

.hero-backdrop {
  position: absolute;
  top: 18%;
  right: -90px;
  width: 410px;
  height: 410px;
  border: 1px solid var(--peach-300);
  border-radius: 50%;
  opacity: 0.34;
}

.hero-backdrop::after {
  position: absolute;
  right: 118px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: var(--peach-100);
  content: "";
  opacity: 0.62;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  gap: clamp(64px, 8vw, 116px);
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--terracotta-dark);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 28px;
  height: 1px;
  background: var(--terracotta);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.hero h1 em {
  color: var(--terracotta);
  font-weight: 400;
}

.professional-title {
  margin: 28px 0 0;
  color: var(--charcoal);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero-summary {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--warm-gray);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 21px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.09em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.button-primary {
  background: var(--terracotta-dark);
  color: var(--white);
}

.button-secondary {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
}

.button:active { transform: scale(0.98); }

@media (hover: hover) and (pointer: fine) {
  .button:hover { transform: translateY(-2px); }
  .button-primary:hover { background: #713326; }
  .button-secondary:hover {
    border-color: var(--terracotta);
    background: var(--white);
  }
}

.text-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link span {
  color: var(--terracotta);
  font-size: 17px;
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .text-link:hover span { transform: translate(3px, 3px); }
}

.availability-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.availability-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--peach-300);
}

.hero-focus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 650px;
  margin: 42px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.hero-focus li {
  display: grid;
  gap: 5px;
  padding-right: 18px;
  color: var(--warm-gray);
  font-size: 13px;
  line-height: 1.35;
}

.hero-focus span {
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 17px;
}

.hero-portrait {
  position: relative;
  z-index: 1;
  margin: 0;
}

.hero-portrait::before {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -22px;
  width: 76%;
  height: 54%;
  border: 1px solid var(--peach-300);
  border-radius: var(--radius-lg);
  content: "";
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.82;
  border-radius: 210px 210px 28px 28px;
  background: #ece8e0;
  box-shadow: var(--shadow-soft);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-portrait figcaption {
  position: absolute;
  right: -24px;
  bottom: 38px;
  min-width: 190px;
  border-left: 3px solid var(--terracotta);
  border-radius: 4px var(--radius-sm) var(--radius-sm) 4px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(63, 43, 35, 0.12);
  padding: 16px 18px;
  color: var(--charcoal);
  font-size: 13px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.35;
}

.hero-portrait figcaption span {
  display: block;
  margin-bottom: 5px;
  color: var(--terracotta-dark);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section {
  padding: clamp(88px, 9vw, 130px) 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 720px);
  gap: 26px;
  align-items: start;
  margin-bottom: clamp(52px, 6vw, 78px);
}

.section-number {
  margin: 0;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.profile-section {
  background: var(--white);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(54px, 8vw, 110px);
  padding-left: 98px;
}

.profile-lead {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 41px);
  letter-spacing: -0.025em;
  line-height: 1.34;
}

.profile-details > p {
  margin: 0;
  color: var(--warm-gray);
  font-size: 17px;
}

.profile-facts {
  display: grid;
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
}

.profile-facts div {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.profile-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.trajectory-section {
  background: var(--warm-white);
}

.timeline {
  margin-left: 98px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 154px 34px minmax(0, 1fr);
  min-height: 230px;
}

.timeline-date {
  padding-top: 5px;
  font-size: 13px;
  line-height: 1.45;
}

.timeline-date span,
.timeline-date strong {
  display: block;
}

.timeline-date span {
  color: var(--warm-gray);
}

.timeline-date strong {
  color: var(--terracotta-dark);
  font-weight: 700;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  position: absolute;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.timeline-item:last-child .timeline-marker::before {
  display: none;
}

.timeline-marker span {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin-top: 8px;
  border: 3px solid var(--warm-white);
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 1px var(--terracotta);
}

.timeline-content {
  padding: 0 0 58px 36px;
}

.timeline-content .role,
.entry-type,
.degree-label {
  margin: 0 0 8px;
  color: var(--terracotta-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.timeline-content > p:not(.role) {
  max-width: 730px;
  margin: 14px 0 0;
  color: var(--warm-gray);
}

.inline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.inline-tags li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  padding: 6px 11px;
  color: var(--warm-gray);
  font-size: 11px;
  line-height: 1.2;
}

.education-section {
  background: var(--white);
}

.degree-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 48px;
  align-items: end;
  margin-left: 98px;
  border: 1px solid var(--line);
  border-top-color: var(--terracotta);
  border-radius: var(--radius-md);
  background: var(--warm-white);
  padding: clamp(28px, 4vw, 48px);
}

.degree-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(31px, 3.5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.degree-card > div:first-child > p:last-child {
  margin: 13px 0 0;
  color: var(--warm-gray);
}

.degree-meta {
  display: grid;
  gap: 12px;
  border-left: 1px solid var(--line-strong);
  padding-left: 30px;
}

.degree-meta p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
}

.degree-meta span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clinical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 60px 0 0 98px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.clinical-entry {
  min-height: 330px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 44px);
}

.entry-date {
  margin: 0 0 28px;
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 16px;
}

.clinical-entry h3 {
  max-width: 480px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(23px, 2.6vw, 33px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.entry-location {
  margin: 11px 0 0;
  color: var(--warm-gray);
  font-size: 14px;
}

.clinical-entry ul {
  display: grid;
  gap: 7px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--warm-gray);
  font-size: 14px;
  list-style: none;
}

.clinical-entry li {
  position: relative;
  padding-left: 17px;
}

.clinical-entry li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--peach-300);
  content: "";
}

.courses-section {
  background: var(--warm-white);
}

.course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 0 98px;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  counter-reset: none;
  list-style: none;
}

.course-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-height: 104px;
  align-items: start;
  border-bottom: 1px solid var(--line-strong);
  padding: 22px 28px 22px 0;
}

.course-list li:nth-child(odd) {
  border-right: 1px solid var(--line-strong);
}

.course-list li:nth-child(even) {
  padding-left: 28px;
}

.course-list span {
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 14px;
}

.course-list p {
  margin: 0;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.5;
}

.skills-section {
  background: var(--white);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-left: 98px;
}

.skill-group {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: clamp(30px, 4vw, 52px);
}

.skill-group:first-child {
  background: var(--charcoal);
  color: var(--white);
}

.skill-group:last-child {
  background: var(--peach-050);
}

.skill-index {
  position: absolute;
  top: 18px;
  right: 24px;
  margin: 0;
  color: var(--peach-300);
  font-family: var(--serif);
  font-size: 48px;
  opacity: 0.55;
}

.skill-group h3 {
  position: relative;
  margin: 0 0 30px;
  font-family: var(--serif);
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 400;
}

.skill-group ul {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-group li {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 13px 0;
  font-size: 14px;
}

.skill-group:last-child li {
  border-top-color: var(--line-strong);
}

.contact-section {
  background: var(--peach-100);
  padding: clamp(84px, 9vw, 126px) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.72fr);
  gap: clamp(64px, 10vw, 148px);
  align-items: end;
}

.contact-intro .section-number {
  margin-bottom: 28px;
  color: var(--terracotta);
}

.contact-intro h2 {
  max-width: 660px;
}

.contact-intro > p:last-child {
  max-width: 510px;
  margin: 24px 0 0;
  color: var(--warm-gray);
}

.contact-links {
  display: grid;
  margin: 0;
  font-style: normal;
}

.contact-links a {
  position: relative;
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(145, 71, 52, 0.28);
  padding: 20px 54px 20px 0;
  text-decoration: none;
}

.contact-links a:last-child {
  border-bottom: 1px solid rgba(145, 71, 52, 0.28);
}

.contact-links span {
  color: var(--terracotta-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-links strong {
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 400;
}

.contact-links i {
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--terracotta-dark);
  font-size: 22px;
  font-style: normal;
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .contact-links a:hover i { transform: translate(4px, -70%); }
}

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0;
}

.site-footer .page-shell {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.site-footer p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.toast {
  position: fixed;
  z-index: 300;
  right: 24px;
  bottom: 24px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  gap: 12px;
  width: min(420px, calc(100% - 32px));
  align-items: start;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: 0 18px 60px rgba(55, 38, 32, 0.18);
  padding: 17px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.toast > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--peach-100);
  color: var(--terracotta-dark);
  font-family: var(--serif);
  font-size: 14px;
}

.toast p {
  margin: 1px 0 0;
  color: var(--warm-gray);
  font-size: 13px;
  line-height: 1.45;
}

.toast strong {
  display: block;
  color: var(--charcoal);
}

.toast button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--warm-gray);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero-backdrop {
    animation: hero-disc-arrive 900ms var(--ease-out) 80ms both;
  }

  .js .hero-copy.is-visible > .eyebrow { animation: hero-content-arrive 560ms var(--ease-out) both; }
  .js .hero-copy.is-visible > h1 { animation: hero-content-arrive 560ms var(--ease-out) 70ms both; }
  .js .hero-copy.is-visible > .professional-title { animation: hero-content-arrive 560ms var(--ease-out) 140ms both; }
  .js .hero-copy.is-visible > .hero-summary { animation: hero-content-arrive 560ms var(--ease-out) 210ms both; }
  .js .hero-copy.is-visible > .hero-actions { animation: hero-content-arrive 560ms var(--ease-out) 290ms both; }
  .js .hero-copy.is-visible > .availability-note { animation: hero-content-arrive 560ms var(--ease-out) 360ms both; }
  .js .hero-copy.is-visible > .hero-focus { animation: hero-content-arrive 560ms var(--ease-out) 430ms both; }
  .js .hero-copy.is-visible > .hero-secondary-links { animation: hero-content-arrive 560ms var(--ease-out) 500ms both; }
  .js .hero-copy.is-visible > .hero-focus li:nth-child(2) { animation: hero-content-arrive 460ms var(--ease-out) 500ms both; }
  .js .hero-copy.is-visible > .hero-focus li:nth-child(3) { animation: hero-content-arrive 460ms var(--ease-out) 560ms both; }
  .js .hero--text h1 em::after { animation: name-rule-arrive 520ms var(--ease-out) 560ms both; }

  .js .hero-copy:focus-within > *,
  .js .hero-copy:focus-within > .hero-focus li {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .js .reveal.is-visible:not(.hero-copy) {
    animation: section-arrive 500ms var(--ease-out) both;
  }

  .js .reveal:focus-within {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .js .timeline-item.is-visible .timeline-marker::before {
    animation: timeline-stem-arrive 620ms var(--ease-out) 70ms both;
  }

  .js .timeline-item.is-visible .timeline-marker span {
    animation: marker-arrive 360ms var(--ease-out) 100ms both;
  }

  .js .timeline-item:nth-child(2).is-visible,
  .js .clinical-entry:nth-child(2).is-visible { animation-delay: 60ms; }
  .js .timeline-item:nth-child(3).is-visible,
  .js .clinical-entry:nth-child(3).is-visible { animation-delay: 120ms; }
  .js .clinical-entry:nth-child(4).is-visible { animation-delay: 180ms; }

  .js .recent-courses .course-recent:nth-child(2).is-visible { animation-delay: 70ms; }
  .js .recent-courses .course-recent:nth-child(3).is-visible { animation-delay: 140ms; }
}

@keyframes section-arrive {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-content-arrive {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-disc-arrive {
  from { opacity: 0; transform: translate(18px, -12px) scale(0.94) rotate(-7deg); }
  to { opacity: 0.22; transform: none; }
}

@keyframes name-rule-arrive {
  from { opacity: 0.35; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes timeline-stem-arrive {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

@keyframes marker-arrive {
  from { opacity: 0.45; transform: scale(0.78); }
  to { opacity: 1; transform: scale(1); }
}

.hero--text h1 em { position: relative; display: inline-block; }
.hero--text h1 em::after {
  position: absolute;
  right: 0;
  bottom: -0.12em;
  left: 0;
  height: 1px;
  background: var(--peach-300);
  content: "";
  transform: scaleX(1);
  transform-origin: left center;
}

@media (max-width: 1100px) {
  :root {
    --page: min(100% - 48px, 1040px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
    gap: 58px;
  }

  .profile-layout,
  .timeline,
  .degree-card,
  .clinical-grid,
  .course-list,
  .skills-grid {
    margin-left: 72px;
  }

  .profile-layout {
    padding-left: 0;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    padding: 18px 24px 28px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    visibility: hidden;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .main-nav a {
    min-height: 50px;
    border-bottom: 1px solid var(--line);
    padding: 15px 4px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 60px);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(48px, 8vw, 68px);
  }

  .hero-summary {
    font-size: 16px;
  }

  .hero-focus {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-focus li {
    grid-template-columns: 28px 1fr;
    gap: 10px;
  }

  .hero-portrait figcaption {
    right: -10px;
    min-width: 170px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}

@media (max-width: 768px) {
  :root {
    --page: calc(100% - 40px);
  }

  .hero {
    padding-bottom: 76px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-portrait {
    width: min(86%, 460px);
    margin-inline: auto;
  }

  .section-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
  }

  .section-number {
    font-size: 25px;
  }

  .profile-layout,
  .timeline,
  .degree-card,
  .clinical-grid,
  .course-list,
  .skills-grid {
    margin-left: 66px;
  }

  .timeline-item {
    grid-template-columns: 112px 28px minmax(0, 1fr);
  }

  .timeline-content {
    padding-left: 24px;
  }

  .degree-card {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .degree-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
    border-left: 0;
    padding-top: 22px;
    padding-left: 0;
  }

  .clinical-grid,
  .course-list,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .course-list li:nth-child(odd) {
    border-right: 0;
  }

  .course-list li:nth-child(even) {
    padding-left: 0;
  }

  .site-footer .page-shell {
    display: grid;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 32px);
  }

  .brand-copy strong {
    max-width: 210px;
  }

  .brand-copy span {
    display: none;
  }

  .hero {
    padding-top: calc(var(--header-height) + 42px);
  }

  .hero h1 {
    font-size: clamp(45px, 13.5vw, 62px);
    line-height: 0.98;
  }

  .professional-title {
    margin-top: 22px;
    font-size: 13px;
  }

  .hero-summary {
    line-height: 1.65;
  }

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

  .hero-actions .text-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .button {
    width: 100%;
    padding-inline: 14px;
  }

  .hero-portrait {
    width: min(92%, 400px);
  }

  .hero-portrait figcaption {
    right: -4px;
    bottom: 24px;
  }

  .section {
    padding: 76px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 42px;
  }

  .section-heading .section-number {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .profile-layout,
  .timeline,
  .degree-card,
  .clinical-grid,
  .course-list,
  .skills-grid {
    margin-left: 0;
  }

  .profile-lead {
    font-size: 26px;
  }

  .timeline-item {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: auto;
  }

  .timeline-date {
    grid-column: 2;
    display: flex;
    gap: 7px;
    padding: 0 0 8px 18px;
    font-size: 12px;
  }

  .timeline-marker {
    grid-row: 1 / span 2;
  }

  .timeline-marker::before {
    top: 9px;
  }

  .timeline-marker span {
    margin-top: 4px;
  }

  .timeline-content {
    grid-column: 2;
    padding: 0 0 54px 18px;
  }

  .timeline-content h3 {
    font-size: 27px;
  }

  .degree-card {
    padding: 26px;
  }

  .degree-meta {
    grid-template-columns: 1fr;
  }

  .clinical-grid {
    border-left: 0;
  }

  .clinical-entry {
    min-height: auto;
    border-right: 0;
    padding: 30px 0;
  }

  .course-list li {
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: auto;
    padding: 18px 0;
  }

  .skills-grid {
    gap: 14px;
  }

  .skill-group {
    padding: 30px 26px;
  }

  .contact-grid {
    gap: 42px;
  }

  .contact-links a {
    padding-right: 42px;
  }

  .toast {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 400px) {
  .brand-copy strong {
    max-width: 168px;
    font-size: 12px;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions .text-link {
    grid-column: auto;
  }

  .hero-focus {
    margin-top: 32px;
  }

  .profile-facts div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .contact-links strong {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  :root {
    --page: 100%;
  }

  html,
  body {
    background: #fff;
    color: #111;
    font-size: 9.5pt;
  }

  .site-header,
  .hero-actions,
  .availability-note,
  .toast,
  .site-footer,
  .hero-backdrop,
  .hero-portrait figcaption {
    display: none !important;
  }

  .hero,
  .section,
  .contact-section {
    min-height: 0;
    padding: 9mm 0;
    background: #fff !important;
  }

  .hero-grid {
    grid-template-columns: 1fr 44mm;
    gap: 12mm;
  }

  .hero h1 {
    font-size: 34pt;
  }

  .hero-summary {
    font-size: 10.5pt;
  }

  .portrait-frame {
    border-radius: 22mm 22mm 5mm 5mm;
    box-shadow: none;
  }

  .section-heading {
    margin-bottom: 8mm;
  }

  .section h2,
  .contact-section h2 {
    font-size: 24pt;
  }

  .profile-layout,
  .timeline,
  .degree-card,
  .clinical-grid,
  .course-list,
  .skills-grid {
    margin-left: 0;
  }

  .profile-layout {
    padding-left: 0;
  }

  .profile-lead {
    font-size: 16pt;
  }

  .timeline-item,
  .degree-card,
  .clinical-entry,
  .skill-group,
  .course-list li {
    break-inside: avoid;
  }

  .timeline-item {
    min-height: 0;
  }

  .timeline-content {
    padding-bottom: 8mm;
  }

  .skill-group:first-child {
    border-color: #555;
    background: #fff;
    color: #111;
  }

  .skill-group li {
    border-top-color: #ddd;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  a {
    text-decoration: none;
  }
}
