:root{--ink:#28242b;--muted:#5f5963;--paper:#fcfbfa;--display:'Instrument Serif',Georgia,serif;--body:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:40px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--body);font-size:16px;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit}img{display:block;width:100%;height:auto}button,a{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible{outline:3px solid #8453cc;outline-offset:7px}::selection{background:#ffc788}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip{position:fixed;top:-100px;left:20px;z-index:50;background:white;padding:15px;border-radius:12px}.skip:focus{top:15px}.header{position:absolute;top:0;left:0;right:0;z-index:10;display:flex;align-items:center;justify-content:space-between;padding:24px 6vw}.wordmark{font-family:var(--display);font-size:45px;letter-spacing:-3px;line-height:1}.brand-dot{color:#9a412f}.header nav{display:flex;align-items:center;gap:36px;font-size:14px}.header nav a{padding:12px 0}.header nav .contact-link{border:1px solid #28242b55;padding:11px 22px;border-radius:100px}.hero{position:relative;isolation:isolate;min-height:920px;height:100svh;max-height:1200px;overflow:hidden;padding:136px 8vw 44px;background:#faf5ee;display:flex;flex-direction:column;justify-content:space-between}.hero-gradient{position:absolute;inset:0;z-index:-3;background:radial-gradient(ellipse at 0% 10%,#ff5db885 0%,transparent 58%),radial-gradient(ellipse at 100% 5%,#57d7ed9c 0%,transparent 60%),radial-gradient(ellipse at 95% 100%,#9380ff99 0%,transparent 62%),radial-gradient(ellipse at 8% 95%,#f7a248a6 0%,transparent 60%),linear-gradient(125deg,#fff2f6 0%,#eff4ff 55%,#f5eaff 100%)}.hero-topline{display:flex;justify-content:space-between;gap:24px;font-size:12px;letter-spacing:.14em}.hero-content{position:relative;padding:42px 0 32px;margin-left:13vw}.intro-label{font-size:17px;margin:0 0 14px 5px}h1{font-family:'Italiana',Georgia,serif;font-size:clamp(90px,9.5vw,154px);font-weight:400;line-height:.94;letter-spacing:-.05em;margin:0}h1 em{font-family:var(--display);font-weight:400}h1 .surname{margin-left:8vw}h1 .name-period{font-family:var(--display);color:#9e453f}h2,h3{font-family:var(--display);font-weight:400;margin:0;letter-spacing:-.025em}h2{font-size:clamp(44px,4.7vw,76px);line-height:1.02}h2 em,h3 em{font-weight:400;color:#7f524e}.role-line{font-size:clamp(22px,2.25vw,36px);font-family:var(--display);margin:36px 0 0 8vw;display:flex;align-items:baseline;gap:.25em;min-height:1.4em}.role-slot{min-width:22ch}.typing-cursor{display:inline-block;width:1px;height:.9em;background:var(--ink);margin-left:4px;vertical-align:-.06em;animation:blink .9s step-end infinite}@keyframes blink{50%{opacity:0}}.hero-bottom{display:flex;align-items:end;justify-content:space-between;gap:24px}.hero-bottom p{font-size:15px;line-height:1.6;margin:0}.pill-link{display:inline-flex;gap:28px;align-items:center;padding:16px 25px;border:1px solid #28242b88;border-radius:100px;font-size:14px;transition:background .25s,transform .25s,color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease}.pill-link:hover,.header nav .contact-link:hover{background:#ffffff88;transform:translateY(-3px)}.pill-link span{font-size:24px;line-height:1}.hero-index{font-size:12px;letter-spacing:.15em}.section-shell{width:min(1180px,84%);margin:auto}.work{padding-top:138px}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:50px;margin-bottom:65px}.eyebrow{font-size:12px;letter-spacing:.12em;line-height:1.6;margin:0 0 25px}.section-description{max-width:310px;font-size:16px;line-height:1.65;color:var(--muted);margin:0 0 3px}.projects{display:flex;flex-direction:column;gap:64px}.project-card{position:relative;display:block;isolation:isolate;border-radius:48px;transition:transform .55s cubic-bezier(.22,.68,0,1.15),color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease;--card-background:#f1ede9;--perimeter:3000}.project-card:hover,.project-card:focus-visible{transform:scale(1.025);z-index:2}.card-surface{display:grid;grid-template-columns:45% 55%;border-radius:inherit;background:var(--card-background);overflow:hidden;position:relative;z-index:1;min-height:480px}.project-copy{padding:40px 40px 44px;display:flex;flex-direction:column;align-items:start}.card-meta{display:flex;flex-direction:column;gap:8px;font-size:12px;letter-spacing:.075em;margin-bottom:60px}.project-status{color:#655d65;font-size:11px;letter-spacing:.06em}.project-copy h3{font-size:clamp(44px,4.3vw,64px);line-height:1.03}.project-copy h3 em{display:block}.project-copy p{font-size:16px;line-height:1.55;max-width:255px;color:var(--muted);margin:23px 0 35px}.project-action{margin-top:auto;font-size:14px;border-bottom:1px solid #28242b66;padding-bottom:8px;display:flex;gap:12px;align-items:center}.project-action svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:1.2}.project-visual{position:relative;min-height:480px}.project-visual img{height:100%;width:100%;object-fit:cover;position:absolute;object-position:center 38%;transition:transform .8s cubic-bezier(.2,.7,.2,1),color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease}.project-card:hover .project-visual img{transform:scale(1.035)}.image-caption{position:absolute;bottom:30px;left:30px;border:1px solid #ffffff60;background:#26202680;color:#fff;backdrop-filter:blur(10px);padding:10px 14px;border-radius:20px;font-size:11px;letter-spacing:.1em}.qualcomm{--card-background:#eeedf6}.thermo .project-copy h3 em,.qualcomm .project-copy h3 em,.king .project-copy h3 em{font-size:34px;margin-top:12px}.qualcomm .project-visual img{object-position:60% 45%}.king{--card-background:#f3eee7}.king .project-visual img{object-position:60% 50%}.card-edge,.card-glow{position:absolute;inset:-3px;border-radius:51px;opacity:0;transition:opacity .3s,color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease;pointer-events:none;z-index:0}.card-glow{inset:-5px;filter:blur(13px)}.project-card:hover .card-edge,.project-card:hover .card-glow,.project-card:focus-visible .card-edge,.project-card:focus-visible .card-glow{opacity:1}.orbit-svg{display:block;width:100%;height:100%;overflow:visible}.orbit-path{fill:none;stroke-width:5;stroke-linecap:round;stroke-dasharray:240 2760;animation:perimeter 4s linear infinite;animation-play-state:paused}.glow-path{stroke-width:10;stroke-dasharray:420 2580}.project-card:hover .orbit-path,.project-card:focus-visible .orbit-path{animation-play-state:running}@keyframes perimeter{to{stroke-dashoffset:-3000}}.process{padding-top:160px}.process-grid{display:grid;grid-template-columns:1fr 1fr;gap:50px 48px}.process-grid figure{margin:0;min-width:0}.process-image{display:block;cursor:zoom-in;width:100%;height:340px;border:0;padding:28px;border-radius:36px;background:#f2eeef;overflow:hidden;transition:transform .4s,color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease}.process-image:hover{transform:scale(1.025)}.process-image img{height:100%;object-fit:contain;border-radius:10px}.process-grid figcaption{display:flex;justify-content:space-between;gap:16px;font-size:14px;padding:19px 3px}.about{padding-top:165px;padding-bottom:160px;display:grid;grid-template-columns:1.35fr .8fr;gap:11%;align-items:center}.about-copy p:not(.eyebrow){font-size:16px;line-height:1.8;color:var(--muted);max-width:540px;margin-top:28px}.text-link{display:inline-block;font-size:14px;padding-bottom:6px;border-bottom:1px solid #28242b66;margin-top:15px}.portrait-wrap{position:relative;background:radial-gradient(ellipse at bottom right,#ffbca0,transparent 65%),#f0e7f1;border-radius:44% 44% 36px 36px;padding:35px 25px 0}.portrait-wrap img{width:100%;height:370px;object-fit:contain;object-position:center bottom}.portrait-wrap>span{position:absolute;bottom:20px;right:-22px;background:#fff;padding:10px 19px;border-radius:100px;transform:rotate(-8deg);font-family:var(--display);font-style:italic;font-size:28px;box-shadow:0 5px 20px #655d6510}.footer{background:radial-gradient(ellipse at 5% 75%,#ffcc9b,transparent 55%),radial-gradient(ellipse at 80% 85%,#efcae6,transparent 50%),#f7efe8}.footer-content{padding-top:95px;padding-bottom:30px}.footer h2{font-size:clamp(50px,5.5vw,86px);margin-bottom:32px}.footer-bottom{border-top:1px solid #28242b22;margin-top:100px;padding-top:25px;display:flex;justify-content:space-between;align-items:center;gap:25px;font-size:12px}.footer-name{font-family:var(--display);font-size:24px;font-weight:400;font-style:normal}.footer-bottom>div{display:flex;gap:25px}dialog{border:0;padding:55px 30px 24px;border-radius:24px;width:min(1040px,90vw);max-height:90svh;background:var(--paper);box-shadow:0 20px 100px #0004}dialog::backdrop{background:#242028b8;backdrop-filter:blur(7px)}dialog img{max-height:70svh;object-fit:contain}dialog p{font-size:14px;margin-bottom:0}.dialog-close{position:absolute;top:15px;right:20px;background:none;border:0;cursor:pointer;padding:6px;font-size:14px}
@media(min-width:1600px){.hero-content{margin-left:16vw}}
@media(max-width:1000px){.hero{min-height:800px;padding-left:7vw;padding-right:7vw}.hero-content{margin-left:6vw}h1{font-size:clamp(85px,11vw,115px)}.section-shell{width:86%}.section-heading{gap:30px}.section-description{max-width:265px}.card-surface{min-height:440px;grid-template-columns:47% 53%}.project-copy{padding:32px}.card-meta{margin-bottom:44px}.project-visual{min-height:440px}.project-copy h3{font-size:46px}.project-status{font-size:10px}.process-image{height:290px}.about{gap:7%}.portrait-wrap img{height:300px}}
@media(max-width:680px){.header{padding:22px 6vw}.wordmark{font-size:38px}.header nav{gap:18px;font-size:12px}.header nav .contact-link{padding:9px 12px}.hero{height:auto;min-height:790px;max-height:none;padding:118px 7vw 35px}.hero-topline{font-size:10px;letter-spacing:.08em}.hero-topline span:last-child{max-width:90px;text-align:right}.hero-content{margin-left:0;padding:65px 0 80px}.intro-label{font-size:16px}h1{font-size:clamp(62px,14vw,94px);line-height:1.03;letter-spacing:-.055em}h1 .surname{margin-left:14vw}.role-line{font-size:25px;margin:30px 0 0;gap:.24em;min-height:3em;flex-wrap:wrap}.role-slot{min-width:0;max-width:100%}.hero-bottom{align-items:center;flex-wrap:wrap;gap:24px}.hero-bottom p{font-size:13px}.hero-index{display:none}.pill-link{padding:14px 19px;font-size:13px;gap:20px}.section-shell{width:86%}.work{padding-top:80px}.section-heading{display:block;margin-bottom:38px}.section-description{margin-top:25px;max-width:100%;font-size:15px}h2{font-size:48px}.eyebrow{font-size:10px;margin-bottom:18px}.projects{gap:38px}.project-card{border-radius:32px}.card-edge,.card-glow{border-radius:35px}.card-surface{display:flex;flex-direction:column;min-height:0}.project-copy{padding:28px 28px 30px;min-height:365px}.card-meta{margin-bottom:32px;font-size:11px}.project-status{font-size:10px}.project-copy h3{font-size:47px}.project-copy p{font-size:15px;margin-top:18px;max-width:280px;margin-bottom:24px}.project-visual{min-height:300px;height:300px}.project-visual img{object-position:center 30%}.thermo .project-copy h3 em,.qualcomm .project-copy h3 em,.king .project-copy h3 em{font-size:32px}.image-caption{left:24px;bottom:24px}.process{padding-top:90px}.process-grid{grid-template-columns:1fr;gap:32px}.process-image{height:330px;border-radius:28px;padding:22px}.process-grid figcaption{font-size:13px;padding-top:15px}.about{padding-top:95px;padding-bottom:100px;grid-template-columns:1fr;gap:50px}.about-copy p:not(.eyebrow){font-size:15px}.portrait-wrap{width:min(330px,90%);justify-self:center}.portrait-wrap img{height:330px}.portrait-wrap>span{right:-12px}.footer-content{padding-top:75px}.footer h2{font-size:49px}.footer-bottom{margin-top:70px;flex-direction:column;align-items:start;gap:23px}.footer-bottom>div{font-size:13px;gap:26px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.project-card:hover,.project-card:focus-visible,.process-image:hover,.pill-link:hover{transform:none}.typing-cursor{display:none}.project-card:hover .project-visual img{transform:none}.orbit-path{stroke-dasharray:none;opacity:.7}}

.border-base{fill:none;stroke-width:2;opacity:.7}.card-glow .border-base{stroke-width:6;opacity:.45}
/* Hero introduction and oversized rotating role. */
.hero-content{margin-left:0;width:100%;padding:38px 0}.hero-content h1{font-family:var(--display);font-size:clamp(56px,5.7vw,86px);line-height:1.05;letter-spacing:-.03em}.hero-content h1 em{font-style:italic}.role-line{font-family:var(--body);font-weight:600;font-size:clamp(44px,5.5vw,84px);line-height:1.1;letter-spacing:-.055em;margin:40px 0 0;min-height:2.3em;display:block}.role-prefix{display:inline;white-space:nowrap}.role-slot{min-width:0}.typing-cursor{width:3px}.hero{min-height:920px}
@media(max-width:680px){.hero-content{padding:65px 0}.hero-content h1{font-size:clamp(41px,10.5vw,62px)}.role-line{font-size:clamp(35px,8.7vw,53px);letter-spacing:-.045em;margin:34px 0 0;min-height:3.4em;overflow-wrap:normal}.hero{min-height:850px}.role-slot{display:inline}}
/* Requested hero type sizes, including smaller viewports. */
.hero-content #hero-heading{font-size:34px}
.hero-content .role-line{font-size:60px}

/* Final hero typography: caption greeting and serif role. */
.hero-content #hero-heading{font-family:var(--body);font-size:12px;font-weight:600;letter-spacing:.14em;line-height:1.6;white-space:nowrap}
.hero-content .role-line{font-family:var(--display);font-size:80px;font-weight:400;letter-spacing:-.025em;line-height:1.1}
@media(max-width:680px){.hero-content #hero-heading{font-size:10px;letter-spacing:.08em}}
.hero-content #hero-heading{text-transform:uppercase;font-size:12px}
.hero-content .role-line{margin-top:32px}
@media(max-width:680px){.hero-content #hero-heading{font-size:10px}.hero-content .role-line{margin-top:26px}}

.project-card.thermo{--card-background:#e9e4fa}

.project-card.qualcomm{--card-background:#def2f6}

.project-card.king{--card-background:#f9e5d1}

.about .portrait-wrap{border-radius:50%;padding:22px 36px;width:100%;height:auto;background:radial-gradient(ellipse at 0% 10%,#ff5db885 0%,transparent 58%),radial-gradient(ellipse at 100% 5%,#57d7ed9c 0%,transparent 60%),radial-gradient(ellipse at 95% 100%,#9380ff99 0%,transparent 62%),radial-gradient(ellipse at 8% 95%,#f7a248a6 0%,transparent 60%),linear-gradient(125deg,#fff2f6 0%,#eff4ff 55%,#f5eaff 100%);overflow:hidden}
.about .portrait-wrap img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center center;border-radius:50%}
/* Curved-top gradient arch with a square, bottom-aligned headshot. */
.about .portrait-wrap{border-radius:999px 999px 0 0;padding:64px 24px 0;display:flex;align-items:flex-end}
.about .portrait-wrap img{border-radius:0;aspect-ratio:1;object-fit:cover;object-position:center center}
/* Reference proportions: 450-wide arch, 481-high, 353-square portrait. */
.about .portrait-wrap{width:112%;max-width:430px;aspect-ratio:450 / 481;padding:0;justify-self:center;position:relative}
.about .portrait-wrap img{position:absolute;bottom:0;left:10.7778%;width:78.4444%;height:auto;aspect-ratio:1}
@media(max-width:680px){.about .portrait-wrap{width:calc(100% + 20px);max-width:90vw}}
/* Extend only the space above the bottom-aligned photo by 30px. */
.about .portrait-wrap{aspect-ratio:auto;display:block}
.about .portrait-wrap::before{content:"";display:block;width:100%;aspect-ratio:450 / 481;padding-bottom:30px;box-sizing:content-box}

.header .wordmark{display:inline-flex;align-items:center;gap:12px;flex-shrink:0}.header .panda-logo{width:42px;height:42px;object-fit:contain}.header .wordmark>span{display:block}
@media(max-width:680px){.header .wordmark{gap:8px}.header .panda-logo{width:32px;height:32px}.header nav{gap:14px}}

#typed-role{white-space:pre-wrap}

.hero-topline>span:last-child{width:max-content;max-width:none;white-space:nowrap;flex-shrink:0}.hero-content #hero-heading{font-weight:800}
/* Minimum supported viewport and compact header on a 4px spacing scale. */
:root{--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px}
body{min-width:320px}
.header{gap:var(--space-4)}
.header nav{flex-shrink:0}
.header nav a{white-space:nowrap}
.hero-topline{flex-wrap:wrap;gap:var(--space-4);align-items:baseline}
.hero-topline>span{white-space:nowrap}
@media(max-width:680px){.header{padding:var(--space-6) var(--space-4)}.header nav{gap:var(--space-3)}.header nav .contact-link{padding:var(--space-2) var(--space-3)}.hero{padding-left:var(--space-6);padding-right:var(--space-6)}}
@media(max-width:360px){.header{flex-wrap:wrap}.header nav{width:100%;justify-content:space-between}.hero{padding-top:160px}.hero-topline>span:last-child{margin-left:auto}}

.header nav{display:flex;align-items:baseline}.header nav a{font-weight:400;line-height:1.5}.header nav .contact-link{border:1px solid #28242b55;border-radius:100px}.header nav a span{display:inline}
/* Fill the visible viewport, growing only when the content needs more room. */
.hero{height:auto;min-height:100vh;min-height:100dvh;max-height:none;padding-top:112px;padding-bottom:calc(32px + env(safe-area-inset-bottom,0px));gap:24px;overflow:visible}
.hero .hero-content{padding:0;flex:0 0 auto}
.hero .hero-topline,.hero .hero-bottom{flex:0 0 auto}
.hero .role-line{min-height:1.1em}
@media(max-width:680px){.hero{padding-top:112px}}


/* Process cards share the inset image and enclosed caption layout of persona cards. */
.process-grid figure{background:#f2eeef;border-radius:36px;padding:24px;overflow:hidden}
.process-grid .process-image{height:auto;aspect-ratio:4 / 3;padding:0;background:transparent;border-radius:24px}
.process-grid .process-image img{width:100%;height:100%;object-fit:cover;border-radius:24px}
.process-grid figcaption{padding:24px 0 4px;line-height:1.5;align-items:baseline}
@media(max-width:680px){.process-grid figure{padding:16px;border-radius:28px}.process-grid .process-image,.process-grid .process-image img{border-radius:20px}.process-grid figcaption{padding:20px 0 4px}}
/* Preserve the focal areas of the two process images at every viewport. */
.process-grid img[src$="process-sorting.jpg"]{object-position:center -40px}
.process-grid img[src$="process-mobile.jpg"]{object-position:center calc(100% + 30px)}

/* Concentric border and glow geometry matches the card's CSS circular corners. */
.card-glow{inset:-3px}
/* Inset cards: outer radius equals inner radius plus padding. */
.process-grid figure{border-radius:48px}
@media(max-width:680px){.process-grid figure{border-radius:36px}}

/* Portrait corners and aligned footer attribution. */
.about .portrait-wrap img{border-radius:48px 48px 0 0}
.footer-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;column-gap:24px;row-gap:22px}
.footer-bottom>div{justify-self:end;justify-content:flex-end;align-items:baseline}
.footer-bottom>span{grid-column:1 / -1}
@media(max-width:680px){.about .portrait-wrap img{border-radius:32px 32px 0 0}.footer-bottom{column-gap:16px}.footer-bottom>div{gap:16px}.footer-name{font-size:24px}}
@media(max-width:400px){.footer-bottom{column-gap:10px}.footer-bottom>div{gap:10px;font-size:12px}.footer-name{font-size:20px}}

/* Copyright spans the footer below the name and social links. */
.footer-bottom>span{grid-column:1 / -1;grid-row:2;font-size:12px;font-family:var(--body);font-weight:400;line-height:1.5}

/* Homepage hero uses the same content edges as the rest of the page. */
.hero{padding-left:0;padding-right:0}
.hero>.section-shell{width:min(1180px,84%);margin:0 auto}
@media(max-width:680px){.hero>.section-shell{width:86%}}

/* Navigation contact button shares the footer LinkedIn hover motion. */
.header nav .contact-link{transition:background .25s,transform .25s,color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease}
@media(prefers-reduced-motion:reduce){.header nav .contact-link:hover{transform:none}}

/* Static homepage gradients: no filtered layers or continuous background repaint. */
.hero-gradient{background:radial-gradient(ellipse at 0% 10%,#ff5db8b0 0%,transparent 58%),radial-gradient(ellipse at 100% 5%,#57d7edb0 0%,transparent 60%),radial-gradient(ellipse at 95% 100%,#9380ffb0 0%,transparent 62%),radial-gradient(ellipse at 8% 95%,#f7a248b0 0%,transparent 60%),linear-gradient(125deg,#ffe5f3 0%,#e4edff 55%,#edddff 100%)}
body:has(.hero) .footer{background:radial-gradient(ellipse at 100% 15%,#d6c8ff66,transparent 55%),linear-gradient(125deg,#ffb897 0%,#ff98ce 45%,#ffb4ce 75%,#fbb59b 100%)}
.hero .typing-cursor{animation:none}

/* Keep copyright small and prevent native mobile text inflation. */
.footer-bottom>span{font-size:12px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.footer-bottom>span span{font-size:inherit}

/* Landscape mobile: give the introduction the same breathing room above and below. */
@media(min-width:681px) and (max-width:1000px) and (orientation:landscape){
 .hero{gap:48px}
 .hero .hero-content{transform:none!important}
}

/* Match the hero introduction to the footer heading typography. */
.hero-content .role-line{font-family:var(--display);font-size:clamp(50px,5.5vw,86px);font-weight:400;line-height:1.02;letter-spacing:normal;color:var(--ink)}
.hero-content .role-prefix{display:inline;font-style:normal}
.hero-content .role-slot{font-style:italic;color:#7f524e}
@media(max-width:680px){.hero-content .role-line{font-size:49px}}

/* Align the hero action to the left content edge at every breakpoint. */
.hero-bottom{display:grid;grid-template-columns:minmax(0,1fr);column-gap:24px;align-items:end}
.hero-bottom .pill-link{margin-left:0;justify-self:start;white-space:nowrap;gap:8px}
.hero-bottom .pill-link span{font-size:1.15em;line-height:1}

/* Keep the header in one row with room above the hero supporting line. */
.header{flex-wrap:nowrap;gap:12px;z-index:20}
.header nav{flex-wrap:nowrap;white-space:nowrap}
@media(max-width:1000px){.header nav{gap:24px;align-items:center}.header nav a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center}}
@media(max-width:680px){
 .header{padding:18px 4vw}
 .header .wordmark{font-size:32px;gap:6px}
 .header .panda-logo{width:28px;height:28px}
 .header nav{width:auto;gap:12px;font-size:12px}
 .header nav .contact-link{padding:9px 10px}
 .hero-bottom{column-gap:16px}
 .hero-bottom .pill-link{font-size:12px;padding:12px 14px}
}
@media(max-width:360px){
 .header .wordmark{font-size:30px}
 .header .panda-logo{width:24px;height:24px}
 .header nav{gap:6px;font-size:11px}
 .header nav .contact-link{padding:8px}
 .hero-bottom{column-gap:12px}
}
.pill-link{gap:8px}

/* Shared footer typography matches the social links at every breakpoint. */
.footer-bottom{--footer-text-size:12px}
.footer-bottom>div,.footer-bottom>div a,.footer-bottom>span,.footer-bottom>span span{font-family:var(--body);font-size:var(--footer-text-size);font-weight:400;line-height:1.5;letter-spacing:normal;color:var(--ink);-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(max-width:680px){.footer-bottom{--footer-text-size:13px}}
@media(max-width:400px){.footer-bottom{--footer-text-size:12px}}

/* Work disclosure: a warm, softly framed list of project destinations. */
.work-dropdown{position:relative}
.work-dropdown summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:12px 0;list-style:none;cursor:pointer;font:inherit;color:inherit;border-radius:6px}
.work-dropdown summary::-webkit-details-marker{display:none}
.work-dropdown summary:focus-visible{outline:3px solid #8453cc;outline-offset:5px}
.work-dropdown summary svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .2s,color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease}
.work-dropdown[open] summary svg{transform:rotate(180deg)}
.work-projects{position:absolute;top:calc(100% + 10px);left:-20px;min-width:270px;padding:10px;border:1px solid #70657926;border-radius:22px;background:#fcf8f3;box-shadow:0 12px 40px #46354820;z-index:30}
.header nav .work-projects a{display:flex;justify-content:flex-start;align-items:center;min-height:48px;padding:12px 16px;border-radius:13px;font-size:14px;white-space:normal;line-height:1.45;transition:background .18s,color .18s,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease}
.header nav .work-projects a:hover,.header nav .work-projects a:focus-visible{background:var(--case-tint,#e9e7e5);color:var(--ink);transform:none;outline-offset:-2px}
.header nav .work-projects a[aria-current="page"],.header nav .work-projects a[aria-current="page"]:hover,.header nav .work-projects a[aria-current="page"]:focus-visible{background:transparent;color:#8b858c;cursor:default}
@media(max-width:680px){.work-dropdown{position:static}.work-projects{top:calc(100% - 4px);left:4vw;right:4vw;min-width:0}.work-dropdown summary{min-width:44px;gap:4px}.header nav .work-projects a{min-height:48px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.work-dropdown summary svg,.header nav .work-projects a{transition:none}}

/* Keep navigation aligned between short password screens and scrolling pages. */
html{scrollbar-gutter:stable}
@supports not (scrollbar-gutter:stable){html{overflow-y:scroll}}

html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.work-dropdown summary::marker{content:""}
.work-dropdown summary svg{display:block;flex:0 0 12px;max-width:12px;max-height:12px}
.work-dropdown:not([open])>.work-projects{display:none}

/* Image-based branding reserves its full size before fonts or graphics arrive. */
.header .wordmark{width:92px;height:45px;gap:12px;flex:0 0 92px;line-height:1;overflow:visible}
.header .wordmark img{display:block;flex-shrink:0;object-fit:contain}
.header .panda-logo{width:42px;height:42px;min-width:42px;max-width:42px}
.header .ajf-logo{width:40px;height:45px;min-width:40px;max-width:40px}
@media(max-width:680px){
 .header .wordmark{width:61px;height:32px;flex-basis:61px;gap:6px}
 .header .panda-logo{width:28px;height:28px;min-width:28px;max-width:28px}
 .header .ajf-logo{width:28.42px;height:32px;min-width:28.42px;max-width:28.42px}
}
@media(max-width:360px){
 .header .wordmark{width:55px;height:30px;flex-basis:55px}
 .header .panda-logo{width:24px;height:24px;min-width:24px;max-width:24px}
 .header .ajf-logo{width:26.32px;height:30px;min-width:26.32px;max-width:26.32px}
}

/* Reserve navigation width while its text font loads, too. */
.header nav{width:296px;flex:0 0 296px;justify-content:space-between}
@media(max-width:1000px){.header nav{width:276px;flex-basis:276px}}
@media(max-width:680px){.header nav{width:210px;flex-basis:210px}}
@media(max-width:360px){.header nav{width:186px;flex-basis:186px}}

/* Home and case headers use the same body content width, including scrollbar space. */
body{position:relative}

/* Body text links: standalone rules match the All projects return link. */
main a:not(:where(.pill-link,.project-card,[role="button"],nav a,footer a,.serif-link,a:has(h1,h2,h3,h4,h5,h6),:is(h1,h2,h3,h4,h5,h6) a)){
 display:inline-block;
 border-bottom:1px solid #28242b55;
 padding-bottom:6px;
 text-decoration:none;
}
/* Inline underlines follow wrapped text without changing its typography. */
main :is(p,figcaption,li,td,th,dd) a:not(:where(.pill-link,.project-card,[role="button"],nav a,footer a,.serif-link,a:has(h1,h2,h3,h4,h5,h6),:is(h1,h2,h3,h4,h5,h6) a)){
 display:inline;
 border-bottom:0;
 padding-bottom:0;
 font:inherit;
 color:inherit;
 text-decoration:underline;
 text-decoration-thickness:1px;
 text-underline-offset:3px;
 text-decoration-skip-ink:auto;
}

/* Serif display links remain unadorned; next-project links keep their own row. */
.serif-link,.serif-link *,a:has(h1,h2,h3,h4,h5,h6),a:has(h1,h2,h3,h4,h5,h6) :is(h1,h2,h3,h4,h5,h6,em),:is(h1,h2,h3,h4,h5,h6) a{border-bottom:0;text-decoration:none;padding-bottom:0}
.next-project>a:not(.text-link){display:block}
/* Footers are excluded even when nested inside the homepage main element. */
footer a,footer a *{text-decoration:none}
footer a:not(.pill-link){border-bottom:0}

/* Shared lightbox chrome: close circle takes its color from the current page. */
#image-dialog{padding:12px;max-height:90svh;overflow-y:auto}
#image-dialog .dialog-close{position:sticky;top:0;right:auto;display:flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;flex:none;margin:0 0 8px auto;padding:0;border:0;border-radius:50%;background:transparent;color:#000;cursor:pointer;z-index:2}
#image-dialog .dialog-close span{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:50%;background:var(--case-tint,var(--paper));color:#000;font-family:Arial,sans-serif;font-size:24px;line-height:1}
#image-dialog .dialog-close:focus-visible{outline:2px solid #000;outline-offset:2px}
#image-dialog.mobile-lightbox{width:calc(var(--mobile-screen-width,320px) + 24px);max-width:calc(100vw - 32px)}
#image-dialog.mobile-lightbox .dialog-image-viewport,#image-dialog.mobile-lightbox .document-pages{width:100%;max-width:100%;margin:0}
@media(max-width:1100px){#image-dialog .dialog-close{width:48px;height:48px;min-width:48px}}

/* Rounded modal clipping keeps scrollbar paint inside the lightbox. */
#image-dialog{isolation:isolate;clip-path:inset(0 round 24px)}
/* Apple-style transient indicators, scoped to every lightbox scroll region. */
#image-dialog,#image-dialog *{scrollbar-width:thin;scrollbar-color:transparent transparent}
#image-dialog.is-scrolling,#image-dialog .is-scrolling{scrollbar-color:rgba(0,0,0,.45) transparent}
#image-dialog::-webkit-scrollbar,#image-dialog *::-webkit-scrollbar{width:8px;height:8px;background:transparent}
#image-dialog::-webkit-scrollbar-track,#image-dialog *::-webkit-scrollbar-track,#image-dialog::-webkit-scrollbar-corner,#image-dialog *::-webkit-scrollbar-corner{background:transparent}
#image-dialog::-webkit-scrollbar-thumb,#image-dialog *::-webkit-scrollbar-thumb{background:transparent;border:2px solid transparent;background-clip:padding-box;border-radius:100px}
#image-dialog.is-scrolling::-webkit-scrollbar-thumb,#image-dialog .is-scrolling::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.45)}

/* Homepage lightboxes fit the image instead of keeping a wide empty frame. */
body:has(.hero) #image-dialog{width:calc(var(--home-image-width,600px) + 24px);max-width:90vw}
body:has(.hero) #image-dialog #dialog-image{width:100%;height:auto;max-height:none;object-fit:contain}
body:has(.hero) #image-dialog .dialog-close span{background:#e9e7e5}
body:has(.hero) #image-dialog .dialog-close:focus-visible{outline:none}
body:has(.hero) #image-dialog .dialog-close:hover span,body:has(.hero) #image-dialog .dialog-close:focus-visible span{background:#d2cfcc}

/* Every text underline has an explicit single-pixel thickness. */
a,button,.project-action{text-decoration-thickness:1px!important}

/* Captions become compact lightbox headers, clamped to two lines. */
#image-dialog .lightbox-header{position:sticky;top:0;z-index:3;display:flex;align-items:center;gap:12px;min-height:48px;margin-bottom:8px;background:var(--paper)}
#image-dialog .lightbox-title{flex:1;min-width:0;margin:0;padding:0 0 0 8px;font-family:var(--body);font-size:18px;font-weight:600;line-height:1.3;letter-spacing:normal;text-align:left;color:#000;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
#image-dialog .lightbox-header .dialog-close{position:static;margin:0;flex-shrink:0}

/* Shared iPad-style tooltip: top-layer bubble and centered downward tip. */
.site-tooltip{position:absolute;inset:auto;margin:0;border:0;padding:8px 14px;max-width:min(360px,calc(100vw - 16px));border-radius:14px;background:#fff;color:#000;font-family:var(--body);font-size:14px;font-weight:400;line-height:1.4;text-align:center;box-shadow:0 4px 12px #46354810;overflow:visible;pointer-events:none;z-index:2147483647}
.site-tooltip::after{content:"";position:absolute;top:100%;left:var(--tooltip-arrow-left,50%);transform:translateX(-50%);width:16px;height:8px;background:inherit;clip-path:polygon(0 0,100% 0,50% 100%)}

/* Homepage interactions use the existing typed hero accent. */
.home-page{--home-accent:#7f524e}
.home-page a:hover,.home-page a:focus-visible,.home-page .work-dropdown>summary:hover,.home-page .work-dropdown>summary:focus-visible{color:var(--home-accent)!important}

/* Project cards carry their detail-page accent colors. */
.home-page .project-card.thermo{--project-accent:#6b506d}
.home-page .project-card.qualcomm{--project-accent:#336271}
.home-page .project-card.king{--project-accent:#75523e}
.home-page .project-card h3 em{color:var(--project-accent)}
.home-page .project-card:hover,.home-page .project-card:focus-visible{color:var(--ink)!important}
.home-page .project-card:hover .project-action,.home-page .project-card:focus-visible .project-action{color:var(--project-accent)}

/* Keep card title, italic subtitle, and description visually grouped. */
.home-page .project-copy h3 em{margin-top:4px}
.home-page :is(.pill-link,.contact-link):hover,.home-page :is(.pill-link,.contact-link):focus-visible{border-color:var(--home-accent)}
.case-page :is(.pill-link,.contact-link):hover,.case-page :is(.pill-link,.contact-link):focus-visible{border-color:var(--case-accent)}

/* Keep the King Estate building’s right-hand peak visible in smaller card crops. */
@media(max-width:1100px){.home-page .project-card.king .project-visual img{object-position:right center}}

/* Footer wraps naturally before social links and copyright collide. */
.footer-bottom{display:flex;justify-content:space-between;align-items:baseline;flex-direction:row;flex-wrap:wrap;column-gap:32px;row-gap:22px;--footer-text-size:12px}
.footer-bottom>div{flex:1 1 auto;justify-content:flex-start;flex-wrap:wrap;gap:20px;white-space:nowrap}
.footer-bottom>span{flex:0 0 auto;max-width:100%;min-width:0;text-align:left;white-space:normal}
@media(max-width:800px){
 .footer-bottom{--footer-text-size:13px}
}

/* Full-width process images with the same captions as case-study figures. */
.process-grid figure{background:transparent;border-radius:0;padding:0;overflow:visible}
.process-grid .process-image{width:100%;height:auto;aspect-ratio:678 / 642;padding:0;background:transparent;border-radius:18px;overflow:hidden}
.process-grid .process-image img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:18px}
.process-grid figcaption{display:block;font-size:13px;color:#5f5963;padding:15px 2px 0;line-height:1.5}

/* Optically balance the footer row against its top padding. */
.footer-content{padding-bottom:24px}
.case-footer{padding-bottom:24px}

/* Four process images share one row on desktop. */
@media(min-width:1101px){.process-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}}

/* Separate the white affinity-map image from the page background. */
.process-grid .process-image img:is([src$="process-affinity.jpg"],[src$="process-sorting.jpg"]){border:1px solid #d9d6da}

/* Opaque lightbox header covers the top padding while images scroll. */
#image-dialog{background:#fff}
#image-dialog .lightbox-header{top:-12px;margin:-12px -12px 8px;padding:12px 12px 8px;background:#fff}

/* Fill the full portrait arch with the retouched photograph. */
.about .portrait-wrap{padding:0;background:none;overflow:hidden}
.about .portrait-wrap img{inset:0;width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center calc(35% + 16px);border-radius:0}

/* About anchor lands inside its top spacing, past the process captions. */
#about{scroll-margin-top:-48px}
@media(max-width:680px){#about{scroll-margin-top:0}}

/* Work anchor retains a gradient strip without exposing the hero button. */
#work{scroll-margin-top:-12px}

/* Small-screen anchors exclude the preceding section from the landing view. */
@media(max-width:1100px){html{scroll-padding-top:0}#about{scroll-margin-top:0}#work{scroll-margin-top:20px}}

/* Optical centering between the navigation and hero action at every width. */
.hero .hero-content{translate:0 calc(-1 * clamp(12px,2dvh,24px))}

/* Match the King Estate desktop tagline to the other card titles. */
.king .king-tagline-ending{display:block}

.hero-content .role-period{color:var(--ink);font-style:normal}

.hero-content #hero-heading{font-weight:400;color:var(--ink)}

/* Keep heading punctuation black while preserving colored words and logo artwork. */
h1 .heading-period,h2 .heading-period,h3 .heading-period,h4 .heading-period,h5 .heading-period,h6 .heading-period,.hero-content .role-period{color:#000;font-style:normal}

/* Wordmark letters follow each page accent; punctuation stays black. */
.header .ajf-logo{display:block;flex-shrink:0;color:var(--case-accent,var(--home-accent,#6b506d))}
.header .wordmark:hover .ajf-logo,.header .wordmark:focus-visible .ajf-logo{color:#000}

/* Fade interaction colors in both directions without changing existing motion. */
@media(prefers-reduced-motion:no-preference){
 :where(a,button,summary,a *,button *,summary *){transition:color 180ms ease,background-color 180ms ease,border-color 180ms ease,fill 180ms ease,stroke 180ms ease}
}

/* Separate the portfolio overview from individual case studies. */
.work-projects .work-group-label{padding:18px 16px 5px;font-family:var(--body);font-size:11px;font-weight:500;line-height:1.45;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}

.work-projects .work-menu-divider{height:0;margin:8px 16px 0;border:0;border-top:1px solid #70657926}
.work-projects .work-menu-divider+.work-group-label{padding-top:19px}
