:root {
  --serif: Georgia, "Times New Roman", serif;
  --section-space: clamp(88px, 8vw, 116px);
  --section-gap: clamp(44px, 4.5vw, 64px);
}

.wordmark { font-size: 14px; letter-spacing: .02em; }
nav { gap: 22px; }
nav a { position: relative; padding: 6px 0; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; border-bottom: 1px solid var(--blue); transition: right .22s ease; }
nav a:hover::after { right: 0; }
.section-label { color: var(--blue); }
.section-name { color: var(--blue); font-size: 13px; line-height: 1.4; }
section[id], footer[id] { scroll-margin-top: 76px; }

.statement,
.experience,
.skills { padding: var(--section-space) 4.2vw; }
.experience { background: var(--paper); color: var(--ink); }
.experience .company,
.experience .experience-grid ul,
.experience .experience-grid li { border-color: var(--line); }
.experience-main { min-width: 0; }
.role-heading h2 { font-size: clamp(46px, 5.8vw, 96px); }
.experience-grid > p { max-width: 620px; }
.experience-grid li > * { min-width: 0; }
.statement h2,
.skills h2,
.medical h2,
.projects h2 { font-size: clamp(48px, 6.4vw, 104px); }
.body-columns { margin-top: var(--section-gap); }
.path { padding-bottom: 82px; }
.company { margin-top: 58px; }
.experience-grid { margin-top: 34px; }
.skills h2 { margin-bottom: 52px; }
.skill-grid { gap: 34px 30px; }
.medical { background: var(--paper); border-top: 1px solid var(--line); }
.medical-top > p { max-width: 440px; }
.medical-visual figure,
.project-feature,
.project-brief { border: 1px solid var(--line); }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* Portrait treatment: natural color, soft medical-blue frame, no ID-photo effect. */
.portrait {
  width: clamp(184px, 18vw, 270px);
  padding: 8px;
  border: 1px solid rgba(30, 77, 113, .34);
  background: rgba(246, 246, 242, .9);
  box-shadow: 0 16px 34px rgba(30, 77, 113, .12);
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(30, 77, 113, .12);
  border-radius: 50%;
  pointer-events: none;
}
.portrait img {
  filter: saturate(.82) contrast(.98) brightness(1.02);
  mix-blend-mode: normal;
}
.portrait figcaption {
  left: 50%;
  right: auto;
  bottom: -28px;
  margin: 0;
  transform: translateX(-50%);
  color: var(--blue);
  font-size: 9px;
  letter-spacing: .05em;
}

.hero {
  min-height: calc(100dvh - 76px);
  padding-bottom: 32px;
}

h1 {
  font-size: clamp(92px, 15vw, 230px);
  line-height: .72;
  margin-bottom: 66px;
}

h1 small {
  display: inline-block;
  margin-left: 28px;
  color: var(--blue);
  font: clamp(18px, 2.2vw, 34px) var(--sans);
  letter-spacing: .04em;
  vertical-align: baseline;
}

.market-ornament {
  position: absolute;
  top: 31%;
  right: 29vw;
  width: clamp(190px, 18vw, 275px);
  height: 230px;
  color: var(--blue);
  pointer-events: none;
}

.market-axis {
  position: absolute;
  top: 50%;
  left: -18%;
  width: 118%;
  border-top: 1px solid rgba(30, 77, 113, .25);
}

.market-ring {
  position: absolute;
  border: 1px solid rgba(30, 77, 113, .2);
  border-radius: 50%;
}

.ring-outer { width: 158px; height: 158px; top: 22px; right: 8px; }
.ring-inner { width: 96px; height: 96px; top: 53px; right: 39px; border-color: rgba(30, 77, 113, .13); }

.market-node {
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
}

.node-primary {
  width: 7px;
  height: 7px;
  top: 96px;
  right: 84px;
  box-shadow: 0 0 0 5px rgba(30, 77, 113, .08);
}

.node-secondary { width: 4px; height: 4px; top: 148px; right: 15px; }
.market-ornament p { position: absolute; top: 5px; left: 0; margin: 0; font: 10px/1.45 var(--mono); letter-spacing: .07em; }
.market-ornament small { position: absolute; bottom: 19px; left: 0; font: 9px var(--mono); letter-spacing: .04em; color: rgba(30, 77, 113, .72); }

.hero-bottom {
  grid-template-columns: 1fr 1fr;
  max-width: 850px;
  gap: 42px;
}

.hero-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  font: 11px var(--mono);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.button-primary { background: var(--ink); color: var(--paper); }
.button-secondary { color: var(--ink); }
.button-primary:hover { background: var(--blue); border-color: var(--blue); }
.button-secondary:hover { background: var(--white); }
.button-primary:active,
.button-secondary:active { transform: translateY(1px); }

.projects {
  padding: var(--section-space) 4.2vw;
  border-top: 1px solid var(--line);
}

.projects-intro {
  display: grid;
  grid-template-columns: 25% 1fr;
  gap: 30px;
}

.projects-intro h2,
.projects-intro > p { grid-column: 2; }
.projects-intro > p {
  max-width: 590px;
  margin: 30px 0 0;
  font-size: 16px;
  line-height: 1.55;
}

.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr);
  gap: 20px;
  margin-top: 52px;
  align-items: stretch;
}

.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .8fr);
  background: var(--white);
  min-width: 0;
  min-height: 620px;
}

