/* Works and About: fluid implementations of the current Figma body pages. */
.hp-works, .hp-about { color: var(--ink); background: var(--paper); }
.hp-works h1, .hp-works h2, .hp-about h1, .hp-about h2,
.hp-about h3, .hp-about h4 { margin: 0; font-weight: 500; }
.hp-works p, .hp-about p { margin: 0; }
.hp-works-hero { position: relative; min-height: 324px; overflow: hidden; }
.hp-works-backdrop { position: absolute; inset: -60px 0 0; pointer-events: none; }
.hp-works-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.hp-works-sphere { position: absolute; top: 58px; right: -36px; width: 374px; height: 374px; }
.hp-works-hero-copy { position: relative; width: min(1200px, calc(100% - 128px)); margin: auto; padding-block: 104px 80px; }
.hp-works-hero h1 { font-size: 60px; line-height: 1.2; letter-spacing: -.04em; }
.hp-works-hero p { margin-top: 10px; font: 500 28px/1.2 "Merriweather", Georgia, serif; letter-spacing: -.02em; color: #454747; }
.hp-works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: min(1200px, calc(100% - 128px)); margin: auto; padding-block: 100px; }
.hp-work-card { --hp-work-active: 0; --hp-work-duration: .6s; position: relative; display: flex; flex-direction: column; gap: 24px; padding: 24px; border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; transition: border-color var(--hp-work-duration) ease; }
.hp-work-cover { position: relative; width: 100%; aspect-ratio: 540 / 336.203; background: #f5f0eb; overflow: hidden; }
.hp-work-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.hp-work-cover::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .4); transform: scaleY(0); transform-origin: top; transition: transform var(--hp-work-duration) cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.hp-work-hover { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); width: max-content; max-width: calc(100% - 32px); color: #fff; font: 500 20px/1.3 "Merriweather", Georgia, serif; text-align: center; opacity: 0; transition: opacity var(--hp-work-duration) ease; pointer-events: none; }
.hp-work-corners { position: absolute; inset: 0; pointer-events: none; }
/* Native easing approximates the reference's 0.6-second, 0.2-bounce spring. */
.hp-work-corners i { position: absolute; width: 12px; height: 12px; border: 2px solid #f4f3ee; background: #c45600; opacity: var(--hp-work-active); transform: scale(calc(.4 + var(--hp-work-active) * .6)); transition: opacity var(--hp-work-duration) ease, transform var(--hp-work-duration) cubic-bezier(.34, 1.3, .64, 1), inset var(--hp-work-duration) cubic-bezier(.22, 1, .36, 1); }
.hp-work-corners i:nth-child(1) { top: calc(10px - 16px * var(--hp-work-active)); left: calc(10px - 16px * var(--hp-work-active)); }
.hp-work-corners i:nth-child(2) { top: calc(10px - 16px * var(--hp-work-active)); right: calc(10px - 16px * var(--hp-work-active)); }
.hp-work-corners i:nth-child(3) { bottom: calc(10px - 16px * var(--hp-work-active)); left: calc(10px - 16px * var(--hp-work-active)); }
.hp-work-corners i:nth-child(4) { bottom: calc(10px - 16px * var(--hp-work-active)); right: calc(10px - 16px * var(--hp-work-active)); }
.hp-work-card:focus-visible, .hp-work-card:active { --hp-work-active: 1; border-color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
    .hp-work-card:hover { --hp-work-active: 1; border-color: var(--accent); }
    .hp-work-card:is(:hover, :focus-visible) .hp-work-cover::after { transform: scaleY(1); }
    .hp-work-card:is(:hover, :focus-visible) .hp-work-hover { opacity: 1; }
}
@media (hover: none), (pointer: coarse) { .hp-work-card { --hp-work-duration: 0s; } }
.hp-work-card--tarz .hp-work-cover { background: #0b1014; }
.hp-work-copy h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.hp-work-copy p { margin-top: 12px; font-size: 16px; line-height: 1.5; color: #454747; }
.hp-work-card:focus-visible, .hp-skills-list summary:focus-visible, .hp-interest-list:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.hp-about-intro { padding: 68px 24px 64px; }
.hp-about-portrait-card { position: relative; display: flex; align-items: center; gap: 24px; width: min(1000px, 100%); height: 282px; margin: auto; background: #f4f3ee; border: 1px solid var(--line); overflow: hidden; }
.hp-about-portrait-card::after { content: ""; position: absolute; top: -5px; bottom: -145px; left: 72.45%; width: 55.55%; background: #ff8d4a; }
.hp-about-portrait { position: relative; align-self: stretch; width: 199px; flex: 0 0 199px; background: #ffb690; }
.hp-about-portrait picture { position: absolute; display: block; inset: auto 0 0; height: 252.719px; }
.hp-about-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-about-title { z-index: 1; min-width: 0; }
.hp-about-title h1 { font-size: 48px; line-height: 1.2; letter-spacing: -.04em; }
.hp-about-title p { font: 500 36px/1.2 "Merriweather", Georgia, serif; letter-spacing: -.04em; color: var(--muted); }
.hp-about-bio { max-width: 1000px; margin: 32px auto 0 !important; text-align: center; font-size: 18px; line-height: 1.5; color: var(--muted); }
.hp-about-section { margin-bottom: 64px; border-block: 1px solid var(--line); }
.hp-about-panel { width: min(1000px, calc(100% - 48px)); margin: auto; padding: 64px; border-inline: 1px solid var(--line); background: #f4f3ee; }
.hp-about-panel h2 { margin-bottom: 44px; font-size: 36px; line-height: 1.2; letter-spacing: -.04em; }
.hp-about-experience { min-height: 842px; }
.hp-experience-list { display: grid; gap: 24px; }
.hp-experience-entry { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 24px 10px; padding-bottom: 24px; border-bottom: 1px solid #deded7; }
.hp-experience-entry:last-child { padding-bottom: 0; border-bottom: 0; }
.hp-about-icon { display: block; width: 50px; height: 50px; border-radius: 8px; }
.hp-experience-copy { min-width: 0; }
.hp-about-panel h3 { font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.hp-experience-role { margin-top: 2px !important; font-size: 16px; line-height: 1.5; color: var(--muted); }
.hp-experience-note { margin-top: 10px !important; font-size: 18px; line-height: 1.5; color: #2f3131; }
.hp-experience-timeline { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; }
.hp-experience-timeline li { position: relative; min-height: 77px; padding: 16px 0 16px 60px; }
.hp-experience-timeline li::before { content: ""; position: absolute; left: 24px; top: 38px; width: 1px; height: 77px; background: #e2e2e2; }
.hp-experience-timeline li::after { content: ""; position: absolute; left: 19px; top: 33px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.hp-experience-timeline li:last-child::before { display: none; }
.hp-about-panel h4 { font: 600 16px/1.5 "Merriweather Sans", sans-serif; }
.hp-experience-timeline p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.hp-about .hp-mobile-detail { display: none; }
.hp-about-education { min-height: 446px; }
.hp-education-entry { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 10px; padding-bottom: 24px; border-bottom: 1px solid #deded7; }
.hp-about-skills { min-height: 449px; }
.hp-about-skills h2, .hp-about-interests h2 { margin-bottom: 32px; }
.hp-skills-list { display: grid; gap: 14px; }
.hp-skills-list details { border-bottom: 1px solid #e2e2e2; }
.hp-skills-list summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px; cursor: pointer; list-style: none; font: 500 20px/1.2 "Merriweather", Georgia, serif; }
.hp-skills-list summary::-webkit-details-marker { display: none; }
.hp-skills-list summary img { width: 20px; height: 20px; flex: 0 0 20px; transition: transform .2s ease; }
.hp-skills-list details[open] summary img { transform: rotate(180deg); }
.hp-skills-list details > p { padding-bottom: 24px; color: var(--muted); }
.hp-about-section--interests { margin-bottom: 0; }
.hp-about-interests { min-height: 355px; }
.hp-interest-list { display: flex; gap: 26px; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
.hp-interest-list figure { flex: 0 0 128px; margin: 0; padding-bottom: 8px; scroll-snap-align: start; text-align: center; }
.hp-interest-list figure > div { display: grid; place-items: center; width: 128px; height: 128px; border: 1px solid var(--line); border-radius: 12px; }
.hp-interest-list img { display: block; width: 99px; height: 99px; object-fit: contain; }
.hp-interest-list figcaption { margin-top: 10px; font-size: 12px; font-weight: 600; line-height: 1.2; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 1050px) and (min-width: 701px) {
    .hp-works-hero-copy, .hp-works-grid { width: calc(100% - 64px); }
    .hp-work-card { padding: 16px; gap: 20px; }
    .hp-work-copy h2 { font-size: 22px; }
    .hp-about-panel { padding: 48px; }
    .hp-about-portrait-card::after { left: 82%; }
    .hp-about-title h1 { font-size: 40px; }
    .hp-about-title p { font-size: 30px; }
}
@media (max-width: 700px) {
    .hp-works-hero-copy { width: calc(100% - 48px); padding-block: 118px 70px; text-align: center; }
    .hp-works-hero h1 { font-size: clamp(32px, 11.282vw, 44px); }
    .hp-works-hero p { font-size: 20px; }
    .hp-works-sphere { top: 186px; right: -36px; width: 187px; height: 187px; }
    .hp-works-grid { width: calc(100% - 32px); grid-template-columns: minmax(0, 1fr); padding-block: 32px; }
    .hp-work-card { gap: 24px; padding: 12px; background: #f4f3ee; }
    .hp-work-cover { aspect-ratio: 334 / 216.8125; }
    .hp-work-card--para .hp-work-cover { aspect-ratio: 334 / 238.40625; }
    .hp-work-copy h2 { font-size: 18px; line-height: 1.2; }
    .hp-work-copy p { font-size: 16px; line-height: 1.5; }
    .hp-about-intro { padding: 68px 24px 24px; }
    .hp-about-portrait-card { flex-direction: column; gap: 24px; height: auto; max-width: 400px; padding-bottom: 24px; }
    .hp-about-portrait { width: 100%; aspect-ratio: 342 / 456; flex: none; }
    .hp-about-portrait picture { height: 95.247%; }
    .hp-about-portrait-card::after { top: -1px; bottom: auto; left: auto; right: -1px; width: 128px; height: 120px; background: var(--accent); }
    .hp-about-title { padding-inline: 12px; text-align: center; }
    .hp-about-title h1 { font-size: 32px; }
    .hp-about-title p { margin-top: 4px; font-size: 25px; }
    .hp-about-bio { font-size: 16px; line-height: 1.5; }
    .hp-about-section { margin-bottom: 24px; }
    .hp-about-panel { padding: 32px 16px; }
    .hp-about-panel h2 { margin-bottom: 24px; font-size: 25px; line-height: 1.2; }
    .hp-about-experience { min-height: 703px; }
    .hp-experience-entry { display: block; }
    .hp-experience-entry .hp-about-icon, .hp-about .hp-desktop-detail { display: none; }
    .hp-about .hp-mobile-detail { display: block; }
    .hp-about-panel h3 { font-size: 20px; }
    .hp-experience-role { margin-top: 12px !important; font-size: 15px; }
    .hp-experience-note { margin-top: 6px !important; font-size: 12px; }
    .hp-mobile-experience-notes { margin-top: 6px; font-size: 12px; line-height: 1.5; }
    .hp-mobile-experience-notes p + p { margin-top: 18px; }
    .hp-about-education { min-height: 315px; }
    .hp-education-entry { padding-top: 24px; }
    .hp-education-entry h3 { font-size: 18px; }
    .hp-education-entry .hp-experience-role { margin-top: 2px !important; font-size: 14px; }
    .hp-education-entry .hp-experience-note { margin-top: 10px !important; font-size: 16px; }
    .hp-about-skills { min-height: 364px; }
    .hp-about-skills h2 { margin-bottom: 16px; }
    .hp-about-interests { min-height: 239px; }
    .hp-interest-list { gap: 20px; }
    .hp-interest-list figure { flex-basis: 100px; }
    .hp-interest-list figure > div { width: 100px; height: 100px; }
    .hp-interest-list img { width: 82px; height: 82px; }
    .hp-interest-list figcaption { font-size: 10px; }
    .hp-about-section--interests { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html:not(.hp-motion-override) .hp-work-card { --hp-work-duration: 0s; }
    html:not(.hp-motion-override) .hp-skills-list summary img { transition: none; }
}
