:root{--forest:#253426;--olive:#46523b;--sage:#dce4d0;--cream:#f6f2e9;--clay:#a77569;--ink:#222720;--body-text:#525a50;--serif:'Newsreader',Georgia,serif;--sans:'Figtree',Arial,sans-serif;--gutter:7vw}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--cream);color:var(--ink);font-family:var(--sans);font-weight:400;font-size:clamp(16px,1.12vw,21px);line-height:1.6}a{color:inherit;text-underline-offset:4px}button{font:inherit}img{display:block;max-width:100%;height:auto}h1,h2,h3,p{margin:0}h1,h2,h3,h4,h5,h6{font-family:var(--serif);font-weight:400;letter-spacing:0px;line-height:1.12}h1{font-size:clamp(44px,4.1vw,78px);font-weight:400;letter-spacing:0px}h2{font-size:clamp(38px,3.5vw,64px);letter-spacing:0px}h3{font-size:clamp(25px,1.7vw,34px)}p+p{margin-top:1em}em{font-weight:400}a,button,summary{-webkit-tap-highlight-color:transparent}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid currentColor;outline-offset:6px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:10px;left:16px;transform:translateY(-150%);background:var(--cream);color:var(--forest);padding:12px;z-index:100}.skip-link:focus{transform:none}.site-header{position:fixed;left:0;right:0;top:0;z-index:20;padding:clamp(24px,3.5vw,64px) 6vw 22px;transition:color .2s,background .2s;color:var(--ink)}.site-header nav{display:flex;gap:clamp(20px,2vw,40px)}.eyebrow,.button,.text-link{font-family:var(--sans);font-size:clamp(12px,1vw,17px);font-weight:600;letter-spacing:.18em;text-transform:uppercase}.site-header a{text-decoration-thickness:1px}.site-header[data-theme=dark]{color:var(--cream)}.eyebrow{font-size:calc(clamp(12px,1vw,17px) - 2px);font-weight:500;letter-spacing:.22em;line-height:1.5;margin-bottom:22px}.button{display:inline-flex;gap:15px;align-items:center;justify-content:center;background:var(--sage);color:var(--forest);border:1px solid transparent;border-radius:100px;text-decoration:none;padding:16px 28px;line-height:1.2;transition:background .2s,color .2s,border-color .2s}.button:hover{background:var(--forest);color:var(--cream);border-color:var(--sage)}.button .button-label{font-size:inherit;font-weight:inherit;letter-spacing:inherit}.section-pad{padding:130px var(--gutter)}.hero{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:max(740px,62.5vw)}.hero-green{background:var(--forest);grid-column:1;grid-row:1}.hero-photo{grid-column:2;grid-row:1;overflow:hidden}.hero-photo img{width:100%;height:100%;object-fit:cover;object-position:center}.hero-title{position:absolute;z-index:1;left:var(--gutter);top:23%;color:var(--cream)}.hero h1{font-size:calc(clamp(64px,5.55vw,112px) + 5px);line-height:1.04;letter-spacing:0px}.hero-subtitle{font-family:var(--serif);font-style:italic;color:var(--sage);font-size:clamp(23px,1.9vw,37px);line-height:1.35;margin:40px 0 45px;max-width:30vw}.hero-about{grid-column:3;grid-row:1;padding:0 3.9vw;align-self:start;margin-top:28vw;color:var(--olive);font-size:clamp(16px,1.13vw,22px);line-height:1.65}.hero-about p+p{margin-top:1.7em}.skills{background:var(--forest);color:var(--cream);min-height:62.5vw;display:grid;grid-template-columns:1fr 1.18fr;gap:8vw;align-content:center;padding-top:150px;padding-bottom:150px}.skills h2{font-size:clamp(38px,3.4vw,68px);line-height:1.08}.skills .button{margin-top:48px}.skill-list{padding-top:36px;min-width:0}.skill-list details{padding:12px 0;color:#bdc4b6}.skill-list details[open]{color:var(--cream);padding-bottom:28px;margin-bottom:10px;border-bottom:1px solid #b2bba8}.skill-list summary{font-family:var(--serif);font-size:clamp(25px,1.9vw,38px);line-height:1.25;list-style:none;display:flex;gap:24px;align-items:baseline;justify-content:space-between;cursor:pointer}.skill-list summary::-webkit-details-marker{display:none}.skill-list summary:hover{color:var(--cream)}.toggle:after{content:'+';font-family:var(--sans);font-size:28px}.skill-list details[open] .toggle:after{content:'−'}.skill-copy{padding-top:22px;font-size:clamp(15px,1.13vw,22px)}.skill-copy p+p{margin-top:3px}.work{padding-top:130px;padding-bottom:140px}.work h2{color:var(--forest);margin-bottom:42px}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:4.2vw;row-gap:48px}.project-card{display:block;text-decoration:none}.card-image{aspect-ratio:1.75;overflow:hidden;background:transparent;margin-bottom:20px}.card-image img{width:100%;height:100%;object-fit:cover;object-position:top;transition:transform .35s}.project-card:hover .card-image img{transform:scale(1.035)}.project-card h3{display:flex;justify-content:flex-start;align-items:baseline;gap:10px;margin-bottom:6px;font-size:clamp(25px,1.7vw,34px)}.project-card h3 span{flex-shrink:0;font-family:var(--sans);font-size:.7em;opacity:0;transition:opacity .2s}.project-card:hover h3 span,.project-card:focus-visible h3 span{opacity:1}.project-card p{font-size:clamp(15px,1.13vw,21px);line-height:1.5}.logo-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--sage);color:var(--forest);gap:6px}.logo-placeholder>span{font:italic 30px var(--serif)}.logo-placeholder small{font-size:13px;letter-spacing:.04em}.contact{min-height:62.5vw;background:var(--clay);color:var(--cream);display:flex;align-items:flex-start;flex-direction:column;justify-content:center;padding-top:clamp(40px,8svh,100px);padding-bottom:clamp(40px,8svh,100px)}.contact h2{font-size:clamp(80px,9.5vw,190px);font-weight:400;letter-spacing:0px;margin:16px 0 38px}.contact-subtitle{font-family:var(--serif);font-size:clamp(28px,2.7vw,54px);font-style:italic;line-height:1.25}.social{display:flex;flex-wrap:wrap;gap:15px;align-items:baseline}.contact .social{margin-top:clamp(24px,6svh,64px);font-size:clamp(18px,1.5vw,26px)}.social a:hover{text-decoration-thickness:2px}.resume-placeholder small{display:inline-block;font-size:.58em;text-transform:uppercase;letter-spacing:.08em;margin-left:6px;vertical-align:middle}.copyright{align-self:flex-end;font-size:15px;margin-top:clamp(28px,6svh,56px)}.case-study{max-width:1680px;margin:auto;padding:150px var(--gutter) 0}.case-heading{margin-bottom:44px}.case-heading h1{color:var(--forest)}.case-heading .eyebrow{margin-bottom:16px}.case-section{margin:0 0 48px;scroll-margin-top:100px}.case-section h2{font-size:clamp(28px,2vw,39px);letter-spacing:0px;margin-bottom:18px;font-weight:400}.case-section h3{margin:26px 0 14px}.case-section p,.case-intro p{margin-bottom:16px;line-height:1.65}.case-section .eyebrow{font-size:10px;margin-bottom:12px}.case-intro{margin-bottom:42px}.artwork{display:block;margin-top:24px;text-decoration:none;cursor:zoom-in}.artwork img{width:100%;height:auto}.artwork+.artwork{margin-top:0}.case-section .output-label{margin-top:38px;margin-bottom:15px;font-size:13px}.case-section .output-label+.artwork{margin-top:0}.text-link{display:inline-block;margin:12px 0 16px;text-decoration:underline;text-underline-offset:5px;letter-spacing:.15em;font-size:13px}.text-link:hover{color:var(--olive)}.art-label{font-family:var(--sans);font-size:16px!important;font-weight:500;text-transform:none}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:4vw;margin:26px 0 32px;align-items:start}.comparison figure{margin:0;min-width:0}.comparison .artwork{margin-top:10px}.comparison figcaption{color:var(--olive)}.video-placeholder{aspect-ratio:2.25;background:#dededb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--olive);margin:0 0 38px}.video-placeholder small,.logo-slot small{font-size:14px}.play-symbol{font-size:48px;line-height:1}.unavailable{color:var(--olive);text-decoration:none;letter-spacing:.1em}.logo-slot{min-height:330px;background:var(--sage);display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:30px;text-align:center}.logo-slot>span{font-family:var(--serif);font-size:clamp(32px,4vw,60px)}.project-pagination{border-top:1px solid #c9cdbf;display:flex;justify-content:space-between;gap:30px;padding:35px 0 55px;font-size:15px}.project-footer{padding:55px var(--gutter);background:var(--forest);color:var(--cream);display:flex;justify-content:space-between;gap:30px;font-size:14px}.project-footer p{margin:0}.image-dialog{width:94vw;max-width:1800px;height:92vh;max-height:92vh;padding:0;border:0;background:var(--cream);color:var(--ink)}.image-dialog::backdrop{background:#111b13de}.viewer-bar{height:64px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 24px;background:var(--cream);font-size:14px}.close-viewer{border:1px solid var(--forest);border-radius:30px;background:var(--forest);color:var(--cream);cursor:pointer;padding:6px 18px}.viewer-scroll{height:calc(100% - 64px);overflow:auto;padding:20px;background:transparent}.viewer-scroll img{margin:auto;max-width:100%;width:auto;height:auto}body.viewer-open{overflow:hidden}
@media(min-width:2000px){.hero-about{margin-top:28vw}.case-study{padding-left:100px;padding-right:100px}}
@media(max-width:1100px){.hero-about{padding:0 28px;font-size:15px;margin-top:29vw}.hero{min-height:780px}.hero h1{font-size:calc(6vw + 5px)}.hero-subtitle{font-size:24px;max-width:29vw}.skills{gap:5vw;padding-top:110px;padding-bottom:110px}.skill-list{padding-top:30px}.project-grid{column-gap:28px}.section-pad{padding-left:6vw;padding-right:6vw}.site-header{padding-right:5vw}.case-study{padding-top:130px}.contact{min-height:760px}}
@media(max-width:800px){:root{--gutter:6vw}.site-header,.site-header.scrolled{left:0;right:0;padding:20px 6vw;}.site-header nav{justify-content:space-between;gap:15px}.site-header a{letter-spacing:.16em}.hero{padding-top:68px;grid-template-columns:1fr 1fr;min-height:0}.hero-green,.hero-photo{grid-row:1;height:670px}.hero-title{top:190px;left:6vw}.hero h1{font-size:calc(clamp(48px,8vw,70px) + 5px)}.hero-subtitle{max-width:42vw;font-size:clamp(22px,3vw,28px);margin-top:32px;margin-bottom:35px}.hero-subtitle br{display:none}.hero-photo img{object-position:center}.hero-about{grid-column:1/-1;grid-row:2;margin:0;padding:55px 6vw;font-size:18px;max-width:780px}.hero-about p+p{margin-top:20px}.skills{grid-template-columns:1fr;gap:40px;padding-top:85px;padding-bottom:85px}.skills h2{font-size:46px}.skills h2 br{display:none}.skills .button{margin-top:30px}.skill-list{padding-top:0}.skill-list summary{font-size:29px}.skill-copy{font-size:17px}.work{padding-top:85px;padding-bottom:85px}.work h2{font-size:46px}.project-grid{grid-template-columns:1fr 1fr;gap:38px 24px}.project-card h3{font-size:26px}.project-card h3 span{opacity:1}.contact{min-height:670px;padding-top:clamp(40px,8svh,100px);padding-bottom:clamp(40px,8svh,100px)}.contact h2{font-size:95px;margin-bottom:28px}.contact-subtitle{font-size:32px}.contact .social{margin-top:clamp(24px,6svh,48px);font-size:18px}.case-study{padding-top:115px}.case-heading h1{font-size:46px}.case-section h2{font-size:30px}.project-footer{flex-direction:column;padding-top:35px;padding-bottom:35px}.project-footer p{align-self:flex-end}.comparison{gap:22px}.viewer-bar>span{display:none}.image-dialog{width:98vw;height:94vh;max-height:94vh}.viewer-bar{padding:10px 14px}.viewer-scroll{padding:8px}}
@media(max-width:480px){.hero-green,.hero-photo{height:580px}.hero-title{top:170px}.hero h1{font-size:calc(11vw + 5px)}.hero-subtitle{font-size:23px;max-width:43vw;margin-top:27px}.hero .button{padding:13px 18px;font-size:11px;gap:10px}.hero-photo img{object-position:57% center}.hero-about{font-size:17px;padding-top:38px;padding-bottom:45px}.skills h2,.work h2{font-size:39px}.skill-list summary{font-size:26px}.project-grid{grid-template-columns:1fr;gap:36px}.project-card h3{font-size:28px}.project-card p{font-size:16px}.contact h2{font-size:76px}.contact-subtitle{font-size:29px}.contact{min-height:640px}.social{gap:10px}.contact .social{font-size:17px}.resume-placeholder small{display:block;font-size:10px;margin-left:0}.copyright{align-self:flex-start}.comparison{grid-template-columns:1fr;gap:22px}.case-heading h1{font-size:40px}.case-study{padding-top:110px}.case-section{margin-bottom:38px}.project-pagination{font-size:14px;align-items:flex-start}.project-pagination a:last-child{text-align:right;max-width:55%}.video-placeholder{aspect-ratio:1.6}.logo-slot{min-height:250px}.project-footer .social{font-size:14px}.project-footer p{align-self:flex-start}.viewer-bar{font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
.case-section ul{padding-left:22px;margin:8px 0 24px}.case-section li{padding-left:2px;margin:5px 0}

/* Regular body type and project headings, as specified in the portfolio feedback. */
.home main p:not(.eyebrow), .home .social {font-family:var(--sans);font-weight:400;font-style:normal}
.project-page h2, .project-page h3 {font-family:var(--serif);font-weight:400}
.project-page h3.output-label {font-size:clamp(25px,1.7vw,34px);letter-spacing:0px;text-transform:none}
/* The fixed top bar stays visible while scrolling on desktop and mobile. */
.site-header {position:fixed;top:0;isolation:isolate}
.site-header nav {justify-content:flex-end}
.site-header[data-theme=dark] {color:var(--cream)}
.site-header[data-section=contact] {color:var(--cream)}
.design-disclosure {margin:22px 0 38px}
.design-disclosure>summary {list-style:none;cursor:pointer;width:fit-content;user-select:none}
.design-disclosure>summary::-webkit-details-marker {display:none}
.disclosure-icon::after {content:'+';font-size:22px;font-weight:400;line-height:1}
.design-disclosure[open] .disclosure-icon::after {content:'−'}
.design-content {padding-top:8px}
.design-content>.unavailable {margin-top:24px}
.artwork,.artwork img,.card-image img {background:transparent}
@media(max-width:800px){.site-header nav{justify-content:space-between}}
/* Homepage typography: display text retains Newsreader; paragraphs use Figtree. */
.home .hero h1 {font-family:var(--serif);font-weight:400;font-style:normal}
.home .hero h1 em {font-weight:400;font-style:italic}
.home main p.hero-subtitle,.home main p.contact-subtitle {font-family:var(--serif);font-weight:400;font-style:italic}
.home main p.hero-subtitle {width:calc(33.333vw - var(--gutter) - 2vw);max-width:none;font-size:clamp(22px,1.7vw,34px);line-height:1.35}
.home main>section h2 {font-family:var(--serif);font-weight:400;font-style:italic}
.home .skill-list summary {font-family:var(--serif);font-weight:400;font-style:normal;letter-spacing:0px}
.hero-about strong {font-weight:700;color:var(--forest)}
[data-project="swym-branding"] h2,[data-project="swym-branding"] h3 {font-family:var(--serif);font-size:28px;font-weight:400;font-style:normal}
/* Native, gentle snapping only on the four-fold homepage. Long sections stay scrollable. */
html.home-document {scroll-snap-type:y proximity;scroll-padding-top:0}
.home main>section {scroll-snap-align:start;scroll-snap-stop:normal;min-height:100svh}
.home .hero {min-height:max(740px,62.5vw,100svh)}
/* Live HTML/CSS mockups display the original transparent artwork, never flattened exports. */
.card-image {container-type:inline-size}
.device-scene,.collateral-scene,.brand-scene {position:relative;width:100%;height:100%;overflow:hidden}
.device-scene {background:radial-gradient(ellipse at 50% 40%,#e3e9fb,#c3cce4);display:flex;align-items:center;justify-content:center;padding-top:5%}
.mockup-label {position:absolute;top:7%;left:7%;font-size:2.6cqw;letter-spacing:.16em;text-transform:uppercase;font-weight:500;z-index:2}
.device {position:relative;flex:none;filter:drop-shadow(0 3cqw 2cqw #0002);transition:transform .35s}
.project-card:hover .device {transform:translateY(-1cqw)}
.device-display {position:relative;background:linear-gradient(135deg,#60636b,#16171a 20%,#090a0d 75%,#484b50);padding:2.3%;border-radius:1.4cqw 1.4cqw .5cqw .5cqw;border:1px solid #64666d}
.device-screen {position:relative;width:100%;aspect-ratio:1.6;overflow:hidden;background:var(--cream)}
.card-image .device-screen img {display:block;width:100%;height:auto;max-width:none;object-fit:initial;transform:none}
.macbook {width:71%;margin-bottom:0}
.macbook .device-display::after {content:'';position:absolute;top:2%;left:45%;width:10%;height:4%;background:#111216;border-radius:0 0 .6cqw .6cqw}
.macbook .device-chin {position:absolute;bottom:-1.2cqw;left:-12%;width:124%;height:1.8cqw;background:linear-gradient(#c6c9cf,#858992 65%,#d9dce1);border-radius:.3cqw .3cqw 5cqw 5cqw}
.macbook .device-chin::after {content:'';position:absolute;left:42%;width:16%;height:.6cqw;background:#717680;border-radius:0 0 1cqw 1cqw}
.macbook .device-stand,.macbook .device-foot {display:none}
.scene-swym-branding {background:radial-gradient(ellipse at 50% 40%,#d8edbd,#9fbb85);color:#203614}
.scene-fincent-webpages {background:radial-gradient(ellipse at 50% 40%,#ded7fa,#b4a5dc);color:#242036}
.imac {width:67%;margin-top:0;margin-bottom:6%}
.imac .device-display {padding:2.2%;border-color:#eee;border-radius:1.2cqw 1.2cqw 0 0;background:#f4f4f2}
.imac .device-screen {aspect-ratio:1.95}
.imac .device-chin {height:4.2cqw;background:linear-gradient(100deg,#b6b9bb,#e4e6e6 55%,#c3c7c8);border-radius:0 0 .8cqw .8cqw;border-top:1px solid #bbb}
.imac .device-stand {position:absolute;top:100%;left:40%;width:20%;height:5.8cqw;background:linear-gradient(90deg,#b1b5b9,#e0e3e5,#b4b8bc);clip-path:polygon(20% 0,80% 0,100% 100%,0 100%)}
.imac .device-foot {position:absolute;top:calc(100% + 5.2cqw);left:32%;width:36%;height:.9cqw;border-radius:50% 50% .4cqw .4cqw;background:linear-gradient(#e7e8e9,#9da1a8)}
.collateral-scene {background:linear-gradient(125deg,#102850,#0d52f5);color:#fff}
.thumb-caption {position:absolute;left:7%;top:11%;width:49%;z-index:2}
.thumb-caption small {display:block;font:500 2.5cqw var(--sans);letter-spacing:.14em;text-transform:uppercase;margin-bottom:3cqw}
.thumb-caption>span {font:400 6.7cqw/1.04 var(--serif);letter-spacing:0px}
.collateral-sheet {position:absolute;right:8%;top:13%;height:74%;aspect-ratio:.7;overflow:hidden;transform:rotate(9deg);box-shadow:0 2cqw 4cqw #0004}
.card-image .collateral-sheet img {height:100%;width:auto;max-width:none;object-fit:initial;transform:none}
.collateral-deck {position:absolute;left:8%;bottom:13%;width:48%;height:30%;overflow:hidden;transform:rotate(-7deg);box-shadow:0 2cqw 4cqw #0004}
.card-image .collateral-deck img {height:205%;width:auto;max-width:none;object-fit:initial;transform:none}
.format-tags {position:absolute;left:7%;bottom:5%;font-size:2.2cqw;letter-spacing:.06em}
.brand-scene {background:#c9bafa;color:#272536}
.brand-logo-board {position:absolute;left:7%;top:18%;width:49%;height:67%;overflow:hidden;transform:rotate(-5deg);background:#f8f8f6;box-shadow:0 2cqw 3cqw #3c28451a}
.card-image .brand-logo-board img {height:100%;width:100%;object-fit:contain;transform:none}
.brand-illustration {position:absolute;right:5%;top:28%;width:37%;height:44%;overflow:hidden;transform:rotate(7deg);background:#fff8e8;box-shadow:0 2cqw 3cqw #3c28451a}
.card-image .brand-illustration img {width:auto;height:100%;max-width:none;object-fit:initial;transform:none}
.brand-swatches {position:absolute;left:18%;bottom:7%;width:70%;height:12%;display:flex;transform:rotate(-3deg);box-shadow:0 1cqw 2cqw #3c284522}
.brand-swatches i {flex:1;background:#17171e}.brand-swatches i:nth-child(2){background:#a896fa}.brand-swatches i:nth-child(3){background:#62a65a}.brand-swatches i:nth-child(4){background:#ffb800}.brand-swatches i:nth-child(5){background:#f06543}
@media(max-width:800px){
 .home main p.hero-subtitle {width:40vw;font-size:clamp(20px,3vw,26px)}
 .home .hero {min-height:100svh}
}
@media(prefers-reduced-motion:reduce){html.home-document{scroll-snap-type:none}.device{transition:none}}

/* Centre the description in the desktop hero's right-hand column. */
@media(min-width:801px){.hero-about{align-self:center;margin-top:0}}
.home main>.skills h2 {font-family:var(--serif);font-weight:400;font-style:normal}
.home main>.skills h2 em {font-family:var(--serif);font-weight:400;font-style:italic}
.home main>.contact h2 {font-style:normal;font-weight:400}
.home main>.work h2 {font-family:var(--serif);font-weight:400;font-style:normal;letter-spacing:0px}
.skill-list details,.skill-list summary {transition:color .35s ease}
.skill-list.is-animated details,.skill-list.is-animated details[open] {padding:12px 0;margin-bottom:0;border:0}
.skill-list.is-animated details[data-expanded="false"] {color:#bdc4b6}
.skill-list.is-animated details[data-expanded="true"] {color:var(--cream)}
.skill-list:not(.is-animated) details[open] {padding-bottom:44px}
.skill-list.is-animated .skill-copy {padding-bottom:54px;border-bottom:1px solid #b2bba8}
.skill-list.is-animated details[data-expanded="false"] .toggle:after {content:'+'}
/* Buttons share a row; expanded designs span the entire content width. */
.design-actions {display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:22px 0 38px}
.design-actions>.design-disclosure {display:contents}
.design-actions>.design-disclosure::details-content {display:contents}
.design-actions .design-content {order:1;flex-basis:100%;min-width:0}
.design-actions>.design-disclosure:not([open])>.design-content {display:none}
.design-actions .button {font-size:12px;padding:16px 24px}
.design-actions .sr-only {font-size:inherit}

/* Updated Typography Guide: gold primary pills and underlined secondary links. */
:root {--button-gold:#e9b442}
.button {
 background:var(--button-gold);color:var(--ink);border:2px solid var(--button-gold);
 font-family:var(--sans);font-weight:700;letter-spacing:.18em;
 transition:background-color .25s ease,color .25s ease,border-color .25s ease;
}
.button:hover,.button:focus-visible {background:transparent;color:var(--ink);border-color:var(--button-gold)}
.hero .button:hover,.hero .button:focus-visible,.skills .button:hover,.skills .button:focus-visible {color:var(--cream)}
.button.button-secondary,.button.button-secondary:hover,.button.button-secondary:focus-visible {
 background:transparent;border-color:transparent;border-radius:0;color:var(--ink);
 text-decoration:none;
}
.button-secondary .button-label,.text-link .button-label {text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.text-link {display:inline-flex;align-items:center;gap:15px;font-weight:700;letter-spacing:.18em;text-decoration:none}
.text-link:hover,.text-link:focus-visible {color:var(--ink)}
/* One minimal arrow for primary, secondary and disclosure controls. */
.button-arrow,.disclosure-icon {
 position:relative;display:inline-block;flex:none;width:14px;height:14px;
 text-decoration:none;transition:transform .25s ease;
}
.button-arrow::before,.disclosure-icon::before {
 content:'';position:absolute;left:0;right:1px;top:50%;height:1.5px;
 background:currentColor;transform:translateY(-50%);
}
.button-arrow::after,.disclosure-icon::after {
 content:'';position:absolute;right:1px;top:50%;width:7px;height:7px;
 border-top:1.5px solid currentColor;border-right:1.5px solid currentColor;
 transform:translateY(-50%) rotate(45deg);
}
.button:hover .button-arrow,.button:focus-visible .button-arrow,
.text-link:hover .button-arrow,.text-link:focus-visible .button-arrow,
.design-disclosure:not([open])>summary:hover .disclosure-icon,
.design-disclosure:not([open])>summary:focus-visible .disclosure-icon {transform:rotate(-45deg)}
/* The shared shaft becomes a minus when a disclosure is expanded. */
.design-disclosure[open]>summary .disclosure-icon::after {content:none}
@media(prefers-reduced-motion:reduce) {
 .button,.button-arrow,.disclosure-icon {transition:none}
}

/* Muted Charcoal for body copy and descriptions across every page. */
p:not(.eyebrow):not(.output-label),
.case-section li,
.case-intro li,
.comparison figcaption,
.hero-about,
.hero-about strong,
.skill-copy,
.video-placeholder,
.logo-placeholder small,
.logo-slot small,
.unavailable {
 color:var(--body-text);
}

/* Homepage subtitle and copyright colours on coloured backgrounds. */
.home .hero p.hero-subtitle {color:var(--sage)}
.home .contact p.contact-subtitle,
.home .contact p.copyright {color:var(--cream)}

/* Hero supporting text uses Newsreader Regular Italic. */
.home main p.hero-subtitle {font-family:var(--serif);font-weight:400;font-style:italic}

/* Cream descriptions inside the Skills disclosures. */
.home .skills .skill-copy,
.home .skills .skill-copy p {color:var(--cream)}

/* Smaller navigation and descriptive copy throughout the shared site. */
body {font-size:calc(clamp(16px,1.12vw,21px) - 2px)}

.case-section p:not(.eyebrow):not(.output-label),.case-intro p,
.case-section li,.case-intro li,.comparison figcaption {
 font-size:calc(clamp(16px,1.12vw,21px) - 2px);
}
.hero-about {font-size:calc(clamp(16px,1.13vw,22px) - 2px)}
.skill-copy {font-size:calc(clamp(15px,1.13vw,22px) - 2px)}
.project-card p {font-size:calc(clamp(15px,1.13vw,21px) - 2px)}
.video-placeholder small,.logo-slot small {font-size:12px}
.logo-placeholder small {font-size:11px}
.home .skill-list summary {
 font-family:var(--serif);font-weight:400;font-style:normal;
}
/* More space between collapsed skills; expanded copy keeps its divider. */
.skill-list details,
.skill-list.is-animated details,.skill-list.is-animated details[open] {
 padding:20px 0;
}
.skill-list.is-animated .skill-copy {padding-bottom:30px}
.skill-list:not(.is-animated) details[open] {padding-bottom:30px}
.design-content .artwork[role=button] {cursor:zoom-out}

/* Desktop folds use the viewport, rather than a width-based minimum height.
   Content may still grow on unusually short screens or with enlarged text. */
@media(min-width:801px) {
 .home .hero {min-height:100svh;grid-template-rows:minmax(100svh,auto)}
 .hero-photo {position:relative;min-height:0}
 .hero-photo img {position:absolute;inset:0;object-position:center bottom}
 .hero-title {top:calc(18% - clamp(24px,4svh,48px))}
 .hero h1 {font-size:calc(clamp(48px,min(5.55vw,10svh),112px) + 5px)}
 .hero-about {padding-top:90px;padding-bottom:40px}
 .home .skills {
  min-height:100svh;padding-top:88px;padding-bottom:40px;
 }
 .skill-list {padding-top:0}
 .home .work {
  min-height:100svh;padding-top:88px;padding-bottom:36px;
  display:flex;flex-direction:column;justify-content:center;
 }
 .work .eyebrow {margin-bottom:12px}
 .work h2 {margin-bottom:28px}
 .work .card-image {
  aspect-ratio:3/2;height:auto;
 }
 .work .device {
  max-width:calc(clamp(90px,calc((100svh - 500px)/2),260px) * 1.2);
 }
}
@media(min-width:801px) and (max-width:1100px) {
 .hero-about {font-size:13px}
}
@media(max-width:800px) {
 
 .home main p.hero-subtitle {width:78vw;max-width:540px}
 .hero-about {font-size:16px}
 .skill-copy {font-size:15px}
 .hero-photo img {object-position:center bottom}
}
@media(max-width:480px) {
 .hero-about {font-size:15px}
 .project-card p {font-size:14px}
 .hero-photo img {object-position:57% bottom}
}

/* Project navigation: a quiet collection card and a prominent next project. */
.project-page .project-footer p {color:inherit}
.card-image img.project-thumbnail {width:100%;height:100%;object-fit:cover;object-position:center}
.project-pagination {
 display:grid;grid-template-columns:1fr 1.6fr;gap:20px;
 border-top:0;padding:32px 0 64px;
}
.project-pagination a {
 display:flex;align-items:center;justify-content:space-between;gap:24px;
 padding:32px;border:1px solid var(--sage);border-radius:8px;
 background:var(--sage);color:var(--forest);text-decoration:none;
 transition:background-color .25s ease,border-color .25s ease;
}
.project-pagination a:last-child {
 background:var(--forest);border-color:var(--forest);color:var(--cream);
 max-width:none;text-align:left;
}
.pagination-copy {display:flex;flex-direction:column;gap:12px}
.pagination-label {font:600 11px/1.4 var(--sans);letter-spacing:.16em;text-transform:uppercase}
.pagination-title {font:400 clamp(24px,2.2vw,36px)/1.15 var(--serif)}
.pagination-arrow {
 display:grid;place-items:center;flex:none;width:44px;height:44px;
 border:1px solid currentColor;border-radius:50%;font-size:22px;
 transition:transform .25s ease;
}
.project-pagination a:last-child .pagination-arrow {
 background:var(--button-gold);border-color:var(--button-gold);color:var(--ink);
}
.project-pagination a:hover,.project-pagination a:focus-visible {background:#cdd8bc}
.project-pagination a:last-child:hover,.project-pagination a:last-child:focus-visible {background:var(--olive)}
.project-pagination a:hover .pagination-arrow {transform:translateX(-4px)}
.project-pagination a:last-child:hover .pagination-arrow {transform:translateX(4px)}
@media(max-width:800px) {
 .project-pagination {grid-template-columns:1fr;gap:14px;padding-bottom:40px}
 .project-pagination a {padding:24px}
}
@media(prefers-reduced-motion:reduce) {
 .project-pagination a:hover .pagination-arrow {transform:none}
}

/* Swym ads open in a viewport-filling, dismissible video viewer. */
.card-image img[src$="swym-branding-thumbnail-edited.png"] {object-fit:contain;background:#101f0d}
.fincent-video {margin:0 0 38px}
.fincent-video .video-ad-preview {aspect-ratio:2.25;border-radius:0}
.fincent-video.is-playing .video-ad-play {opacity:0}
.video-dialog:fullscreen {background:#101710}
@media(max-width:480px) {.fincent-video .video-ad-preview {aspect-ratio:1.6}}
.video-ad-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.video-ad {display:block;text-decoration:none}
.video-ad-preview {position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:var(--forest);border-radius:8px}
.video-ad-preview video {display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.video-ad-play {position:absolute;inset:0;display:grid;place-items:center;background:#0002}
.video-ad-play::before {content:'▶';display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:var(--button-gold);color:var(--ink);font-size:20px;padding-left:3px;transition:transform .25s ease}
.video-ad:hover .video-ad-play::before,.video-ad:focus-visible .video-ad-play::before {transform:scale(1.1)}
.video-dialog {width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;padding:24px;border:0;background:transparent;color:var(--cream)}
.video-dialog::backdrop {background:#101710ed}
.video-dialog[open] {display:grid;place-items:center}
.video-panel {width:min(1400px,94vw);max-height:100%;min-height:0}
.video-viewer-bar {display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.video-viewer-bar .close-viewer {border-color:var(--cream)}
.video-dialog video {display:block;width:100%;max-height:calc(100dvh - 130px);background:#000;object-fit:contain}
.video-dialog p.video-error {color:var(--cream);margin-top:12px}
@media(max-width:800px) {
 .video-ad-grid {grid-template-columns:1fr}
 .video-dialog {padding:16px}
 .video-panel {width:100%}
}
@media(prefers-reduced-motion:reduce) {
 .video-ad:hover .video-ad-play::before,.video-ad:focus-visible .video-ad-play::before {transform:none}
}

/* Collapsed audit comparisons retain their image viewers and full write-ups. */
.competitor-research>.artwork+p {margin-top:36px}
.audit-topic {margin-bottom:0;border-bottom:1px solid #c9cdbf}
.audit-topic:has(+.case-section:not(.audit-topic)) {margin-bottom:48px}
.audit-disclosure>summary {display:flex;align-items:center;justify-content:space-between;gap:24px;list-style:none;cursor:pointer;padding:24px 0}
.audit-disclosure>summary::-webkit-details-marker {display:none}
.audit-disclosure>summary h2 {margin:0}
.audit-disclosure[open]>summary .toggle:after {content:'−'}
.audit-detail-content {padding-bottom:24px}
.audit-detail-content>.comparison {margin-top:0}
.phone-mockup {width:min(360px,100%);margin:28px auto;padding:12px;background:#17191b;border:2px solid #666b70;border-radius:42px;box-shadow:0 16px 36px #22272026}
.phone-screen {height:min(660px,72svh);min-height:260px;overflow:auto;overscroll-behavior:contain;border-radius:29px;background:#fff;scrollbar-width:thin}
.phone-screen:focus-visible {outline:3px solid var(--button-gold);outline-offset:4px}
.phone-screen img {display:block;width:100%;height:auto}
/* Only inline previews receive matching backgrounds; fullscreen stays unchanged. */
.fincent-video[href$="fincent-homepage.mp4"] .video-ad-preview {background:#fff}
.fincent-video[href$="fincent-product-pages.mp4"] .video-ad-preview {background:#26262f}
.fincent-video .video-ad-play {background:transparent}

/* One navigation type rule shared by the homepage and every project page. */
:root {--nav-font-size:13px}
html {-webkit-text-size-adjust:100%;text-size-adjust:100%}
.site-header nav a {font-family:var(--sans);font-size:var(--nav-font-size);font-weight:600;line-height:1.6;letter-spacing:.18em;text-transform:uppercase}
.audit-disclosure .artwork[role=button] {cursor:zoom-out}
.collapse-comparison {padding-left:0;justify-content:flex-start}
.phone-mockup {width:min(320px,100%);padding:9px;border-radius:36px}
.phone-screen {height:auto;min-height:0;aspect-ratio:9/19.5;overflow-x:hidden;overflow-y:auto;border-radius:25px;scrollbar-width:none;-ms-overflow-style:none}
.phone-screen::-webkit-scrollbar {display:none;width:0;height:0}
.phone-page {width:100%;overflow:hidden}
/* The export is 2480px wide; its actual mobile artwork ends at 1479px. */
.phone-page img {width:calc(100% * 2480 / 1479);max-width:none;height:auto}
.hub-template .design-actions .button-secondary {justify-content:flex-start;text-align:left;padding-left:0}

/* Logo projects share the audit disclosure treatment, with original media ratios. */
.logo-project {margin-bottom:0;border-bottom:1px solid #c9cdbf}
.logo-disclosure>summary {display:flex;align-items:center;justify-content:space-between;gap:24px;list-style:none;cursor:pointer;padding:24px 0}
.logo-disclosure>summary::-webkit-details-marker {display:none}
.logo-disclosure>summary h2 {margin:0}
.logo-disclosure[open]>summary .toggle:after {content:'−'}
.logo-project-content {padding:8px 0 32px;cursor:zoom-out}
.logo-gallery {display:grid;gap:24px;margin-top:28px}
.logo-graphic {display:block;width:100%;height:auto}
.logo-animation {aspect-ratio:1/1;object-fit:contain}
.collapse-logo {padding-left:0;margin-top:24px;justify-content:flex-start}

/* Taller overview artwork now that the descriptions have been removed. */
.work .card-image {aspect-ratio:3/2;height:auto}
.device-preview {cursor:zoom-out}
/* MacBook Pro frame; the original artwork stays scrollable inside the display. */
.laptop-mockup {width:min(100%,1000px);margin:28px auto 40px;container-type:inline-size}
.laptop-lid {
 position:relative;margin:0 5%;padding:1.15% 1.05% 1.5%;
 border:1px solid #777a7e;border-radius:18px 18px 5px 5px;
 background:linear-gradient(135deg,#353639,#101113 18%,#17181a 85%,#414245);
 box-shadow:inset 0 0 0 1px #ffffff24,0 16px 32px #2227201a;
}
.laptop-screen {width:100%;aspect-ratio:16/10;overflow-x:hidden;overflow-y:auto;border-radius:9px 9px 2px 2px;background:#fff;scrollbar-width:none;overscroll-behavior:contain}
.laptop-screen::-webkit-scrollbar {display:none}
.laptop-screen img {display:block;width:100%;max-width:100%;height:auto}
.laptop-screen:focus-visible {outline:3px solid var(--button-gold);outline-offset:3px}
.laptop-base {
 position:relative;height:clamp(10px,1.8cqw,18px);margin-top:-1px;
 border:1px solid #9a9da1;border-top-color:#e2e4e7;border-radius:2px 2px 22px 22px;
 background:linear-gradient(90deg,#85898f,#c9cdd2 3%,#e1e3e6 18%,#c5c9cf 50%,#e1e3e6 82%,#b4b8be 97%,#85898f);
 box-shadow:inset 0 -4px 4px #53586055,0 3px 2px #2227201a,0 14px 20px -9px #22272055;
}
.laptop-base::before {
 content:'';position:absolute;left:43%;top:-1px;width:14%;height:35%;
 border-radius:0 0 8px 8px;background:linear-gradient(#8c9096,#b7bbc1);
 box-shadow:inset 0 -1px 1px #ffffff80;
}
@media(max-width:480px) {
 .laptop-lid {border-radius:9px 9px 3px 3px}
 .laptop-screen {border-radius:4px 4px 1px 1px}
  }

/* Compact spacing for the desktop project overview. */
@media(min-width:801px) {
 .home .work {padding-top:28px;padding-bottom:44px;justify-content:center}
 .home .work .eyebrow {margin-bottom:8px}
 .home .work h2 {margin-bottom:20px}
 .home .work .project-grid {row-gap:32px}
 .home .work .project-card h3 {margin-bottom:0}
}
/* Opaque panels cover the preceding pinned fold, as in the reference. */
.home .hero,.home .work {background:var(--cream)}
html.stacked-home {scroll-snap-type:none;scroll-behavior:auto}
.stacked-home .home main>section {scroll-snap-align:none}

/* Match the Branding thumbnail proportions at every responsive card width. */
.home .work .card-image {width:100%;height:auto;aspect-ratio:1672/941;margin-left:0;margin-right:0;margin-bottom:22px;border-radius:4px}
.home .work .card-image img.project-thumbnail {width:100%;height:100%;object-fit:contain;object-position:center}

/* Project tile titles: 2px smaller at every existing breakpoint. */
.home .project-card h3 {font-size:calc(clamp(25px,1.7vw,34px) - 2px)}
@media(max-width:800px) {.home .project-card h3 {font-size:24px}}
@media(max-width:480px) {.home .project-card h3 {font-size:26px}}

/* Progressive enhancement: ordinary navigation remains available without JS. */
.nav-toggle {display:none}
@media(max-width:800px) {
 .site-header.has-mobile-menu {pointer-events:none}
 .has-mobile-menu .nav-toggle {
  display:flex;position:relative;margin-left:auto;width:44px;height:44px;
  flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:10px;border:1px solid var(--sage);border-radius:50%;
  background:transparent;color:inherit;cursor:pointer;pointer-events:auto;
 }
 .nav-toggle span {display:block;width:20px;height:2px;background:currentColor;transition:transform .2s,opacity .2s}
 .menu-open .nav-toggle span:nth-child(1) {transform:translateY(7px) rotate(45deg)}
 .menu-open .nav-toggle span:nth-child(2) {opacity:0}
 .menu-open .nav-toggle span:nth-child(3) {transform:translateY(-7px) rotate(-45deg)}
 .site-header.has-mobile-menu nav {
  display:none;position:absolute;top:calc(100% - 10px);right:6vw;
  width:min(260px,88vw);max-height:calc(100dvh - 90px);overflow-y:auto;
  padding:12px 20px;border:1px solid var(--sage);border-radius:12px;
  background:transparent;color:inherit;box-shadow:none;
  flex-direction:column;gap:0;pointer-events:auto;
 }
 .site-header.has-mobile-menu.menu-open nav {display:flex}
 .site-header.has-mobile-menu nav a {display:flex;align-items:center;min-height:44px;padding:10px 4px}
}

/* Reserve navigation space and match the section colour without a separate band. */
:root {--header-height:72px;--fold-height:calc(100svh - var(--header-height))}
html,html.home-document {scroll-padding-top:calc(var(--header-height) + 16px)}
.site-header,.site-header.scrolled {position:sticky;top:0;padding:24px 6vw;background:var(--navigation-background,var(--cream));border:0;box-shadow:none;color:var(--forest);transition:none}
.site-header[data-theme=dark] {color:var(--cream)}
.site-header[data-theme=light] {color:var(--forest)}
.case-study {padding-top:48px}
.case-section {scroll-margin-top:16px}
.home main>section {min-height:var(--fold-height)}
@media(min-width:801px) {
 .home .hero {min-height:var(--fold-height);grid-template-rows:minmax(var(--fold-height),auto)}
 .home .skills,.home .work {min-height:var(--fold-height)}
}
@media(max-width:800px) {
 :root {--header-height:77px}
 .site-header,.site-header.scrolled {padding:16px 6vw}
 .site-header.has-mobile-menu {pointer-events:auto}
 .site-header.has-mobile-menu nav {position:static;width:100%;max-height:calc(100svh - 90px);margin-top:12px;box-shadow:none}
 .home .hero {padding-top:0}
 .home .hero-title {top:64px}
}
@media(max-width:480px) {.home .hero-title {top:44px}}

/* Extend the hero artwork through the homepage navigation row. */
.home .site-header:not([data-section]),
.home .site-header[data-section="about"] {background:transparent}
.home .hero-green {position:relative}
.home .hero-green::before {content:'';position:absolute;left:0;right:0;top:calc(-1 * var(--header-height));height:var(--header-height);background:var(--forest)}
.home .hero-photo {position:relative;overflow:visible}
.home .hero-photo img {position:absolute;left:0;top:calc(-1 * var(--header-height));width:100%;height:calc(100% + var(--header-height));object-fit:cover}
/* The face centre is about 66% down the source; place it 60% down the frame. */
.home .hero-photo {
 --portrait-height:max(calc(117.6471% + var(--header-height) * 1.176471),62.5vw);
 clip-path:inset(calc(-1 * var(--header-height)) 0 0);
}
.home .hero-photo img {
 height:var(--portrait-height);
 top:calc(60% - var(--header-height) * .4 - var(--portrait-height) * .66);
 object-position:center top;
}
@media(max-width:800px) {.home .hero-photo {--portrait-height:max(calc(117.6471% + var(--header-height) * 1.176471),93.75vw)}}
@media(max-width:480px) {.home .hero-photo img {object-position:57% top}}
@media(max-width:800px) {
 /* Match the hero's green half while leaving the photo visible on the right. */
 .home .site-header:not([data-section]),
 .home .site-header[data-section="about"] {background:linear-gradient(to right,var(--forest) 50%,transparent 50%);color:var(--cream)}
 .home .site-header[data-section="about"].menu-open nav {background:var(--cream);color:var(--forest)}
}

/* Navigation changes colour immediately and stays stable during panel scrolling. */
.site-header {transform:translateZ(0)}
.site-header nav,.site-header nav a {animation:none;transition:none;transform:none}

/* Contact ends naturally; reserve a separate bottom-right copyright area. */
.home .contact {
 position:relative;
 min-height:var(--fold-height);
 padding-top:clamp(28px,4svh,48px);
 padding-bottom:clamp(108px,14svh,148px);
}
.home .contact>* {flex-shrink:0}
.home .contact .copyright {
 position:absolute;right:var(--gutter);bottom:24px;
 margin:0;text-align:right;
}
html.contact-active {overscroll-behavior-y:none;scroll-snap-type:none}
html.contact-active body {overscroll-behavior-y:none}

/* Mobile navigation: full-width green panel with large, separated links. */
@media(max-width:800px) {
 .has-mobile-menu .nav-toggle {border:0;border-radius:0;background:transparent}
 .site-header.has-mobile-menu.menu-open {
  background:var(--forest);color:var(--cream);
 }
 .site-header.has-mobile-menu.menu-open nav,
 .home .site-header.has-mobile-menu.menu-open nav {
  position:fixed;top:var(--header-height);left:0;right:0;bottom:0;
  width:100%;height:calc(100dvh - var(--header-height));max-height:none;
  margin:0;padding:24px 6vw max(32px,env(safe-area-inset-bottom));
  border:0;border-radius:0;background:var(--forest);color:var(--cream);
  box-shadow:none;overflow-y:auto;overscroll-behavior:contain;
  justify-content:flex-start;gap:0;
 }
 .site-header.has-mobile-menu.menu-open nav a {
  flex:none;justify-content:space-between;gap:24px;
  min-height:80px;padding:20px 0;border-top:1px solid #dce4d066;
  font-family:var(--serif);font-size:calc(clamp(28px,7vw,40px) - 4px);font-weight:400;font-style:normal;line-height:1.2;
  letter-spacing:0;text-transform:none;text-decoration:none;
 }
 .site-header.has-mobile-menu.menu-open nav a:last-child {border-bottom:1px solid #dce4d066}
 .site-header.has-mobile-menu.menu-open nav a::after {
  content:'';width:10px;height:10px;flex:none;margin-right:4px;
  border-top:1px solid currentColor;border-right:1px solid currentColor;transform:rotate(45deg);
 }
 html.mobile-menu-open,html.mobile-menu-open body {overflow:hidden;overscroll-behavior:none}
}

/* Keep the mobile header above every pinned fold and every project page. */
@media(max-width:800px) {
 body {padding-top:var(--header-height)}
 .site-header,.site-header.scrolled {
  position:fixed;top:0;left:0;right:0;z-index:100;
  transform:none;pointer-events:auto;
 }
 .site-header.has-mobile-menu.menu-open nav {pointer-events:auto}
}
/* Lower only the desktop Contact content; keep the copyright anchored. */
@media(min-width:801px) {
 .home .contact {
  padding-top:calc(clamp(28px,4svh,48px) + 40px);
  padding-bottom:calc(clamp(108px,14svh,148px) - 40px);
 }
}

/* Shared SVG branding; absolute placement preserves the navigation row height. */
.site-logo {position:absolute;left:6vw;top:50%;transform:translateY(-50%);display:block;width:clamp(140px,13vw,180px);line-height:0;pointer-events:auto}
.site-logo img {display:block;width:100%;height:auto;max-height:56px;object-fit:contain;object-position:left center}
.site-logo .logo-white {display:none}
.site-header[data-theme=dark] .logo-original,
.home .site-header:not([data-section]) .logo-original,
.home .site-header[data-section="about"] .logo-original {display:none}
.site-header[data-theme=dark] .logo-white,
.home .site-header:not([data-section]) .logo-white,
.home .site-header[data-section="about"] .logo-white {display:block}
@media(max-width:800px) {
 .site-logo {width:150px}
 .site-header.menu-open .site-logo .logo-original {display:none}
 .site-header.menu-open .site-logo .logo-white {display:block}
 .site-header:not(.has-mobile-menu) {padding-top:76px}
 .site-header:not(.has-mobile-menu) .site-logo {top:16px;transform:none}
}
/* Slightly smaller navbar logo leaves more air above the avatar. */
.site-logo {width:clamp(126px,11.7vw,162px)}
.site-logo img {max-height:50px}
@media(max-width:800px) {.site-logo {width:135px}}
/* Align logo edge with the page content gutter. */
.site-logo {left:var(--gutter)}
@media(max-width:800px) {.site-logo {left:6vw}}

/* Fill the shared thumbnail frame for the two taller source artworks. */
.home .work .project-card[href="website-audit.html"] .project-thumbnail,
.home .work .project-card[href="claude-design-system.html"] .project-thumbnail {
 object-fit:cover;
 object-position:center;
}

/* Scale both thumbnail dimensions together to leave room for all six titles. */
@media(min-width:801px) {
 .home .work .card-image {
  width:min(100%,calc(var(--overview-image-height,100vw) * 1672 / 941));
 }
}

/* Contact popup: compact two-column panel, with scrolling inside the scheduler. */
.contact-dialog {width:min(880px,92vw);height:min(740px,84dvh);max-width:92vw;max-height:84dvh;margin:auto;padding:0;border:0;border-radius:16px;background:var(--cream);color:var(--forest);box-shadow:none;overflow:hidden}
.contact-dialog[open] {display:flex;flex-direction:column}
.contact-dialog::backdrop {background:#111b1399}
.contact-dialog-bar {display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:24px 28px 26px}
.contact-dialog-bar h2 {font-size:34px}
.contact-dialog .close-contact {display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:1px solid var(--forest);border-radius:9px;background:transparent;color:var(--forest);font:400 28px/1 var(--sans)}
.contact-dialog .close-contact:hover {background:var(--sage)}
.contact-dialog-content {display:grid;grid-template-columns:minmax(0,42fr) minmax(0,58fr);grid-template-rows:minmax(0,1fr);flex:1;min-height:0;padding:0 28px 28px;overflow:auto}
.contact-details {display:flex;flex-direction:column;gap:26px;margin:0;padding:4px 24px 0 0;border-right:1px solid var(--forest)}
.contact-details dt {margin-bottom:8px;font:500 11px/1.5 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:var(--olive)}
.contact-details dd {margin:0;font:600 17px/1.4 var(--sans);overflow-wrap:anywhere}
.contact-details a {text-decoration:none}
.contact-details a:hover {text-decoration:underline}
.contact-booking {display:flex;flex-direction:column;min-width:0;min-height:0;padding:4px 0 0 24px}
.contact-booking h3 {font-size:26px;flex:none;margin-bottom:12px}
.booking-viewport {position:relative;flex:1;min-height:0;min-width:0;overflow:hidden;order:1}
.contact-dialog .booking-viewport .calendly-inline-widget {position:absolute;inset:0;width:100%;height:100%;min-width:0}
.booking-fallback {order:2;font-size:11px;margin:10px 0 0;flex:none}
.booking-error {font-size:12px;margin:0 0 10px;flex:none}
body.contact-open {overflow:hidden}
.hero-actions {display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;gap:16px 24px}
@media(max-width:700px) {
 .contact-dialog {width:94vw;max-width:94vw;height:94dvh;max-height:94dvh}
 .contact-dialog-bar {padding:16px 18px}
 .contact-dialog-bar h2 {font-size:30px}
 .contact-dialog-content {grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr);gap:14px;padding:0 18px 18px}
 .contact-details {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;padding:0 0 14px;border-right:0;border-bottom:1px solid var(--sage)}
 .contact-details dt {font-size:10px;margin-bottom:4px}
 .contact-details dd {font-size:13px}
 .contact-booking {padding:0}
 .contact-booking h3 {font-size:24px;margin-bottom:8px}
}

/* Hero resume link aligns with the primary button edge on the green panel. */
.hero .hero-actions .button.button-secondary,
.hero .hero-actions .button.button-secondary:hover,
.hero .hero-actions .button.button-secondary:focus-visible {
 color:#fff;
 justify-content:flex-start;
 text-align:left;
 padding-left:0;
}

.hero .hero-actions .button.button-secondary {font-weight:400}

/* The last fold must fill the current mobile viewport, including when browser
   controls retract; a small-viewport height leaves the previous fold exposed. */
@media(max-width:800px) {
 .home .contact {min-height:calc(100dvh - var(--header-height) + 1px)}
}

/* Keep the animated and static Cyber Peace identities together on all screens. */
#cyber-peace-foundation .cyber-logo-pair {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:clamp(10px,2vw,24px);
 align-items:center;
}
#cyber-peace-foundation .cyber-logo-pair img {min-width:0;width:100%;height:auto;object-fit:contain}

#cyber-peace-foundation .cyber-logo-pair img:last-child {
 aspect-ratio:1/1;
 object-fit:cover;
 object-position:center;
}

/* Stack hero actions on mobile, keeping Resume aligned with the primary edge. */
@media(max-width:800px) {
 .hero .hero-actions {flex-direction:column;align-items:flex-start;gap:16px}
 .hero .hero-actions .button.button-secondary {padding-left:0;text-align:left;justify-content:flex-start}
}

/* Give both popup columns a shared heading line below the close control. */
.contact-dialog-bar {justify-content:flex-end;padding:18px 28px 20px}
.contact-info {min-width:0;padding:4px 24px 0 0;border-right:1px solid var(--forest)}
.contact-info h2 {font-size:30px;margin:0 0 28px}
.contact-info .contact-details {padding:0;border:0}
.contact-booking h3 {font-size:30px}
/* Shared dark popup palette on desktop and mobile. */
.contact-dialog {background:var(--forest);color:var(--cream);border-color:var(--olive)}
.contact-info {border-color:var(--sage)}
.contact-dialog .contact-details dt {color:var(--cream)}
.contact-dialog .contact-details dt,
.contact-dialog .contact-details dd {font-family:var(--sans);font-weight:400}
.contact-dialog .contact-booking .booking-fallback,
.contact-dialog .contact-booking .booking-error,
.contact-dialog .booking-fallback a {color:var(--cream)}
.contact-dialog .close-contact {color:var(--cream);border-color:var(--cream)}
.contact-dialog .close-contact:hover {background:var(--olive)}
@media(max-width:700px) {
 .contact-dialog-bar {padding:18px 18px 20px}
 .contact-info {padding:0 0 16px;border-right:0;border-bottom:1px solid var(--sage)}
 .contact-info h2 {font-size:30px;margin-bottom:22px}
 .contact-booking h3 {font-size:24px}
}

/* Add breathing room between contact details and booking on mobile. */
@media(max-width:700px) {
 .contact-dialog-content {row-gap:30px}
}

/* Flat contact panel and unobtrusive close control, with a darker backdrop. */
.contact-dialog {border-radius:0}
.contact-dialog::backdrop {background:#111b13cc}
.contact-dialog .close-contact {border:0;border-radius:0}
.contact-dialog .close-contact:hover {background:transparent;color:var(--sage)}

/* Inset the contact column on desktop without moving the booking column. */
@media(min-width:701px) {
 .contact-dialog .contact-info {padding-left:24px}
}

/* Slightly inset mobile contact details while preserving calendar width. */
@media(max-width:700px) {
 .contact-dialog .contact-info {padding-left:12px}
}

/* Align the mobile booking heading with the inset contact text. */
@media(max-width:700px) {
 .contact-dialog .contact-booking h3 {margin-left:12px}
}