.project-visual {
  display: block;
  overflow: hidden;
  min-height: 430px;
  min-width: 0;
  background: #e8ebe7;
}

.project-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  transition: transform .45s ease;
}

.project-visual:hover img { transform: scale(1.018); }
.project-process {
  position: relative;
  padding: 34px;
  color: var(--paper);
  background: var(--blue);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 620px;
}
.process-intro { max-width: 460px; }
.process-intro > span,
.process-domain { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.process-intro strong {
  display: block;
  margin: 26px 0 18px;
  font: 400 clamp(42px, 4.6vw, 72px)/.86 var(--serif);
  letter-spacing: -.055em;
}
.process-intro small { display: block; max-width: 310px; font-size: 13px; line-height: 1.55; color: #d8e5ec; }
.process-route { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 32px 0 24px; padding-top: 112px; }
.process-curve { position: absolute; inset: 0 0 auto; width: 100%; height: 104px; overflow: visible; }
.process-path-shadow,
.process-path { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.process-path-shadow { stroke: rgba(255,255,255,.16); stroke-width: 7; }
.process-path { stroke: #d9ebf4; stroke-width: 2; }
.process-node { position: absolute; width: 10px; height: 10px; border: 2px solid #eef7fb; border-radius: 50%; background: var(--blue); transform: translate(-50%,-50%); }
.process-node:nth-of-type(1) { left: 2.8%; top: 62px; }
.process-node:nth-of-type(2) { left: 26.6%; top: 31px; }
.process-node:nth-of-type(3) { left: 50%; top: 66px; }
.process-node:nth-of-type(4) { left: 72.8%; top: 29px; }
.process-node:nth-of-type(5) { left: 97.2%; top: 50px; }
.process-route span { min-width: 0; }
.process-route b { display: block; font: 500 11px var(--mono); }
.process-route small { display: block; margin-top: 6px; color: #c8dce7; font-size: 10px; }
.process-domain { align-self: flex-end; border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 5px; }
.project-copy,
.project-brief { padding: 30px; }
.project-copy { display: flex; flex-direction: column; }

.project-copy h3,
.project-brief h3 {
  margin: 20px 0;
  font: clamp(34px, 3.2vw, 50px)/.94 var(--serif);
  letter-spacing: -.04em;
}

.project-copy h3 span,
.project-brief h3 span {
  display: block;
  margin-top: 14px;
  color: #5f6264;
  font: 15px var(--sans);
  letter-spacing: 0;
}

.project-copy > p,
.project-brief > p { font-size: 14px; line-height: 1.55; }
.project-outcomes { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.project-outcomes li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font: 11px var(--mono); }
.project-outcomes li span { color: #676b6e; text-align: right; }
.project-links { display: flex; gap: 22px; margin-top: auto; padding-top: 28px; }
.project-links a {
  color: var(--ink);
  font: 11px var(--mono);
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.project-brief {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #e8ebe7;
  min-height: 620px;
}

.project-brief ul {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
}

.project-brief li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font: 11px var(--mono);
}

.footer { min-height: 64vh; }
.footer-kicker { margin-top: 10vh; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .project-visual img,
  .button-primary,
  .button-secondary { transition: none; }
}

@media (max-width: 1050px) and (min-width: 781px) {
  .header-link { display: none; }
  nav { margin-right: 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-feature { grid-template-columns: 1.25fr .75fr; }
  .project-brief { min-height: 480px; }
}

@media (max-width: 780px) {
  section[id], footer[id] { scroll-margin-top: 63px; }
  .wordmark { font-size: 12px; }
  .hero { min-height: calc(100dvh - 63px); }
  h1 { font-size: 27vw; margin-bottom: 52px; }
  h1 small { display: block; margin: 18px 0 0; font-size: 18px; }
  .market-ornament { display: none; }
  .hero-actions { margin-top: 24px; }
  .statement,
  .experience,
  .medical,
  .projects,
  .skills { padding: 72px 20px; }
  .body-columns { margin-top: 34px; }
  .company { margin-top: 40px; }
  .role-heading h2 { font-size: clamp(40px, 13vw, 56px); }
  .portrait { width: 164px; height: 164px; padding: 7px; }
  .portrait figcaption { bottom: auto; left: 0; transform: none; margin-top: 9px; }
  .experience-grid li { align-items: flex-start; }
  .skills h2 { margin-bottom: 34px; }
  .projects-intro { grid-template-columns: 1fr; gap: 30px; }
  .projects-intro h2,
  .projects-intro > p { grid-column: auto; }
  .projects-intro > p { margin-top: 0; }
  .projects-grid,
  .project-feature { grid-template-columns: 1fr; }
  .project-feature { min-height: 0; }
  .project-visual { width: 100%; min-height: 0; aspect-ratio: 16/10; }
  .project-process { aspect-ratio: auto; min-height: 440px; padding: 24px; }
  .process-intro strong { font-size: clamp(46px, 15vw, 68px); }
  .process-route { grid-template-columns: 1fr 1fr; margin-top: 36px; padding: 16px 0 0 18px; gap: 0; border-left: 1px solid rgba(255,255,255,.42); }
  .process-curve { display: none; }
  .process-node { display: none; }
  .process-route span { padding: 8px 8px 13px 0; }
  .process-route span:nth-of-type(even) { padding-left: 12px; }
  .project-copy,
  .project-brief { padding: 24px; }
  .project-brief { min-height: 390px; }
  .footer { min-height: 560px; }
  .footer-kicker { margin-top: 80px; }
}
