.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.chapter-heading { display: flex; justify-content: space-between; align-items: end; gap: 60px; margin-bottom: 48px; }
.chapter-heading h2, .about-heading h2 { font-size: clamp(44px, 5.5vw, 80px); line-height: 1.02; max-width: 16ch; text-wrap: balance; }
.chapter-heading h2 span, .about-heading h2 span { color: #a84c00; }
.chapter-heading > p { max-width: 43ch; font-size: 14px; color: var(--muted); }
.about-heading h2::before, .skills-section > .chapter-heading h2::before { content: ''; display: block; width: 60px; height: 6px; margin-bottom: 2px; border-radius: 3px; background: #ff9f16; }
section[id], article[id] { scroll-margin-top: 35px; }

/* About follows the user-supplied Curiosity Built Into Code reference. */
.about-story { --about-accent: #ff9f16; --about-emphasis: #ff7900; --about-muted: #626262; --about-line: #ddd; padding: clamp(40px, 2.7vw, 48px) 35px 50px; }
.about-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 28px; }
.about-heading h2 { font-size: clamp(44px, 5.42vw, 96px); line-height: 1; max-width: none; text-wrap: initial; }
.about-heading .about-title-line { display: block; font-size: .92em; line-height: 1.05; color: inherit; }
.about-heading .about-period { display: inline-block; width: .18em; height: .18em; margin-left: .025em; border-radius: 50%; background: var(--about-emphasis); color: transparent; overflow: hidden; line-height: .18; }
.about-heading > span { font-size: clamp(14px, .96vw, 17px); color: var(--about-muted); padding-bottom: 30px; white-space: nowrap; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); gap: clamp(30px, 3.5vw, 62px); align-items: start; }
.story-photo { margin: 0; min-width: 0; }
.story-photo img { width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; object-position: 50% 50%; border-radius: 34px; }
.story-photo figcaption { font-size: clamp(13px, .96vw, 17px); color: var(--about-muted); margin-top: 14px; line-height: 1.5; }
.about-text { min-width: 0; padding-top: 18px; }
.about-text .about-lead { font-size: clamp(24px, 2.03vw, 36px); line-height: 1.33; letter-spacing: -.035em; font-weight: 650; }
.about-lead span { text-decoration: underline; text-decoration-color: var(--about-accent); text-decoration-thickness: 5px; text-underline-offset: 6px; text-decoration-skip-ink: none; }
.about-text > p + p { font-size: clamp(16px, 1.13vw, 20px); color: var(--about-muted); margin-top: 28px; line-height: 1.55; }
.personal-details { display: grid; grid-template-columns: 1fr 1fr; margin: 48px 0 0; padding: 24px 0; border-top: 1px solid var(--about-line); border-bottom: 1px solid var(--about-line); }
.personal-details > div { min-width: 0; }
.personal-details > div + div { padding-left: clamp(20px, 2.7vw, 48px); border-left: 1px solid var(--about-line); }
.personal-details dt, .availability-detail dt { color: var(--about-muted); font-size: clamp(14px, .96vw, 17px); line-height: 1.5; margin-bottom: 4px; }
.personal-details dd { margin: 0; font-size: clamp(15px, 1.13vw, 20px); line-height: 1.4; font-weight: 750; letter-spacing: -.025em; }
.about-footer { --resume-circle-size: clamp(52px, 3.84vw, 68px); --availability-line-size: calc(1.4 * clamp(16px, 1.19vw, 21px)); display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-top: 25px; }
.availability-detail { margin: 0; min-width: 0; }
.availability-detail dt { font-size: clamp(15px, 1.08vw, 19px); margin-bottom: 6px; }
.availability-detail dd { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(16px, 1.19vw, 21px); line-height: 1.4; font-weight: 750; letter-spacing: -.03em; }
.availability-dot { width: 12px; height: 12px; background: var(--about-emphasis); border-radius: 50%; flex-shrink: 0; }
.resume-action { display: inline-flex; align-items: center; flex-shrink: 0; gap: clamp(18px, 1.8vw, 32px); font-size: clamp(16px, 1.13vw, 20px); line-height: 1.4; font-weight: 750; letter-spacing: -.025em; white-space: nowrap; }
.about-footer .resume-action { position: relative; top: calc((var(--resume-circle-size) - var(--availability-line-size)) / 2); }
.resume-action > span { display: grid; place-items: center; flex-shrink: 0; width: var(--resume-circle-size); height: var(--resume-circle-size); border: 1px solid #fff; border-radius: 50%; background: var(--about-accent); transition: background .25s, color .25s; }
.resume-action svg { width: 28px; height: 28px; transition: transform .35s var(--ease); }
.resume-action:hover { text-decoration: none; }
.resume-action:hover > span { background: var(--ink); color: var(--paper); }
.resume-action:hover svg { transform: translate(2px, -2px); }

/* Education keeps the reference composition at the surrounding site's scale. */
.education-section { --education-ground: #fcfbf9; --education-card-ground: #fff; --education-line: #e9e3d9; --education-muted: #6f6b65; --education-accent: #ffaf24; --education-period: #ffaf24; --education-tint: #fff6ea; --education-detail: #b35800; position: relative; isolation: isolate; padding: 48px 35px 56px; }
.education-section::before { content: ''; position: absolute; inset: 0; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); z-index: -1; }
.education-section .education-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 24px; margin-bottom: 28px; }
.education-heading::before { content: ''; position: absolute; top: 0; left: 0; width: 48px; height: 4px; border-radius: 3px; background: var(--education-accent); }
.education-heading > p { flex: 0 1 420px; max-width: 40ch; color: #697387; font-size: clamp(16px, 1.13vw, 20px); line-height: 1.5; letter-spacing: -.025em; text-align: right; }
.education-heading h2 { font-size: clamp(38px, 4.5vw, 80px); line-height: 1.08; max-width: none; }
.education-heading h2 span { display: inline-block; width: .16em; height: .16em; margin-left: .04em; border-radius: 50%; background: var(--education-period); color: transparent; overflow: hidden; line-height: .16; }
.education-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 28px 32px; border: 1px solid var(--education-line); border-radius: 18px; background: var(--education-card-ground); }
.education-main { display: flex; align-items: center; gap: clamp(24px, 2.4vw, 44px); min-width: 0; }
.education-artwork { position: relative; isolation: isolate; flex-shrink: 0; width: clamp(112px, 10vw, 176px); height: clamp(112px, 8.5vw, 150px); transform: scale(.88); transform-origin: left center; }
.education-artwork::before { content: ''; position: absolute; left: 0; bottom: -4px; width: 84%; height: 90%; border-radius: 26px; background: var(--education-tint); z-index: -1; }
.education-dot-grid { position: absolute; left: 6px; bottom: 12px; width: 64%; height: 60%; background-image: radial-gradient(circle, #ffd17a 2px, transparent 2.5px); background-size: 18px 18px; }
.education-symbol { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: clamp(82px, 7vw, 128px); height: clamp(82px, 7vw, 128px); background: linear-gradient(35deg, #ff8f29, #ffbb38); border-radius: 24px; color: #fff; }
.education-symbol::after { content: ''; position: absolute; top: -10px; right: -10px; width: 22px; height: 22px; border: 6px solid var(--education-card-ground); border-radius: 50%; background: var(--education-accent); }
.education-symbol svg { width: 60%; height: 60%; stroke-width: 1.6; }
.education-copy { flex: 1; min-width: 0; }
.education-card h3 { font-size: clamp(22px, 1.6vw, 28px); line-height: 1.3; letter-spacing: -.035em; font-weight: 750; }
.education-card .school-name { font-size: clamp(16px, 1.13vw, 20px); line-height: 1.5; font-weight: 450; margin-top: 10px; letter-spacing: -.02em; }
.education-card .education-specialization { display: inline-block; max-width: 100%; padding: 10px 22px; border-radius: 999px; background: var(--education-tint); font-size: clamp(16px, 1.02vw, 18px); font-weight: 600; color: var(--education-detail); margin-top: 12px; line-height: 1.45; letter-spacing: -.02em; }
.education-meta { align-self: stretch; align-content: center; width: clamp(300px, 25vw, 420px); display: grid; gap: 10px; margin: 0; border-left: 1px solid var(--education-line); padding: 0 0 0 clamp(24px, 3vw, 56px); }
.education-meta dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.education-meta dd { display: flex; align-items: center; gap: 18px; min-height: 46px; padding: 0 14px 0 0; margin: 0; border-radius: 999px; background: linear-gradient(90deg, var(--education-tint), #fffaf3); font-size: clamp(14px, .92vw, 16px); line-height: 1.5; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.education-meta-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: #fff2df; }
.education-meta svg { width: 23px; height: 23px; color: var(--education-detail); stroke-width: 1.7; }
.education-meta time { white-space: nowrap; }

/* Professional Experience Timeline.png is the authority for this section. */
.journey-section {
  --experience-ground: #fcfbf9;
  --experience-ink: #080d1b;
  --experience-muted: #697387;
  --experience-line: #e9e6e1;
  --experience-accent: #ff9700;
  --experience-chip: #faf5ed;
  position: relative;
  isolation: isolate;
  padding: 30px 22px 0 35px;
  color: var(--experience-ink);
}
.journey-section::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.journey-section .journey-heading { position: relative; align-items: center; gap: 40px; padding-top: 20px; margin-bottom: 40px; }
.journey-heading::before { content: ''; position: absolute; top: 0; left: 3px; width: 50px; height: 4px; border-radius: 3px; background: var(--experience-accent); }
.journey-section .journey-heading h2 { font-size: clamp(38px, 4.5vw, 80px); line-height: 1.08; letter-spacing: -.04em; max-width: none; text-wrap: initial; }
.journey-heading h2 .journey-period { display: inline-block; width: .21em; height: .21em; margin-left: .035em; border-radius: 50%; background: var(--experience-accent); color: transparent; overflow: hidden; line-height: .2; }
.journey-heading > p { max-width: none; margin-right: 15px; color: var(--experience-muted); font-size: clamp(16px, 1.13vw, 20px); line-height: 1.5; letter-spacing: -.025em; text-align: right; }
.journey-timeline { position: relative; padding-left: 43px; display: grid; gap: 24px; }
.journey-timeline::before, .journey-timeline::after { content: ''; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; }
.journey-timeline::before { background: #d6cfc5; }
.journey-timeline::after { background: #c66a00; transform: scaleY(var(--journey-progress, 1)); transform-origin: center top; }
.journey-entry { position: relative; min-width: 0; padding: 24px 26px 22px 37px; border: 1px solid var(--experience-line); border-radius: 16px; background: var(--experience-ground); }
.journey-entry::before { content: ''; position: absolute; left: -50px; top: 2px; width: 25px; height: 25px; border-radius: 50%; border: 1px solid var(--experience-accent); background: var(--experience-ground); }
.journey-entry::after { content: ''; position: absolute; left: -45px; top: 7px; width: 15px; height: 15px; border-radius: 50%; background: var(--experience-accent); }
.role-overview { display: grid; grid-template-columns: 104px minmax(0, 1fr) clamp(280px, 19vw, 340px); gap: 42px; align-items: start; }
.company-logo { display: grid; place-items: center; width: 104px; height: 106px; border: 1px solid var(--experience-line); border-radius: 12px; background: #fff; transition: border-color .2s, background .2s; }
.company-logo:hover { border-color: var(--experience-accent); background: var(--experience-chip); text-decoration: none; }
.company-logo-expleo > svg { width: 84px; height: 86px; }
.company-logo-myteam > img { width: 90px; height: auto; }
.role-copy { min-width: 0; }
.role-company { display: flex; align-items: center; flex-wrap: wrap; gap: 0 22px; font-size: clamp(16px, 1.13vw, 20px); line-height: 1.5; letter-spacing: -.025em; }
.role-company strong { font-weight: 750; }
.role-company > span { border-left: 1px solid #959aa6; padding-left: 20px; color: var(--experience-muted); font-size: inherit; font-weight: 450; line-height: 1; letter-spacing: -.025em; }
.journey-entry h3 { margin: 8px 0 10px; font-size: clamp(22px, 1.6vw, 28px); line-height: 1.3; letter-spacing: -.035em; font-weight: 750; }
.role-description { color: var(--experience-muted); font-size: clamp(16px, 1.13vw, 20px); line-height: 1.55; letter-spacing: -.02em; }
ul.role-description { margin: 0; padding-left: 1.2em; list-style: disc; }
.role-description > li + li { margin-top: .5em; }
.role-details { display: grid; gap: 10px; margin: 2px 0 0; padding: 0 0 0 28px; border-left: 1px solid var(--experience-line); color: var(--experience-ink); }
.role-details dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.role-details dd { display: flex; align-items: center; gap: 18px; min-height: 46px; padding: 0 14px 0 0; margin: 0; border-radius: 999px; background: linear-gradient(90deg, #fff6ea, #fffaf3); font-size: clamp(14px, .92vw, 16px); line-height: 1.5; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.role-meta-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; background: #fff2df; }
.role-details time { white-space: nowrap; }
.role-details svg { width: 23px; height: 23px; color: #b35800; stroke-width: 1.7; }
.role-technologies { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--experience-line); }
.technologies-toggle { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; min-height: 50px; padding: 4px 22px; border: 1px solid #f4e3ce; border-radius: 999px; background: #fff7ec; color: var(--experience-ink); font-size: clamp(16px, 1.13vw, 20px); font-weight: 750; line-height: 1.5; letter-spacing: -.025em; cursor: pointer; list-style: none; transition: background .2s, border-color .2s; }
.technologies-toggle::-webkit-details-marker { display: none; }
.technologies-toggle:hover { background: #ffead0; border-color: var(--experience-accent); }
.technologies-toggle:focus-visible { outline: 3px solid #8a4100; outline-offset: 5px; }
.technologies-toggle .technology-caret { flex-shrink: 0; width: 19px; height: 19px; fill: none; stroke: #c66a00; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform-origin: center; transition: transform .2s var(--ease); }
.technology-stack-icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #fff2df; }
.technology-stack-icon svg { width: 26px; height: 26px; fill: none; stroke: #c66a00; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.role-technologies[open] .technology-caret { transform: rotate(90deg); }
.technology-hint { border-left: 1px solid #f0dfc9; padding-left: 18px; margin-left: 4px; font-size: clamp(14px, 1.02vw, 18px); font-weight: 450; color: #b35800; white-space: nowrap; }
.when-open, .role-technologies[open] .when-closed { display: none; }
.role-technologies[open] .when-open { display: inline; }
.role-technologies:not([open]) > .technology-groups { display: none; }
.role-technologies > .technology-groups { margin-top: 16px; }
.technology-groups { display: grid; gap: 6px; min-width: 0; }
.technology-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.technology-list li { display: inline-flex; align-items: center; justify-content: center; gap: 9px; max-width: 100%; min-height: 34px; padding: 5px 17px; border: 1px solid #efe8de; border-radius: 999px; color: #242e3d; background: var(--experience-chip); font-size: 14.5px; line-height: 1.5; letter-spacing: -.025em; }
.technology-list li > span { min-width: 0; overflow-wrap: anywhere; }
.technology-list img, .technology-list svg { flex-shrink: 0; width: 22px; height: 22px; object-fit: contain; }
.tech-icon { color: #6546ce; stroke-width: 1.7; }
.tech-icon-network, .tech-icon-sequence, .tech-icon-globe { color: #3b58cf; }
.tech-icon-regression, .tech-icon-catia { color: #133c85; }
.tech-icon-chart, .tech-icon-link, .tech-icon-brush { color: #2075d8; }
.tech-icon-soup { color: #ff394c; }

@media (max-width: 1350px) {
  .role-overview { grid-template-columns: 88px minmax(0, 1fr) 270px; gap: 26px; }
  .company-logo { width: 88px; height: 90px; }
  .company-logo-expleo > svg { width: 70px; height: 72px; }
  .company-logo-myteam > img { width: 78px; }
  .role-details { padding-left: 20px; }
  .role-details dd { gap: 18px; }
  .technology-groups { display: flex; flex-wrap: wrap; gap: 6px; }
  .technology-list { display: contents; }
  .technology-list li { padding-inline: 12px; }
}
@media (max-width: 1100px) {
  .journey-section { padding-inline: 12px; }
  .journey-entry { padding: 22px 24px 18px; }
  .role-overview { grid-template-columns: 78px minmax(0, 1fr); gap: 0 24px; }
  .company-logo { width: 78px; height: 80px; }
  .company-logo-expleo > svg { width: 62px; height: 64px; }
  .company-logo-myteam > img { width: 68px; }
  .role-details { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 18px; padding: 0; border: 0; }
}
@media (max-width: 760px) {
  .journey-section { padding: 32px 0 0; }
  .journey-section .journey-heading { display: block; margin-bottom: 32px; }
  .journey-section .journey-heading h2 { font-size: clamp(38px, 9.7vw, 64px); line-height: 1.08; }
  .journey-heading > p { margin: 24px 0 0; font-size: 16px; text-align: left; max-width: 36ch; }
  .journey-heading > p br { display: none; }
  .journey-timeline { padding-left: 26px; gap: 24px; }
  .journey-timeline::before, .journey-timeline::after { left: 5px; top: 14px; }
  .journey-entry { padding: 18px 16px; border-radius: 14px; }
  .journey-entry::before { left: -32px; top: 4px; width: 21px; height: 21px; }
  .journey-entry::after { left: -28px; top: 8px; width: 13px; height: 13px; }
  .role-overview { grid-template-columns: 54px minmax(0, 1fr); gap: 16px 12px; }
  .company-logo { width: 54px; height: 56px; border-radius: 9px; }
  .company-logo-expleo > svg { width: 42px; height: 44px; }
  .company-logo-myteam > img { width: 48px; }
  .role-company { font-size: 16px; line-height: 1.35; gap: 3px 10px; }
  .role-company > span { font-size: 14px; padding-left: 10px; }
  .journey-entry h3 { font-size: 22px; line-height: 1.3; }
  .role-copy { display: contents; }
  .role-company, .journey-entry h3 { grid-column: 2; }
  .role-company { align-self: start; }
  .journey-entry h3 { grid-row: 2; grid-column: 1 / -1; margin: 0; }
  .role-description { grid-column: 1 / -1; font-size: 16px; line-height: 1.5; }
  .role-details { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 0; }
  .role-details dd { font-size: 14px; gap: 16px; padding: 4px 14px 4px 0; }
  .role-meta-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .role-details svg { width: 22px; height: 22px; }
  .role-technologies { margin-top: 20px; padding-top: 16px; }
  .technologies-toggle { gap: 7px; min-height: 46px; padding: 5px 10px; font-size: 14px; }
  .technology-stack-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .technology-stack-icon svg { width: 23px; height: 23px; }
  .technologies-toggle .technology-caret { width: 17px; height: 17px; }
  .technology-hint { font-size: 12px; padding-left: 7px; margin-left: 0; }
  .technology-groups { gap: 6px; }
  .technology-list li { font-size: 13px; padding: 5px 10px; gap: 7px; min-height: 32px; }
  .technology-list img, .technology-list svg { width: 19px; height: 19px; }
}
@media (max-width: 380px) {
  .technologies-toggle { gap: 5px; padding-inline: 8px; font-size: 13px; }
  .technology-stack-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .technologies-toggle .technology-caret { width: 14px; height: 14px; }
  .role-details dd { gap: 10px; padding-right: 10px; }
}
@media print {
  .journey-entry { break-inside: avoid; }
  .journey-section::before { box-shadow: none; }
}

/* Restore the original equal, image-first project grid in the current palette. */
.projects-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; padding-top: 100px; }
.projects-section > .chapter-heading { grid-column: 1 / -1; margin-bottom: 20px; }
.project-stack, .work-gallery { display: contents; }
.project-sheet, .work-item { display: flex; flex-direction: column; min-width: 0; background: #eeece5; border: 1px solid #d9d6cc; border-radius: 14px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.project-sheet:hover, .work-item:hover { transform: translateY(-5px); border-color: #b67b2d; }
.project-art, .work-image { display: block; flex-shrink: 0; aspect-ratio: 1.8; overflow: hidden; background: #e1dfd6; }
.project-art { order: -1; }
.project-art img, .work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-sheet:hover img, .work-item:hover img { transform: scale(1.035); }
.project-description, .work-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 25px; }
.project-category { display: none; }
.project-description h3, .work-copy h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.025em; font-weight: 750; text-wrap: pretty; }
.work-copy h3 span { font-size: 16px; font-weight: 500; }
.project-description > p, .work-copy > p { font-size: 13px; line-height: 1.8; color: var(--muted); margin-top: 16px; }
.tools { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 20px 0 0; }
.tools li { font-size: 12px; line-height: 1.5; padding: 5px 10px; border-radius: 20px; background: #e2dfd5; color: #46463f; max-width: 100%; overflow-wrap: anywhere; }
.evidence-links { display: flex; flex-wrap: wrap; gap: 0 18px; padding-top: 20px; margin-top: auto; }
.evidence-links a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; min-height: 44px; }
.evidence-links a:hover { color: #8a4100; text-decoration: underline; text-underline-offset: 4px; }
.evidence-links svg { width: 15px; height: 15px; }

/* The toolkit: persistent discipline selectors and a kinetic typographic canvas. */
.skills-section { padding-top: 140px; }
.skills-section > .chapter-heading { align-items: center; gap: 40px; }
.skills-section > .chapter-heading h2 span { display: inline-block; width: .16em; height: .16em; margin-left: .03em; border-radius: 50%; background: #ff9f16; }
.skills-section > .chapter-heading > p { flex: 0 1 420px; max-width: 40ch; margin: 0; color: #697387; font-size: clamp(16px, 1.13vw, 20px); line-height: 1.5; letter-spacing: -.025em; text-align: right; }
.skills-workbench { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 2fr); gap: 28px; }
.skills-workbench:not(.is-interactive) { display: block; }
.skill-selectors { display: flex; flex-direction: column; justify-content: stretch; gap: 8px; }
.skill-selectors[hidden], .skill-group[hidden] { display: none; }
.skill-selectors button { position: relative; text-align: left; padding: 25px 24px; flex: 1; border-radius: 12px; border: 1px solid var(--line); background: transparent; transition: background .3s, border-color .3s; }
.skill-selectors button > span:first-child { display: block; font-size: 21px; line-height: 1.2; font-weight: 650; letter-spacing: -.03em; }
.skill-selectors button:hover { background: #eeece5; border-color: #a19b8d; }
.skill-selectors button[aria-selected='true'] { background: var(--orange); border-color: var(--orange); }
.discipline-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; margin-top: 14px; }
.discipline-meta svg { width: 19px; height: 19px; transition: transform .4s var(--ease); }
.skill-selectors button[aria-selected='true'] svg { transform: rotate(45deg); }
.skills-panels { min-width: 0; }
.skill-group { position: relative; background: #eeeae1; border-radius: 24px; padding: 36px; overflow: hidden; }
.skill-group + .skill-group { margin-top: 24px; }
.skills-workbench.is-interactive .skill-group { margin-top: 0; min-height: 600px; height: 100%; }
.skill-group > header { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid #c5c0b3; }
.skill-group h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -.03em; max-width: 16ch; }
.skill-count { font-size: clamp(34px, 4vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.skill-content { display: flex; flex-direction: column; }
.skill-list { display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 12px 10px; list-style: none; padding: 28px 0 36px; margin: 0; min-height: 345px; }
.skill-list li { font-size: 15px; line-height: 1.4; padding: 10px 15px; border: 1px solid #bcb6a6; border-radius: 6px; max-width: 100%; overflow-wrap: anywhere; background: var(--paper); transform-origin: center; }
.skill-list .skill-large { font-size: clamp(30px, 3.6vw, 52px); font-weight: 750; letter-spacing: -.04em; padding: 5px 14px 8px 0; border: 0; background: transparent; }
.skill-list .skill-orange { background: var(--orange); border-color: #bc8d47; }
.skill-list .skill-bold { font-weight: 700; }
.related-work { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; border-top: 1px solid #c5c0b3; padding-top: 20px; }
.related-work > span { width: 100%; margin-bottom: 2px; color: var(--muted); font-size: 14px; font-weight: 650; }
.related-work a { min-height: 50px; max-width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px 9px 16px; border: 1px solid #bcb6a6; border-radius: 999px; background: var(--paper); font-size: 14px; line-height: 1.4; font-weight: 700; text-decoration: none; transition: background .2s, border-color .2s; }
.related-work a span { min-width: 0; overflow-wrap: anywhere; }
.related-work a:hover { background: #fff2df; border-color: #b67b2d; text-decoration: none; }
.related-work svg { flex-shrink: 0; width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--orange); stroke-width: 1.8; }

@media (max-width: 1200px) {
  .about-footer { flex-direction: column; align-items: start; }
  .about-footer .resume-action { top: 0; align-self: stretch; justify-content: space-between; }
}

@media (max-width: 1100px) {
  .projects-section { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-description, .work-copy { padding: 24px; }
  .education-section { padding-inline: 12px; }
  .education-card { grid-template-columns: 1fr; gap: 22px; padding: 26px; }
  .education-meta { width: auto; grid-template-columns: 1fr 1.25fr; gap: 24px; border-left: 0; border-top: 1px solid var(--education-line); padding: 20px 0 0; }
  .education-meta dd { gap: 18px; }
  .about-story { padding-left: 12px; padding-right: 12px; }
  .about-layout { gap: 30px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .story-photo img { aspect-ratio: auto; height: 490px; }
  .about-text { padding-top: 0; }
  .about-text > p + p { margin-top: 22px; }
  .personal-details { margin-top: 28px; padding: 20px 0; }
  .about-footer { gap: 20px; margin-top: 22px; }
  .skills-workbench { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
  .skill-group { padding: 28px; }
  .skill-group > header { display: block; }
  .skill-count { display: block; margin-top: 18px; font-size: 44px; }
  .skill-list { min-height: 345px; }
}

@media (max-width: 760px) {
  .main-nav { flex-wrap: wrap; gap: 6px 16px; justify-content: flex-start; }
  .main-nav a { min-height: 36px; display: flex; align-items: center; }
  .chapter-heading { display: block; margin-bottom: 30px; }
  .chapter-heading h2 { font-size: 44px; max-width: 16ch; }
  .about-heading h2::before, .skills-section > .chapter-heading h2::before { width: 48px; height: 4px; margin-bottom: 12px; }
  .chapter-heading > p { margin-top: 24px; font-size: 13px; max-width: 48ch; }
  .about-story { padding: 48px 0 24px; }
  .about-heading { display: block; margin-bottom: 26px; }
  .about-heading h2 { font-size: clamp(38px, 9.7vw, 64px); }
  .about-heading > span { display: block; font-size: 13px; margin-top: 18px; padding: 0; }
  .about-layout { grid-template-columns: 1fr; gap: 30px; }
  .story-photo img { height: auto; aspect-ratio: 5 / 3; border-radius: 20px; }
  .story-photo figcaption { font-size: 12px; margin-top: 10px; }
  .about-text .about-lead { font-size: clamp(24px, 5.7vw, 32px); line-height: 1.4; }
  .about-lead span { text-decoration-thickness: 3px; text-underline-offset: 5px; }
  .about-text > p + p { font-size: 16px; margin-top: 22px; line-height: 1.65; }
  .personal-details { grid-template-columns: 1.15fr 1fr; margin-top: 30px; padding: 20px 0; }
  .personal-details > div + div { padding-left: 20px; }
  .personal-details dt { font-size: 13px; }
  .personal-details dd { font-size: 15px; }
  .about-footer { align-items: start; flex-direction: column; gap: 24px; margin-top: 22px; }
  .availability-detail dt { font-size: 14px; }
  .availability-detail dd { font-size: 17px; }
  .availability-dot { width: 10px; height: 10px; }
  .resume-action { align-self: stretch; justify-content: space-between; gap: 20px; font-size: 17px; }
  .resume-action > span { width: 54px; height: 54px; }
  .skills-section { padding-top: 85px; }
  .skills-section > .chapter-heading > p { margin: 24px 0 0; max-width: 36ch; font-size: 16px; text-align: left; }
  .education-section { padding: 40px 0 36px; }
  .education-section .education-heading { display: block; margin-bottom: 24px; }
  .education-heading > p { margin: 24px 0 0; max-width: 36ch; font-size: 16px; text-align: left; }
  .education-heading::before { margin-bottom: 16px; }
  .education-heading h2 { font-size: clamp(38px, 9.7vw, 64px); }
  .education-card { padding: 22px 20px; gap: 20px; border-radius: 16px; }
  .education-main { display: block; }
  .education-artwork { width: 112px; height: 112px; margin-bottom: 20px; }
  .education-symbol { width: 82px; height: 82px; border-radius: 20px; }
  .education-card h3 { font-size: 22px; }
  .education-card .school-name { font-size: 16px; }
  .education-card .education-specialization { padding: 10px 16px; border-radius: 20px; font-size: 16px; line-height: 1.55; }
  .education-meta { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .education-meta dd { font-size: 14px; align-items: center; gap: 16px; padding: 4px 14px 4px 0; }
  .education-meta-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .education-meta svg { width: 22px; height: 22px; }
  .projects-section { grid-template-columns: 1fr; gap: 24px; padding-top: 55px; }
  .projects-section > .chapter-heading { margin-bottom: 6px; }
  .project-description, .work-copy { padding: 23px; }
  .project-description h3, .work-copy h3 { font-size: 23px; }
  .skills-workbench { display: block; }
  .skill-selectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .skill-selectors button:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .skill-selectors button { padding: 18px 14px; border-radius: 10px; }
  .skill-selectors button > span:first-child { font-size: 16px; }
  .discipline-meta { font-size: 11px; margin-top: 12px; gap: 4px; }
  .discipline-meta svg { width: 15px; height: 15px; flex-shrink: 0; }
  .skill-group { border-radius: 18px; padding: 25px 20px; }
  .skills-workbench.is-interactive .skill-group { min-height: 600px; }
  .skill-group > header { display: flex; gap: 15px; align-items: center; padding-bottom: 22px; }
  .skill-group h3 { font-size: 18px; }
  .skill-count { font-size: 30px; margin: 0; }
  .skill-list { min-height: 345px; padding: 24px 0 30px; gap: 9px 7px; }
  .skill-list li { font-size: 12px; padding: 8px 10px; }
  .skill-list .skill-large { font-size: 34px; }
  .related-work { gap: 10px; padding-top: 18px; }
  .related-work a { width: 100%; font-size: 14px; }
}

@media (max-width: 380px) {
  .skill-group > header { display: block; }
  .skill-count { margin-top: 12px; }
  .discipline-meta { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-timeline::after { transform: scaleY(1); }
  .project-sheet, .work-item, .project-art img, .work-image img, .skill-selectors button, .discipline-meta svg, .related-work a { transition: none; }
  .project-sheet:hover, .work-item:hover, .project-sheet:hover img, .work-item:hover img { transform: none; }
}

@media print {
  .education-section { width: auto; margin-inline: 0; break-inside: avoid; }
  .project-sheet, .work-item { break-inside: avoid; }
  .hero, .about-layout, .skills-workbench { display: block; }
  .contact-form, .photo-tools, .globe-link, .skill-selectors { display: none; }
  .skill-group[hidden] { display: block; margin-top: 24px; }
  .site-shell { padding: 0; }
}

/* Projects: user-selected Projects Portfolio.png gallery reference. */
.projects-section {
  --project-accent: #ff9f16;
  --project-page: #fcfbf9;
  --project-ground: #f9f7f2;
  --project-line: #e9e3d9;
  --project-muted: #667082;
  position: relative;
  isolation: isolate;
  display: block;
  width: min(1708px, calc(100vw - 92px));
  margin-inline: calc((100% - min(1708px, 100vw - 92px)) / 2);
  padding: 48px 0 60px;
}
.projects-section::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.projects-section > .chapter-heading { display: flex; justify-content: space-between; align-items: center; gap: 40px; margin: 0 22px 33px; }
.projects-section > .chapter-heading h2 { max-width: none; font-size: clamp(48px, 5.47vw, 84px); line-height: 1.08; letter-spacing: -.04em; }
.projects-section > .chapter-heading h2::before { content: ''; display: block; width: 60px; height: 6px; margin-bottom: 2px; border-radius: 3px; background: var(--project-accent); }
.projects-section > .chapter-heading h2 span { display: inline-block; width: .16em; height: .16em; margin-left: .03em; border-radius: 50%; overflow: hidden; color: transparent; line-height: .16; background: var(--project-accent); }
.projects-section > .chapter-heading > p { position: relative; top: 18px; flex: 0 1 364px; max-width: 364px; color: var(--project-muted); font-size: clamp(16px, 1.18vw, 18px); line-height: 1.45; padding-top: 16px; }
.project-deck-navigation { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 4px 28px; margin: 0 4px 9px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 12px 14px; padding-top: 0; }
.project-filters button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 25px; border: 1px solid var(--project-line); border-radius: 999px; font-size: 15px; line-height: 1.4; color: #435064; background: var(--project-page); transition: background .2s, border-color .2s; }
.project-filters button[aria-pressed='true'] { border-color: var(--project-accent); background: var(--project-accent); color: #11110f; font-weight: 700; }
.project-filters button:hover { border-color: #d39132; background: #fff1d9; }
.project-filters button[aria-pressed='true']:hover { background: #f5a00a; }
.project-deck-arrows { display: flex; gap: 14px; padding-top: 10px; }
.project-deck-arrows button, .project-image-arrows button { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border: 1px solid var(--project-line); border-radius: 50%; background: #fff; transition: background .2s, border-color .2s; }
.project-deck-arrows button:hover, .project-image-arrows button:hover { border-color: var(--project-accent); background: #fff2df; }
.project-deck-arrows svg { width: 24px; height: 24px; stroke-width: 2; }
.project-deck-position { grid-column: 1 / -1; padding-left: 5px; font-size: 18px; line-height: 1.5; font-variant-numeric: tabular-nums; color: var(--project-muted); }
.project-deck-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.projects-section.is-deck .project-deck-stage { grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr); align-items: start; gap: 40px; padding: 36px 24px 38px; border: 1px solid var(--project-line); border-radius: 16px; background: var(--project-ground); }
.project-deck-stage:focus-visible { outline: 3px solid #8a4100; outline-offset: 5px; }
.projects-section.is-deck .project-sheet, .projects-section.is-deck .work-item { grid-column: 2; display: block; align-self: start; min-width: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.projects-section.is-deck .project-sheet:hover, .projects-section.is-deck .work-item:hover { transform: none; }
.projects-section.is-deck article > .project-art, .projects-section.is-deck article > .work-image { display: none; }
.projects-section.is-deck .project-description, .projects-section.is-deck .work-copy { display: block; padding: 0; }
.projects-section .project-category { display: inline-flex; align-items: center; min-height: 36px; margin: 0 0 20px; padding: 7px 15px; border: 1px solid #f2dab4; border-radius: 999px; color: #a34f00; background: #fff2df; font-size: 14px; line-height: 1.4; font-weight: 450; letter-spacing: -.02em; }
.projects-section .project-description h3, .projects-section .work-copy h3 { font-size: clamp(22px, 2.08vw, 32px); line-height: 1.28; letter-spacing: -.04em; font-weight: 800; }
.projects-section .project-description > p, .projects-section .work-copy > p { margin-top: 16px; color: var(--project-muted); font-size: clamp(16px, 1.18vw, 20px); line-height: 1.5; }
.project-technologies { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--project-line); }
.project-technologies h4 { margin: 0 0 8px; font-size: 16px; line-height: 1.5; font-weight: 750; letter-spacing: -.025em; }
.projects-section .tools { margin: 0; gap: 7px 8px; }
.projects-section .tools li { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; max-width: 100%; padding: 6px 13px; border: 1px solid var(--project-line); border-radius: 999px; background: #fcfaf6; color: #24292f; font-size: 14px; line-height: 1.5; letter-spacing: -.025em; }
.projects-section .tools li span { min-width: 0; overflow-wrap: anywhere; }
.projects-section .tools img, .projects-section .tools svg { flex-shrink: 0; width: 22px; height: 22px; object-fit: contain; }
.project-tech-icon { color: #690dff; }
.projects-section .evidence-links { gap: 16px; padding-top: 20px; margin: 0; }
.projects-section .evidence-links .project-action { display: inline-flex; justify-content: center; align-items: center; gap: 17px; min-height: 60px; padding: 16px 26px; border: 1px solid transparent; border-radius: 999px; color: var(--ink); font-size: 16px; line-height: 1.4; font-weight: 650; text-decoration: none; box-shadow: 0 10px 18px -12px #34251355; transition: background .2s, color .2s, border-color .2s; }
.projects-section .evidence-links .project-action-demo { padding-inline: 22px; background: var(--project-accent); border-color: #ffb13c; }
.projects-section .evidence-links .project-action-source { padding-inline: 29px; background: #111; color: #fff; border-color: #111; }
.projects-section .evidence-links .project-action-files { background: #fff2df; color: #754105; border-color: #ebc48e; }
.projects-section .evidence-links .project-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.projects-section .evidence-links .project-action .project-action-symbol { width: 24px; height: 24px; }
.projects-section .evidence-links .project-action-demo:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.projects-section .evidence-links .project-action-source:hover { background: #fff2df; color: var(--ink); border-color: #d5b17b; }
.projects-section .evidence-links .project-action-files:hover { background: var(--project-accent); color: var(--ink); }
.project-deck-visual { grid-column: 1; grid-row: 1; width: 100%; min-width: 0; }
.project-gallery-frame { position: relative; }
.project-image-expand { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff38; border-radius: 50%; background: #182020; color: #fff; box-shadow: 0 6px 12px -6px #0009; transition: background .2s, color .2s; }
.project-image-expand svg { width: 20px; height: 20px; stroke-width: 1.8; }
.project-image-expand:hover { background: var(--project-accent); color: var(--ink); }
.project-image-expand:focus-visible { outline-color: var(--project-accent); outline-offset: 3px; }
.project-viewer-open { overflow: hidden; }
.project-image-viewer { width: min(1600px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px); padding: 18px; border: 1px solid #474c4b; border-radius: 16px; background: #101819; color: #fff; box-shadow: 0 24px 80px -24px #000b; }
.project-image-viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
.project-image-viewer::backdrop { background: #080b0ded; }
.project-image-viewer > header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.project-image-viewer header p { font-size: 16px; line-height: 1.5; font-weight: 650; }
.project-image-viewer .project-viewer-position { color: #c4cdca; font-size: 13px; font-weight: 450; font-variant-numeric: tabular-nums; }
.project-image-viewer button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #636b68; border-radius: 50%; background: #182020; color: #fff; }
.project-image-viewer button:hover { background: var(--project-accent); border-color: var(--project-accent); color: var(--ink); }
.project-image-viewer button:focus-visible { outline-color: var(--project-accent); outline-offset: 3px; }
.project-image-viewer button svg { width: 22px; height: 22px; stroke-width: 1.8; }
.project-viewer-canvas { position: relative; min-height: 0; }
.project-viewer-canvas > img { width: 100%; height: min(76dvh, 1000px); object-fit: contain; border-radius: 8px; }
.project-viewer-canvas > button { position: absolute; top: 50%; transform: translateY(-50%); }
.project-viewer-previous { left: 8px; }
.project-viewer-next { right: 8px; }
.project-deck-current { border: 1px solid #d9dfdc; border-radius: 14px; overflow: hidden; background: #eeece6; box-shadow: 0 12px 20px -17px #493a2766; }
.projects-section .project-deck-main-image { display: block; order: initial; width: 100%; aspect-ratio: 1.92; border-radius: 0; overflow: hidden; }
.projects-section .project-deck-main-image img { width: 100%; height: 100%; aspect-ratio: 1.92; object-fit: contain; transform: none; }
.projects-section .project-deck-main-image.project-image-fill img { object-fit: cover; }
.project-image-arrows { position: absolute; top: 50%; inset-inline: -4px; transform: translateY(-50%); display: flex; justify-content: space-between; pointer-events: none; }
.project-image-arrows button { pointer-events: auto; width: 44px; height: 44px; box-shadow: 0 5px 14px -10px #1116; }
.project-image-arrows svg { width: 22px; height: 22px; stroke-width: 2; }
.project-thumbnails { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) 80px; gap: 12px; margin-top: 26px; }
.project-thumbnail { min-width: 0; min-height: 76px; height: clamp(76px, 6.25vw, 106px); padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #f0ede7; }
.project-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.project-thumbnail[aria-pressed='true'] { border-color: var(--project-accent); }
.project-thumbnail:hover { border-color: #d39132; }
.project-thumbnails-more { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0; min-height: 76px; border: 1px solid #e4ddcf; border-radius: 10px; background: #f6f3ec; font-size: 14px; line-height: 1.4; }
.project-thumbnails-more strong { font-weight: 700; }
.project-thumbnails-more:hover { border-color: #d39132; background: #fff2df; }
.project-thumbnails.is-expanded { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.project-thumbnails:not(.has-more) { grid-template-columns: repeat(var(--project-preview-columns, 5), minmax(0, 1fr)); }
.project-deck-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.project-deck-dots button { display: grid; place-items: center; min-width: 49px; min-height: 49px; padding: 0; border: 1px solid var(--project-line); border-radius: 50%; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; background: var(--project-page); color: #435064; }
.project-deck-dots button[aria-pressed='true'] { background: var(--project-accent); border-color: var(--project-accent); color: #11110f; font-weight: 750; }
.project-deck-dots button:hover { border-color: #d39132; }
@media (max-width: 1250px) {
  .projects-section { width: calc(100vw - 64px); margin-inline: calc((100% - (100vw - 64px)) / 2); }
  .project-filters { gap: 10px; }
  .project-filters button { padding-inline: 17px; font-size: 14px; }
  .projects-section.is-deck .project-deck-stage { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 28px 22px; }
  .project-thumbnails { grid-template-columns: repeat(5, minmax(0, 1fr)) 58px; gap: 8px; margin-top: 18px; }
  .project-thumbnail, .project-thumbnails-more { min-height: 60px; }
  .projects-section .evidence-links { gap: 10px; }
  .projects-section .evidence-links .project-action { gap: 10px; padding-inline: 18px; min-height: 54px; }
}
@media (max-width: 1000px) {
  .projects-section.is-deck .project-deck-stage { grid-template-columns: 1fr; padding: 28px; gap: 30px; }
  .projects-section.is-deck .project-sheet, .projects-section.is-deck .work-item { grid-column: 1; }
  .project-deck-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-deck-visual { grid-row: auto; }
  .project-thumbnails { grid-template-columns: repeat(5, minmax(0, 1fr)) 80px; }
  .project-thumbnail, .project-thumbnails-more { min-height: 80px; height: 80px; }
}
@media (max-width: 760px) {
  .projects-section { width: 100%; margin-inline: 0; padding: 40px 0; }
  .projects-section > .chapter-heading { display: block; margin: 0 0 24px; }
  .projects-section > .chapter-heading h2 { font-size: clamp(38px, 9.7vw, 64px); }
  .projects-section > .chapter-heading h2::before { width: 48px; height: 4px; margin-bottom: 12px; }
  .projects-section > .chapter-heading > p { position: static; max-width: 100%; padding: 0; margin-top: 22px; font-size: 16px; line-height: 1.55; }
  .project-deck-navigation { margin: 0 0 16px; gap: 14px; }
  .project-filters { grid-column: 1 / -1; gap: 8px; }
  .project-filters button { min-height: 44px; padding: 10px 15px; font-size: 13px; }
  .project-deck-arrows { grid-row: 2; grid-column: 2; padding: 0; gap: 10px; }
  .project-deck-arrows button { width: 44px; height: 44px; }
  .project-deck-position { grid-column: 1; grid-row: 2; align-self: center; padding: 0; font-size: 15px; }
  .project-deck-stage { grid-template-columns: 1fr; }
  .projects-section.is-deck .project-deck-stage { padding: 18px 14px 24px; border-radius: 16px; gap: 28px; }
  .project-deck-current { border-radius: 10px; }
  .project-thumbnails { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
  .project-thumbnail, .project-thumbnails-more { flex: 0 0 calc((100% - 14px) / 3); height: 62px; min-height: 62px; border-radius: 7px; }
  .project-image-arrows { inset-inline: -7px; }
  .project-image-expand { right: 8px; bottom: 8px; }
  .project-image-viewer { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 12px; border-radius: 12px; }
  .project-image-viewer header p { font-size: 14px; }
  .project-viewer-canvas > img { height: 65dvh; }
  .projects-section .project-category { min-height: 32px; margin-bottom: 14px; padding: 5px 12px; font-size: 13px; }
  .projects-section .project-description h3, .projects-section .work-copy h3 { font-size: 22px; line-height: 1.3; }
  .projects-section .project-description > p, .projects-section .work-copy > p { margin-top: 16px; font-size: 16px; line-height: 1.55; }
  .project-technologies { margin-top: 20px; padding-top: 18px; }
  .projects-section .tools li { gap: 7px; padding: 5px 10px; min-height: 36px; font-size: 13px; }
  .projects-section .tools img, .projects-section .tools svg { width: 20px; height: 20px; }
  .projects-section .evidence-links .project-action { flex: 1 1 auto; min-height: 54px; font-size: 15px; gap: 12px; }
  .project-deck-dots { gap: 8px; max-width: 220px; margin-inline: auto; }
  .project-deck-dots button { min-width: 46px; min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-filters button, .project-deck-arrows button, .project-image-arrows button, .project-image-expand, .projects-section .evidence-links .project-action { transition: none; }
}
@media print {
  .projects-section { width: auto; margin: 0; padding: 0; }
  .projects-section::before { display: none; }
  .projects-section.is-deck .project-deck-stage { display: grid; grid-template-columns: 1fr; padding: 0; border: 0; background: transparent; }
  .projects-section.is-deck .project-sheet, .projects-section.is-deck .work-item { grid-column: auto; margin-bottom: 24px; }
  .projects-section.is-deck article[hidden], .projects-section.is-deck article > .project-art, .projects-section.is-deck article > .work-image { display: block !important; }
  .projects-section .project-deck-visual, .project-deck-navigation, .project-deck-dots, .project-image-viewer { display: none !important; }
}

/* Contact Section Portfolio.png, adapted to the established type scale/palette. */
.contact-section { --contact-accent: #ff9f16; --contact-ground: #fcfbf9; --contact-line: #e9e3d9; --contact-muted: #667082; --contact-tint: #fff6ea; position: relative; isolation: isolate; overflow: clip; margin-top: 140px; padding: 44px 46px 36px; border: 1px solid var(--contact-line); border-radius: 24px; background: var(--contact-ground); }
.contact-reference-grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); align-items: start; gap: 80px; }
.contact-intro { min-width: 0; }
.contact-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 18px; border-radius: 999px; background: #fff2df; color: #754105; font-size: 16px; line-height: 1.4; }
.contact-badge > span { width: 15px; height: 15px; flex-shrink: 0; border: 1px solid #fff; border-radius: 50%; background: var(--orange); }
.contact-section h2 { margin-top: 18px; font-size: clamp(38px, 4.5vw, 80px); line-height: 1.05; letter-spacing: -.04em; font-weight: 800; }
.contact-section h2 > span { display: block; }
.contact-section h2 .contact-period { display: inline-block; width: .17em; height: .17em; margin-left: .035em; overflow: hidden; border-radius: 50%; background: var(--contact-accent); color: transparent; line-height: .17; }
.contact-lead { max-width: 65ch; margin-top: 22px; font-size: clamp(16px, 1.13vw, 20px); line-height: 1.55; color: var(--contact-muted); }
.contact-methods { display: grid; gap: 16px; margin: 28px 0 0; }
.contact-method { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: center; min-height: 56px; }
.contact-method dt { display: contents; }
.contact-method dt > span:last-child { grid-column: 2; align-self: end; color: var(--contact-muted); font-size: 14px; line-height: 1.5; }
.contact-method-icon { grid-column: 1; grid-row: 1 / 3; display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid #ffedce; border-radius: 16px; background: var(--contact-tint); color: var(--ink); }
.contact-method-icon svg { width: 26px; height: 26px; stroke-width: 1.65; }
.contact-method dd { grid-column: 2; display: flex; align-items: center; align-self: start; gap: 8px; min-width: 0; margin: 0; font-size: clamp(16px, 1.13vw, 20px); line-height: 1.55; }
.contact-method dd a { min-width: 0; overflow-wrap: anywhere; }
.contact-method dd { font-weight: 650; }
.contact-method dd a:hover { color: #a34f00; }
.contact-copy-button { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; margin-block: -8px; border-radius: 50%; color: #435064; }
.contact-copy-button svg { width: 19px; height: 19px; }
.contact-copy-button:hover, .contact-copy-button[data-copied] { background: #fff2df; color: #754105; }
.contact-copy-button .copied-icon, .contact-copy-button[data-copied] .copy-icon { display: none; }
.contact-copy-button[data-copied] .copied-icon { display: block; }
.contact-copy-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.contact-copy-status.is-visible { position: static; width: auto; height: auto; margin-top: 12px; overflow: visible; clip-path: none; white-space: normal; color: #754105; font-size: 14px; line-height: 1.5; }
.contact-copy-buffer { position: fixed; top: 0; left: -9999px; }
.contact-socials { max-width: 560px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--contact-line); }
.contact-socials > p { margin-bottom: 8px; font-size: 16px; line-height: 1.5; }
.contact-social-links { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-social-links > a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px 0 0; border: 1px solid var(--contact-line); border-radius: 14px; background: #fff; font-size: 14px; line-height: 1.4; transition: background .2s, border-color .2s; }
.contact-social-links > a:hover { border-color: #e4b66e; background: #fff2df; text-decoration: none; }
.contact-social-icon { display: grid; place-items: center; align-self: stretch; width: 54px; border-right: 1px solid var(--contact-line); border-radius: 13px; background: #fff; }
.contact-social-icon svg { width: 27px; height: 27px; stroke-width: 1.8; }
.contact-linkedin-icon svg { stroke: none; }
.contact-social-links .contact-social-arrow { width: 16px; height: 16px; }
.contact-invitation { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding: 16px 20px; border: 1px solid #ffe3b5; border-radius: 16px; background: #fff6e8; transition: border-color .2s, background .2s; }
.contact-invitation > img { flex-shrink: 0; width: 56px; height: 66px; object-fit: contain; }
.contact-invitation > span:first-of-type { display: block; flex: 1; min-width: 0; }
.contact-invitation strong { display: block; font-size: 18px; line-height: 1.4; letter-spacing: -.025em; font-weight: 750; }
.contact-invitation > span > span { display: block; margin-top: 2px; font-size: 16px; line-height: 1.5; color: var(--contact-muted); }
.contact-invitation-arrow { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid #ffe0ae; border-radius: 50%; background: #fff; }
.contact-invitation-arrow svg { width: 24px; height: 24px; }
.contact-invitation:hover { border-color: #e4b66e; background: #ffefd5; text-decoration: none; }
.contact-flight { position: absolute; top: 178px; left: calc(50% - 140px); width: 160px; height: 620px; pointer-events: none; }
.contact-flight > img { position: absolute; top: 0; right: 0; width: 70px; height: 70px; }
.contact-flight > svg { position: absolute; top: 50px; width: 160px; height: 560px; fill: none; stroke: #ffbd5c; stroke-width: 1; stroke-dasharray: 5 8; }
.contact-form { position: relative; min-width: 0; margin-top: 60px; padding: 34px 32px 30px; border: 1px solid #c58a12; border-radius: 20px; background: #fff; box-shadow: 0 20px 42px -30px #bda16a55; }
.contact-form h3 { margin: 0; font-size: clamp(22px, 1.6vw, 28px); line-height: 1.3; font-weight: 800; letter-spacing: -.035em; }
.contact-form header > p { margin-top: 8px; color: var(--contact-muted); font-size: clamp(16px, 1.13vw, 20px); line-height: 1.5; }
.contact-fields { margin-top: 40px; }
.form-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.contact-form label { display: block; margin-bottom: 8px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.contact-form label > span { color: #a34f00; }
.contact-form .contact-input-label { margin-bottom: 0; }
.contact-input-label .contact-field { display: block; margin-top: 8px; font-weight: 400; }
.contact-form-row { margin-top: 26px; }
.contact-field { position: relative; min-width: 0; }
.contact-field > svg { position: absolute; left: 18px; top: 16px; width: 22px; height: 22px; color: #435064; pointer-events: none; }
.contact-form input:not([type='hidden']), .contact-form textarea { display: block; width: 100%; min-width: 0; min-height: 54px; margin: 0; padding: 14px 16px 14px 54px; border: 1px solid #e3dfd8; border-radius: 14px; background: #fff; color: var(--ink); font-size: 16px; line-height: 1.5; caret-color: var(--contact-accent); }
.contact-form textarea { min-height: 146px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--contact-muted); opacity: 1; }
.contact-field:focus-within > svg { color: #a34f00; }
.send-button { display: flex; align-items: center; justify-content: center; gap: 16px; width: 100%; min-height: 62px; margin-top: 24px; padding: 16px 24px; border: 1px solid #ffb13c; border-radius: 999px; background: var(--contact-accent); color: var(--ink); font-size: 18px; line-height: 1.4; font-weight: 650; box-shadow: 0 10px 24px -16px #db9c4266; transition: background .2s, color .2s; }
.send-button > svg { width: 24px; height: 24px; flex-shrink: 0; }
.send-button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.send-button:disabled { opacity: .65; cursor: wait; }
.contact-privacy { display: flex; justify-content: center; align-items: start; gap: 10px; margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--contact-muted); }
.contact-privacy svg { width: 20px; height: 20px; flex-shrink: 0; }
.form-status { margin-top: 14px; color: #56564e; font-size: 14px; line-height: 1.5; }
.form-status:empty { display: none; }
.contact-form .text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 10px; color: #754105; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.contact-form noscript p { margin-top: 16px; color: var(--contact-muted); font-size: 14px; line-height: 1.5; }
@media (max-width: 1250px) {
  .contact-section { padding: 36px 30px; }
  .contact-reference-grid { gap: 48px; }
  .contact-form { margin-top: 40px; padding: 30px 26px; }
  .contact-social-links { gap: 10px; }
  .contact-social-links > a { padding-right: 10px; gap: 8px; }
  .contact-social-icon { width: 44px; }
  .contact-invitation { padding: 16px; gap: 12px; }
}
@media (max-width: 1100px) {
  .contact-reference-grid { gap: 30px; }
  .contact-flight { display: none; }
  .contact-method { column-gap: 12px; }
}
@media (max-width: 1000px) {
  .contact-reference-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-form { margin-top: 0; }
  .contact-lead { max-width: 65ch; }
  .contact-invitation { max-width: 660px; }
}
@media (max-width: 760px) {
  .contact-section { margin-top: 85px; padding: 26px 18px 24px; border-radius: 20px; }
  .contact-section h2 { font-size: clamp(38px, 9.7vw, 64px); line-height: 1.08; }
  .contact-badge { min-height: 38px; font-size: 14px; padding-inline: 14px; }
  .contact-lead { margin-top: 20px; font-size: 16px; }
  .contact-method { grid-template-columns: 44px minmax(0, 1fr); }
  .contact-method-icon { width: 44px; height: 48px; border-radius: 12px; }
  .contact-method-icon svg { width: 24px; height: 24px; }
  .contact-method dd { font-size: 16px; gap: 2px; }
  .contact-social-links { gap: 10px; }
  .contact-social-links > a { font-size: 13px; }
  .contact-invitation { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 16px 14px; }
  .contact-invitation > img { width: 44px; height: 56px; }
  .contact-invitation > span:first-of-type { grid-column: 2; grid-row: 1 / 3; }
  .contact-invitation strong { font-size: 16px; }
  .contact-invitation > span > span { font-size: 14px; }
  .contact-invitation-arrow { grid-column: 1; grid-row: 2; margin: 0; width: 44px; height: 44px; }
  .contact-form { padding: 26px 18px; border-radius: 16px; }
  .contact-form h3 { font-size: 22px; }
  .contact-form header > p { font-size: 16px; }
  .contact-fields { margin-top: 28px; }
  .form-pair { grid-template-columns: 1fr; gap: 22px; }
  .contact-form-row { margin-top: 22px; }
  .contact-form textarea { min-height: 146px; }
  .contact-field > svg { left: 14px; }
  .contact-form input:not([type='hidden']), .contact-form textarea { padding-left: 46px; }
  .send-button { min-height: 56px; padding-inline: 16px; gap: 10px; font-size: 16px; }
  .send-button > svg { width: 20px; height: 20px; }
  .contact-privacy { margin-top: 22px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-social-links > a, .contact-invitation, .send-button { transition: none; }
}
@media print {
  .contact-section { margin-top: 24px; padding: 20px; background: transparent; }
  .contact-section::before, .contact-section::after, .contact-flight, .contact-copy-button { display: none !important; }
  .contact-reference-grid { display: block; }
}
/* Footer: final user-selected Footer Banner Portfolio.png. */
.site-footer {
  --footer-ground: #fcfbf9;
  --footer-line: #e9e3d9;
  --footer-muted: #667082;
  --footer-accent: #ff9f16;
  --footer-tint: #fff6ea;
  max-width: none;
  margin: 48px auto 0;
  padding: 0 0 40px;
}
.footer-banner { position: relative; isolation: isolate; overflow: clip; display: grid; grid-template-columns: 37% 26.5% 36.5%; align-items: center; min-height: clamp(112px, 7.2vw, 156px); padding: clamp(22px, 1.55vw, 34px) 0; border-block: 1px solid var(--footer-line); border-radius: 0; background: var(--footer-ground); box-shadow: 0 16px 35px -16px #d9a54b35; }
.footer-identity { position: relative; min-width: 0; padding-left: clamp(92px, 9.6vw, 208px); padding-right: 20px; }
.footer-name { display: inline-block; white-space: nowrap; font-size: clamp(27px, 2.2vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: -.04em; }
.footer-name span { display: inline-block; width: .16em; height: .16em; margin-left: .025em; border-radius: 50%; background: var(--footer-accent); color: transparent; line-height: .16; overflow: hidden; }
.footer-name:hover { text-decoration: none; }
.footer-role { margin-top: 8px; color: var(--footer-muted); font-size: clamp(10px, .8vw, 17px); font-weight: 650; letter-spacing: .25em; line-height: 1.5; white-space: nowrap; }
.footer-code { position: relative; display: flex; justify-content: center; align-items: center; align-self: stretch; gap: clamp(16px, 1.4vw, 30px); border-inline: 1px solid var(--footer-line); font-size: clamp(26px, 1.8vw, 40px); line-height: 1.2; letter-spacing: -.035em; }
.footer-code strong { font-weight: 800; }
.footer-code > span { color: var(--footer-accent); font-size: 1.25em; font-weight: 750; }
.footer-end { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: clamp(24px, 2.4vw, 52px); min-width: 0; padding-inline: 24px clamp(24px, 2.4vw, 52px); }
.footer-end p { color: var(--footer-muted); font-size: clamp(14px, 1.02vw, 23px); line-height: 1.5; white-space: nowrap; }
.footer-back-top { position: relative; display: grid; place-items: center; flex-shrink: 0; width: clamp(54px, 4vw, 88px); height: clamp(54px, 4vw, 88px); border: 1px solid var(--footer-line); border-radius: 50%; background: linear-gradient(145deg, #fffdf8, #ffedc8); box-shadow: inset 0 0 0 7px #fff6ea99; transition: background .2s, color .2s, border-color .2s; }
.footer-back-top svg { width: clamp(25px, 1.8vw, 38px); height: clamp(25px, 1.8vw, 38px); stroke-width: 2; }
.footer-back-top:hover { background: var(--footer-accent); border-color: var(--footer-accent); text-decoration: none; }
.footer-decoration { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.footer-wave, .footer-orbit { position: absolute; display: block; border-radius: 50%; transform: translateX(-48px); }
.footer-wave-outer { width: 320px; height: 320px; left: -160px; bottom: -186px; background: #fff6ea; }
.footer-wave-middle { width: 260px; height: 260px; left: -130px; bottom: -156px; background: #ffedc8; }
.footer-wave-inner { width: 210px; height: 210px; left: -105px; bottom: -131px; background: linear-gradient(135deg, #fff2df, #ffd17a); }
.footer-orbit { width: 370px; height: 370px; left: -185px; bottom: -210px; border: 1px solid #ffdfaa; }
.footer-dot { position: absolute; width: clamp(18px, 1.35vw, 29px); height: clamp(18px, 1.35vw, 29px); left: clamp(62px, 5.95vw, 129px); top: 28%; border-radius: 50%; background: linear-gradient(135deg, #ffdfaa, #ffc44d); }
@media (max-width: 1250px) {
  .footer-banner { grid-template-columns: 39% 25% 36%; }
  .footer-identity { padding-left: 70px; }
  .footer-name { font-size: 28px; }
  .footer-role { font-size: 10px; letter-spacing: .17em; }
  .footer-code { gap: 12px; font-size: 25px; }
  .footer-end { padding-inline: 16px; gap: 16px; }
  .footer-end p { font-size: 12px; }
  .footer-back-top { width: 48px; height: 48px; }
  .footer-wave-outer { left: -220px; }
  .footer-wave-middle { left: -190px; }
  .footer-wave-inner { left: -165px; }
  .footer-orbit { left: -245px; }
  .footer-dot { left: 34px; width: 16px; height: 16px; }
}
@media (max-width: 1000px) {
  .footer-banner { grid-template-columns: 1fr 1.4fr; padding: 20px 0; gap: 20px 0; }
  .footer-identity { grid-column: 1 / -1; padding-left: 104px; }
  .footer-name { font-size: 30px; }
  .footer-role { font-size: 10px; }
  .footer-code { border-left: 0; padding-block: 8px; font-size: 26px; }
  .footer-end { justify-content: space-evenly; }
  .footer-end p { font-size: 13px; }
  .footer-dot { top: 30px; left: 66px; }
}
@media (max-width: 600px) {
  .site-footer { margin-top: 36px; padding: 0 0 24px; }
  .footer-banner { grid-template-columns: 1fr; gap: 16px; padding: 22px 20px; }
  .footer-identity { padding: 0 0 0 24px; }
  .footer-name { font-size: clamp(25px, 7.1vw, 30px); }
  .footer-role { font-size: 10px; letter-spacing: .15em; margin-top: 7px; }
  .footer-code { border: 0; border-block: 1px solid var(--footer-line); padding: 16px 0; font-size: 27px; }
  .footer-end { padding: 0; gap: 12px; justify-content: space-between; }
  .footer-end p { font-size: 12px; white-space: normal; }
  .footer-back-top { width: 44px; height: 44px; box-shadow: inset 0 0 0 4px #fff6ea99; }
  .footer-dot { width: 13px; height: 13px; left: 20px; top: 31px; }
  .footer-wave-outer { opacity: .65; }
  .footer-wave-middle, .footer-wave-inner { opacity: .55; }
}
@media (prefers-reduced-motion: reduce) { .footer-back-top { transition: none; } }
@media print { .site-footer { margin-top: 24px; padding: 0; } .footer-decoration { display: none; } .footer-banner { box-shadow: none; } }

/* Match main-section breaks to the approved Skills-to-Contact spacing.
   Footer keeps its smaller gap; card and heading padding stays inside each section. */
@media screen {
  :root { --section-gap: 140px; }
  .portfolio-content > section + section { margin-top: var(--section-gap); }
  .portfolio-content > .hero { padding-bottom: 0; }
  .portfolio-content > :is(.about-story, .education-section, .journey-section, .projects-section, .skills-section) { padding-block: 0; }
}
@media screen and (min-width: 1201px) {
  .portfolio-content .about-footer { padding-bottom: calc((var(--resume-circle-size) - var(--availability-line-size)) / 2); }
}
@media screen and (max-width: 760px) {
  :root { --section-gap: 85px; }
}

