/* The portfolio's reading flow: introduction, visible work, experience, contact. */
.portfolio-page { --shell: min(1200px, calc(100% - 80px)); background: #f7f8fa; }
.portfolio-page .site-header { background: rgba(247,248,250,.94); }
.portfolio-page .nav-shell { min-height: 80px; }
.portfolio-page .brand-copy, .portfolio-page .site-nav a { font-size: 14px; }
.portfolio-page .availability { font-family: var(--font-sans); text-transform: none; font-size: 13px; letter-spacing: 0; }
.portfolio-page .nav-email { font-size: 13px; }
.portfolio-page a:focus-visible, .portfolio-page button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.portfolio-page .home-hero { display: grid; grid-template-columns: minmax(0, 1fr) 200px; column-gap: 64px; align-items: start; padding-block: 44px 40px; }
.hero-intro { display: contents; }
.hero-intro > * { grid-column: 1; min-width: 0; }
.hero-availability { grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0 0 20px; font-size: 13px; color: var(--muted); }
.hero-availability > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-role { grid-row: 2; margin-bottom: 14px; color: var(--accent); font-size: 17px; font-weight: 600; }
.hero-role span { font-weight: 600; }
.home-hero h1 { grid-row: 3; margin: 0 0 20px; max-width: 860px; font-size: clamp(2.4rem, 4.1vw, 3.75rem); line-height: 1.08; font-weight: 550; letter-spacing: -.05em; text-wrap: initial; }
.hero-description { grid-row: 4; max-width: 670px; margin-bottom: 16px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-stack { grid-row: 5; display: flex; flex-wrap: wrap; column-gap: 9px; margin-bottom: 24px; color: var(--muted); font-size: 14px; }
.hero-stack span { color: var(--line-control); }
.hero-actions { grid-row: 6; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button { display: inline-flex; gap: 24px; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; font-weight: 600; transition: background 160ms, border-color 160ms; }
.button:hover { border-color: var(--ink); background: var(--surface-muted); }
.button-primary { color: var(--surface); background: var(--ink); border-color: var(--ink); }
.button-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.hero-contact { display: inline-flex; gap: 16px; align-items: center; min-height: 46px; padding-inline: 12px; font-size: 14px; color: var(--muted); }
.hero-contact:hover { color: var(--ink); }
.hero-signature { grid-column: 2; grid-row: 3 / 6; display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; }
.hero-signature img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; }
.hero-signature figcaption { font-size: 20px; font-weight: 600; letter-spacing: -.025em; }
.home-section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 30px; margin-bottom: 28px; border-top: 1px solid var(--line); }
.home-section-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; font-weight: 580; }
.home-section-heading p, .home-section-heading > a { margin: 0; font-size: 14px; color: var(--muted); }
.work-feature { display: grid; grid-template-columns: 1.14fr 1fr; background: var(--surface); border: 1px solid var(--line); }
.work-image { display: flex; align-items: center; justify-content: center; min-width: 0; margin: 0; padding: 32px; background: #edf0f4; overflow: hidden; }
.work-image .project-media-link { position: relative; display: block; width: 100%; aspect-ratio: auto; overflow: visible; border: 0; background: transparent; }
.work-image img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 24px -12px rgba(20,30,50,.2); }
.work-image .project-media-link:hover img { transform: none; }
.image-expand { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.image-expand svg { width: 14px; height: 14px; flex: none; }
.work-image .project-media-link:is(:hover, :focus-visible) .image-expand-label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.work-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 34px 36px; }
.work-eyebrow { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; width: 100%; margin: 0 0 17px; color: var(--accent); font-size: 13px; font-weight: 600; }
.work-eyebrow > span { font-weight: 400; color: var(--muted); white-space: nowrap; }
.work-copy h3 { margin: 0 0 17px; font-size: clamp(1.7rem, 2.7vw, 2.3rem); font-weight: 550; letter-spacing: -.04em; line-height: 1.16; }
.work-description { margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.work-ownership { margin: 0 0 20px; }
.work-ownership dt { margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.work-ownership dd { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.work-stack { margin: 0 0 17px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.case-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; padding-block: 9px; margin-top: auto; color: var(--accent); font-size: 14px; font-weight: 600; text-underline-offset: 5px; }
.case-link:hover, .text-link:hover { text-decoration: underline; }
.work-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; margin-top: 24px; }
.work-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); background: var(--surface); }
.work-card .work-image { flex-shrink: 0; }
.work-preview-frame { display: flex; align-items: center; aspect-ratio: 1672 / 941; }
.work-card .work-copy { flex: 1; }
.work-image-research img { aspect-ratio: 3024 / 1472; }
.work-card h3 { font-size: clamp(1.65rem, 2.3vw, 2rem); }
.other-work { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 42px; padding-top: 35px; }
.other-work article { padding-top: 24px; border-top: 1px solid var(--line); }
.other-work h3 { margin: 0 0 12px; font-size: 21px; font-weight: 550; letter-spacing: -.025em; }
.other-work p:not(.work-eyebrow):not(.work-stack) { margin: 0 0 14px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.other-work .work-eyebrow { margin-bottom: 12px; }
.other-work .work-stack { margin-top: 17px; }
.home-experience { padding-top: 76px; }
.home-experience .home-section-heading { margin-bottom: 10px; }
.career-row { display: grid; grid-template-columns: 175px 1fr 1.04fr; gap: 28px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.career-row p { margin: 0; }
.career-date { padding-top: 4px; font-size: 13px; color: var(--muted); }
.career-row h3 { margin: 0 0 6px; font-size: 18px; font-weight: 580; letter-spacing: -.025em; }
.career-role { font-size: 13px; color: var(--muted); }
.career-scope { font-size: 15px; line-height: 1.6; color: var(--muted); }
.portfolio-page .home-about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 90px; padding-block: 84px; }
.about-intro .section-label { font-size: 12px; margin-bottom: 18px; }
.about-intro h2 { margin-bottom: 24px; font-size: clamp(2rem,3.3vw,2.8rem); line-height: 1.12; font-weight: 550; letter-spacing: -.04em; }
.about-intro > p:not(.section-label) { color: var(--muted); font-size: 16px; line-height: 1.7; }
.about-intro > p.about-education { margin-top: 28px; font-size: 13px; }
.capabilities { padding-top: 3px; }
.capabilities h3 { font-size: 18px; font-weight: 550; margin-bottom: 23px; }
.capabilities dl { margin: 0; }
.capabilities dl > div { padding-block: 19px; border-top: 1px solid var(--line); }
.capabilities dt { margin: 0 0 7px; font-size: 14px; font-weight: 600; }
.capabilities dd { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.65; }
.portfolio-page .page-finale { background: #171e28; color: #edf0f5; }
.home-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; padding-block: 64px 60px; }
.home-contact .section-label { color: #a8bfdc; font-size: 12px; }
.home-contact h2 { margin: 0 0 18px; max-width: 600px; font-size: clamp(2rem,3.8vw,3.2rem); font-weight: 550; line-height: 1.1; letter-spacing: -.04em; }
.home-contact p:not(.section-label) { max-width: 510px; color: #c0c9d5; line-height: 1.65; }
.home-contact p.contact-availability { margin-top: 23px; margin-bottom: 0; font-size: 14px; line-height: 1.8; }
.home-contact .contact-action { align-self: center; min-width: 0; }
.home-contact .contact-email-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding-block: 10px; border-bottom: 1px solid #536174; }
.home-contact .contact-email-row a { padding-inline: 0; font-size: clamp(1.1rem,2.1vw,1.65rem); letter-spacing: -.03em; overflow-wrap: anywhere; }
.home-contact .contact-email-row button { min-height: 44px; padding: 8px 13px; border: 1px solid #8291a5; background: transparent; color: #edf0f5; font-size: 13px; cursor: pointer; }
.home-contact .contact-email-row button:hover { background: #303e50; }
.home-contact .contact-links { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 16px; }
.home-contact .contact-links a { display: inline-flex; justify-content: flex-start; gap: 10px; align-items: center; min-height: 44px; padding: 10px 0; border: 0; font-size: 14px; color: #d3dce9; }
.home-contact .contact-link-label { text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 1px; text-underline-offset: 5px; transition: text-decoration-color 160ms ease; }
.home-contact .contact-links a:is(:hover, :focus-visible) { background: transparent; color: var(--text-inverse); }
.home-contact .contact-links a:is(:hover, :focus-visible) .contact-link-label { text-decoration-color: currentColor; }
.home-contact p.contact-response { margin: 16px 0 0; font-size: 13px; }
.portfolio-page .footer { flex-direction: row; align-items: center; padding-block: 25px; min-height: 0; font-family: var(--font-sans); border-top: 1px solid #3c4a5c; color: #bdc7d5; }
.portfolio-page .footer p, .portfolio-page .footer a { font-size: 12px; line-height: 1.6; text-transform: none; letter-spacing: 0; }
.portfolio-page .footer a { gap: 8px; }
.portfolio-page .page-finale a:focus-visible, .portfolio-page .page-finale button:focus-visible { outline-color: #b4d2f5; }
@media(min-width:1281px) { .portfolio-page .nav-shell { grid-template-columns: 1fr auto 1fr; } }
@media(max-width:1100px) { .portfolio-page .home-hero { grid-template-columns: minmax(0, 1fr) 180px; column-gap: 40px; } .hero-signature img { width: 180px; height: 180px; } .work-copy { padding: 28px; } .work-image { padding: 24px; } .portfolio-page .home-about { gap: 48px; } .career-row { grid-template-columns: 145px 1fr 1fr; gap: 20px; } .home-contact { gap: 32px; } }
@media(max-width:900px) {
  .portfolio-page .home-hero { grid-template-columns: minmax(0, 1fr); }
  .hero-signature { grid-column: 1; grid-row: 1; flex-direction: row; gap: 18px; margin-bottom: 22px; }
  .hero-signature img { width: 88px; height: 88px; }
  .hero-availability { grid-row: 2; }
  .hero-role { grid-row: 3; }
  .home-hero h1 { grid-row: 4; }
  .hero-description { grid-row: 5; }
  .hero-stack { grid-row: 6; }
  .hero-actions { grid-row: 7; }
}
@media(max-width:760px) {
  .portfolio-page { --shell: calc(100% - 40px); }
  .portfolio-page .nav-shell { min-height: 68px; }
  .portfolio-page .home-hero { padding-block: 24px 30px; }
  .hero-availability { gap: 6px; margin-bottom: 16px; font-size: 12px; }
  .hero-location { color: var(--muted); }
  .hero-role { font-size: 14px; margin-bottom: 13px; }
  .home-hero h1 { font-size: clamp(2.05rem,6.1vw,3rem); margin-bottom: 18px; letter-spacing: -.045em; }
  .desktop-break { display: none; }
  .hero-description { font-size: 16px; margin-bottom: 16px; line-height: 1.6; }
  .hero-stack { font-size: 12px; column-gap: 7px; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }
  .hero-contact { padding: 6px 0; }
  .button { gap: 20px; padding-inline: 15px; }
  .home-section-heading { padding-top: 23px; margin-bottom: 21px; gap: 8px; }
  .home-section-heading h2 { font-size: 22px; }
  .home-section-heading p { font-size: 13px; }
  .work-feature, .work-pair { grid-template-columns: 1fr; }
  .work-image { padding: 24px 20px 18px; }
  .work-copy { padding: 24px; }
  .work-copy h3, .work-card h3 { font-size: 28px; }
  .work-pair { gap: 22px; margin-top: 22px; }
  .work-card .work-image { min-height: 220px; padding-block: 24px; }
  .other-work { gap: 24px; grid-template-columns: 1fr; padding-top: 28px; }
  .other-work h3 { font-size: 20px; }
  .home-experience { padding-top: 48px; }
  .career-row { grid-template-columns: 1fr; gap: 10px; padding-block: 23px; }
  .career-date { padding-top: 0; font-size: 12px; }
  .career-scope { font-size: 14px; }
  .portfolio-page .home-about { grid-template-columns: 1fr; gap: 30px; padding-block: 52px; }
  .about-intro h2 { font-size: 34px; }
  .home-contact { grid-template-columns: 1fr; padding-block: 42px 36px; gap: 33px; }
  .home-contact h2 { font-size: 36px; }
  .home-contact .contact-email-row a { font-size: 23px; }
  .home-contact .contact-links { column-gap: clamp(24px, 7vw, 28px); }
  .portfolio-page .footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
  .portfolio-page .footer p:nth-child(2) { display: none; }
}
@media(max-width:420px) {
  .hero-availability .hero-location { width: 100%; padding-left: 12px; }
  .hero-contact { display: none; }
  .hero-actions .button { flex: 1; font-size: 13px; gap: 12px; }
  .home-contact .contact-email-row a { font-size: 21px; }
  .work-copy { padding: 23px 20px; }
}
@media(prefers-reduced-motion:reduce) { .work-image img, .button { transition: none; } }

.hero-location::before { content: "·"; margin-right: 7px; }
.work-feature > .work-image { grid-column: 1; grid-row: 1 / 3; }
.work-feature-heading { grid-column: 2; grid-row: 1; padding: 34px 36px 0; }
.work-feature-heading h3 { margin: 0; font-size: clamp(1.7rem, 2.7vw, 2.3rem); font-weight: 550; letter-spacing: -.04em; line-height: 1.16; }
.work-feature .work-copy { grid-column: 2; grid-row: 2; padding-top: 17px; }
.portfolio-page .page-finale { margin-top: 0; }
@media(max-width:1100px) { .work-feature-heading { padding: 28px 28px 0; } }
@media(max-width:760px) {
  .work-feature-heading { grid-column: 1; grid-row: 1; padding: 24px; }
  .work-feature-heading h3 { font-size: 28px; }
  .work-feature > .work-image { grid-column: 1; grid-row: 2; }
  .work-feature .work-copy { grid-column: 1; grid-row: 3; padding-top: 24px; }
}
@media(max-width:420px) { .hero-location::before { content: none; } .work-feature-heading { padding: 23px 20px; } }
