/* ---- style.css ---- */
:root{}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:110px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px}a{color:inherit;text-decoration:none}button,summary,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid var(--rust);outline-offset:2px}img{display:block;max-width:100%}.wrap{max-width:1380px;padding:0 64px;margin:auto}.brand{display:flex;gap:14px;align-items:center;font-size:15px;font-weight:700;letter-spacing:-.4px;line-height:1.15;position:relative}.brand-dot{font-size:9px;vertical-align:top;margin-left:4px}nav{display:flex;gap:36px;font-size:14px}.nav-contact{font-size:14px;font-weight:bold;display:flex;gap:38px;align-items:center}.nav-contact span{font-size:26px}.hero{padding-top:49px}.hero-eyebrow{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;letter-spacing:1.4px;font-weight:700}.hero h1{font-size:clamp(65px,7.9vw,119px);letter-spacing:-7px;line-height:1.04;margin:49px 0 38px;font-weight:600}.blue{color:var(--blue)}.period{color:var(--blue)}.hero-bottom{display:flex;justify-content:space-between;align-items:end;gap:35px}.hero-bottom p{font-size:18px;line-height:1.6;color:var(--text-muted);margin:0}.round-link{display:flex;gap:25px;align-items:center;font-size:13px}.circle{width:70px;height:70px;border:1px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-size:29px;transition:.25s}.round-link:hover .circle{background:var(--ink);color:var(--paper);transform:rotate(-12deg)}.hero-strip{display:flex;justify-content:space-between;align-items:center;margin-top:56px;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:10px;letter-spacing:1px;font-weight:bold}.hero-strip i{font-size:16px;color:var(--blue);margin:0 20px;font-style:normal}.work{padding-top:110px;padding-bottom:100px}.section-top{display:flex;justify-content:space-between;gap:40px;align-items:end;margin-bottom:39px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;margin:0 0 24px}.section-top h2,.about h2{font-size:44px;line-height:1.12;letter-spacing:-1.8px;margin:0}.section-note{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 4px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 31px}.filters button{border:1px solid var(--line);border-radius:99px;padding:11px 20px;background:transparent;color:var(--ink);font-size:12px}.filters button.active{background:var(--ink);color:var(--text);border-color:var(--ink)}.filters span{font-size:9px;margin-left:13px;opacity:.6}.projects{display:grid;grid-template-columns:1fr 1fr;gap:52px 28px}.project[hidden]{display:none}.project-image{display:block;aspect-ratio:1.43;background:var(--surface);overflow:hidden;position:relative}.project-image img{width:100%;height:100%;object-fit:cover;transition:transform .6s}.project-image:hover img{transform:scale(1.035)}.image-arrow{position:absolute;right:18px;bottom:18px;width:45px;height:45px;display:grid;place-items:center;border-radius:50%;background:var(--paper);font-size:23px;box-shadow:0 1px 10px var(--shadow)}.project-caption{display:flex;align-items:center;justify-content:space-between;padding-top:21px}.project-caption .eyebrow{margin-bottom:9px;color:var(--muted);font-size:9px}.project h3{font-size:22px;letter-spacing:-.5px;margin:0;font-weight:600}.details{background:none;border:1px solid var(--line);border-radius:50%;width:32px;height:32px;font-size:21px;flex-shrink:0}.details:hover{background:var(--ink);color:var(--text)}.work-footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding-top:28px;margin-top:56px}.work-footer p{font-size:14px;color:var(--muted)}.text-link{font-size:14px;padding-bottom:7px;border-bottom:1px solid var(--ink)}.capabilities{background:var(--ink);color:var(--paper);padding:88px 0 93px}.capabilities .eyebrow{color:var(--teal)}.service-mark{width:100px;height:128px}.service-list{margin-top:60px}details{border-top:1px solid var(--border)}details:last-child{border-bottom:1px solid var(--border)}summary{list-style:none;display:flex;align-items:center;gap:44px;padding:29px 0;cursor:pointer;font-size:30px;letter-spacing:-.8px}summary::-webkit-details-marker{display:none}.service-number{font-size:11px;letter-spacing:0;color:var(--text-muted)}.service-plus{margin-left:auto;font-size:26px;font-weight:normal}details[open] .service-plus{transform:rotate(45deg)}.service-content{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-left:58px;padding:0 0 31px}.service-content p{font-size:16px;line-height:1.6;margin:0;color:var(--text-muted)}.service-content span{font-size:12px;color:var(--teal);line-height:1.8;align-self:center}.about{display:grid;grid-template-columns:.9fr 1.15fr;gap:95px;padding-top:113px;padding-bottom:108px;align-items:center}.portrait-frame{background:var(--surface);position:relative;aspect-ratio: .85;overflow:hidden}.portrait-frame img{width:100%;height:100%;object-fit:cover;object-position:center}.portrait-frame>span{position:absolute;bottom:19px;left:21px;background:var(--paper);padding:11px 13px;font-size:9px;letter-spacing:1px}.about-copy>p:not(.eyebrow){font-size:16px;line-height:1.7;color:var(--muted);margin:24px 0}.about-facts{display:flex;gap:40px;padding:27px 0 32px;margin-top:27px;border-top:1px solid var(--line)}.about-facts div{display:flex;flex-direction:column;gap:10px}.about-facts strong{font-size:27px;letter-spacing:-.8px}.about-facts span{font-size:10px;color:var(--muted)}.process{padding-top:54px;padding-bottom:116px;border-top:1px solid var(--line)}.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;margin-top:50px}.process-grid>div{border-top:1px solid var(--line);padding-top:25px}.process-grid span{font-size:10px;color:var(--blue);font-weight:bold;letter-spacing:1px}.process-grid h3{font-size:23px;font-weight:600;margin:26px 0 13px;letter-spacing:-.6px}.process-grid p{font-size:14px;line-height:1.7;color:var(--muted);max-width:290px}.contact{background:var(--blue);color:var(--text);padding:68px 0 54px}.contact-heading{display:block;font-size:clamp(72px,8.5vw,125px);line-height:1.02;font-weight:600;letter-spacing:-6px;position:relative;margin-top:32px}.contact-heading>span{position:absolute;right:15px;top:15px;font-size:130px;font-weight:normal}.contact-bottom{display:flex;gap:25px;align-items:center;flex-wrap:wrap;margin-top:51px;border-top:1px solid var(--border);padding-top:27px}.contact-bottom>a{font-size:22px;letter-spacing:-.5px}.contact-bottom button{border:1px solid var(--border);border-radius:99px;color:var(--text);background:transparent;padding:11px 18px;font-size:12px}.contact-bottom p{margin-left:auto;font-size:12px;line-height:1.5;color:var(--footer-text)}.footer{display:flex;align-items:center;justify-content:space-between;gap:25px;padding-top:32px;padding-bottom:32px}.footer .brand{font-size:12px}.footer p,.footer div{font-size:10px;color:var(--muted)}.footer div{display:flex;gap:22px}.footer>a:last-child{font-size:25px}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-100px;background:var(--ink);color:var(--text);padding:15px;z-index:20}.skip:focus{top:10px}dialog{max-width:680px;width:calc(100% - 32px);background:var(--paper);color:var(--ink);border:0;padding:42px;max-height:90vh;overflow:auto}dialog::backdrop{background:var(--scrim)}dialog h2{font-size:32px;letter-spacing:-1px}dialog img{width:100%;max-height:290px;object-fit:cover;margin-bottom:25px}dialog p{line-height:1.6;color:var(--muted)}#close-dialog{position:absolute;top:12px;right:15px;background:none;border:0;font-size:28px}.button{display:inline-block;background:var(--blue);color:var(--text);font-size:13px;padding:15px 22px;margin-top:12px}
@media(min-width:1500px){.hero h1{font-size:119px}}@media(max-width:1000px){.wrap{padding-left:35px;padding-right:35px}.hero h1{font-size:8.8vw;letter-spacing:-4px}.hero-bottom p{font-size:16px}.about{gap:45px}.section-top h2,.about h2{font-size:35px}.about-facts{gap:25px}.about-facts strong{font-size:22px}.footer{flex-wrap:wrap}.contact-heading{letter-spacing:-4px}.service-content{gap:25px}}
@media(max-width:650px){html{scroll-padding-top:20px}.wrap{padding-left:22px;padding-right:22px}.brand{font-size:12px;gap:9px}.brand img{width:23px;height:29px}nav{gap:17px;font-size:12px}nav a:last-child{display:none}.nav-contact{font-size:12px;gap:7px}.nav-contact span{font-size:18px}.hero{padding-top:32px}.hero-eyebrow{font-size:8px;letter-spacing:.8px;gap:18px}.hero-eyebrow span:last-child{max-width:135px;text-align:right;line-height:1.5}.hero h1{font-size:12vw;letter-spacing:-2.5px;line-height:1.08;margin:35px 0 30px}.hero-bottom{display:block}.hero-bottom p{font-size:15px;line-height:1.7}.desktop{display:none}.round-link{margin-top:29px;justify-content:space-between}.circle{width:48px;height:48px;font-size:23px}.hero-strip{margin-top:35px;font-size:8px;letter-spacing:.5px;gap:20px;line-height:1.7}.hero-strip span:last-child{text-align:right}.hero-strip i{margin:0 4px;font-size:10px}.work{padding-top:65px;padding-bottom:65px}.section-top{display:block;margin-bottom:27px}.section-top h2,.about h2{font-size:32px;letter-spacing:-1.1px}.section-note{margin-top:21px;font-size:13px}.eyebrow{font-size:9px;margin-bottom:18px}.filters{gap:7px}.filters button{font-size:11px;padding:9px 13px}.projects{grid-template-columns:1fr;gap:34px}.project-caption{padding-top:16px}.project h3{font-size:21px}.work-footer{gap:20px;margin-top:36px}.text-link{font-size:12px}.capabilities{padding:59px 0}.capabilities .section-top{display:flex;gap:20px}.service-mark{width:58px;height:75px;align-self:center}.service-list{margin-top:35px}summary{font-size:22px;gap:20px;letter-spacing:-.5px;padding:25px 0}.service-number{font-size:10px}.service-content{grid-template-columns:1fr;gap:15px;margin-left:33px}.service-content p{font-size:14px}.about{grid-template-columns:1fr;gap:38px;padding-top:65px;padding-bottom:65px}.portrait-frame{max-height:440px;aspect-ratio:1}.about-copy>p:not(.eyebrow){font-size:15px}.about-facts{gap:35px}.process{padding-top:40px;padding-bottom:65px}.process-grid{grid-template-columns:1fr;gap:17px;margin-top:34px}.process-grid h3{margin:17px 0 10px}.process-grid p{max-width:none}.contact{padding:47px 0 32px}.contact-heading{font-size:18vw;letter-spacing:-3px}.contact-heading>span{font-size:64px;right:0;top:0}.contact-bottom{margin-top:34px;gap:17px}.contact-bottom>a{font-size:19px}.contact-bottom p{width:100%;margin:5px 0 0}.footer{gap:23px;padding-top:25px;padding-bottom:25px}.footer p{order:4;width:100%;margin:0}.footer .brand span{font-size:11px}.footer div{gap:15px;font-size:9px}.footer>a:last-child{display:none}dialog{padding:29px 22px}dialog h2{font-size:27px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}

/* Theme controls and complete surface/color overrides. */
:root{color-scheme:light;}
:root[data-theme="dark"]{color-scheme:dark;}
.header-actions{display:flex;align-items:center;gap:25px}
.theme-toggle{width:42px;height:42px;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:50%}
.theme-toggle:hover{background:var(--ink);color:var(--paper)}
.sun-icon{display:none}
[data-theme="dark"] .sun-icon{display:block}
[data-theme="dark"] .moon-icon{display:none}
[data-theme="dark"] .header .brand img,[data-theme="dark"] .footer .brand img{filter:brightness(0) invert(1)}
.hero-bottom p{color:var(--muted)}
.filters button.active,.details:hover{color:var(--paper)}
.capabilities{background:var(--surface-dark);color:var(--on-dark)}
.contact,.button{background:var(--accent-fill)}
[data-theme="dark"] .about-copy>p:not(.eyebrow),[data-theme="dark"] .project-caption .eyebrow{color:var(--muted)}
[data-theme="dark"] .portrait-frame{background:var(--surface)}
[data-theme="dark"] .project-image{background:var(--surface)}
@media(max-width:650px){.header-actions{gap:10px}.theme-toggle{width:36px;height:36px}.header nav{gap:13px}.header .nav-contact{gap:5px}}
@media(max-width:380px){.header nav{gap:10px}.header-actions{gap:8px}.header .brand{font-size:11px;gap:7px}.header .nav-contact{font-size:11px}}

.gallery-controls{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:22px;margin-top:45px}.gallery-controls p{font-size:12px;color:var(--muted);margin:0}.gallery-controls button{padding:14px 22px;background:transparent;color:var(--ink);border:1px solid var(--line);border-radius:99px;font-size:13px}.gallery-controls button:hover{background:var(--ink);color:var(--paper)}.gallery-controls button span{margin-left:17px}.gallery-controls button[hidden]{display:none}.details{color:inherit}

.details{display:grid;place-items:center;font-size:18px}.work-footer button.text-link{background:none;color:var(--ink);border:0;border-bottom:1px solid var(--ink);padding:0 0 7px}

/* Keep navigation available while browsing long project galleries. */

html{scroll-padding-top:136px}
.skip{z-index:100}
@media(max-width:650px){html{scroll-padding-top:104px}}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---- motion.css ---- */
/* Native same-origin transitions progressively enhance project navigation and Back. */
@view-transition{navigation:auto}
.header{view-transition-name:site-header}
::view-transition-group(root),::view-transition-group(site-header){animation:none}
::view-transition-group(root){overflow:hidden}
::view-transition-old(root){animation:none;opacity:0;mix-blend-mode:normal}
::view-transition-new(root){animation:page-in 150ms ease-out both;mix-blend-mode:normal}
::view-transition-old(site-header),::view-transition-new(site-header){animation:none;mix-blend-mode:normal}
@keyframes page-in{from{opacity:.88}to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
  .header nav a{position:relative;padding:5px 0}
  .header nav a::after{content:'';position:absolute;bottom:0;left:0;right:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform 180ms ease-out}
  .header nav a:hover::after,.header nav a:focus-visible::after{transform:scaleX(1)}
  .filters button,.theme-toggle,.details,.gallery-controls button{transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease}
}
@media(prefers-reduced-motion:reduce){
  @view-transition{navigation:none}
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
/* Progressive enhancement: content stays visible without JavaScript or observers. */
.reveal-pending{opacity:1}
@media(prefers-reduced-motion:reduce){.reveal-pending{opacity:1}}
/* Late-loading images fade in (class added by header.js). */
@media (prefers-reduced-motion: no-preference) {
  main img { transition: opacity 450ms ease; }
  main img.img-loading { opacity: 0; }
}

/* ---- ui-refinements.css ---- */
/* Shared navigation and portfolio refinements. */
.header-menu{display:flex;align-items:center;gap:36px;margin-left:auto;margin-right:26px}
.header nav,.header nav a,.header .nav-contact{align-items:center;line-height:1.2}
.header nav a{display:inline-flex;min-height:44px}
.header .nav-contact{display:inline-flex;gap:8px;white-space:nowrap;padding:12px 16px;border:1px solid var(--line);border-radius:99px}
.header .nav-contact span{font-size:18px;line-height:1}
.menu-toggle{display:none;color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:99px;min-height:44px;padding:10px 14px;font:inherit;font-size:13px}
.work{padding-top:56px}
.filters{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:4px;scrollbar-width:thin;scrollbar-color:var(--muted) var(--paper);overscroll-behavior-x:contain}
.filters button{flex:0 0 auto;min-height:44px}
.filters button span{opacity:1}
.project-image{padding:0;margin:0;background:var(--surface);display:flex;align-items:center;justify-content:center;border:1px solid var(--line)}
[data-theme="dark"] .project-image{background:var(--surface)}
.project-image img{object-fit:cover;max-width:100%;max-height:100%;border:0}
.image-arrow{box-shadow:0 2px 12px var(--shadow)}
.project-caption{align-items:flex-start}
.project-caption>div{width:100%}
.project-caption h3{line-height:1.3;min-height:2.6em;margin-bottom:0}
.portrait-frame,[data-theme="dark"] .portrait-frame{padding:14px;background:var(--surface);border:1px solid var(--border)}
.portrait-frame img{filter:brightness(1.08)}
.portrait-frame>span{left:26px;bottom:26px}
.about-facts{gap:48px}
.about-facts>div{flex:1}
.about-facts strong{font-size:32px;line-height:1.2}
.about-facts span{font-size:12px;line-height:1.5}
.footer,.footer p,.footer>div a{font-size:12px;color:var(--muted)}
.contact-bottom button,.contact-bottom p{color:var(--text)}
.contact-heading span{font-size:64px;right:20px;top:20px}
.contact-bottom>a{font-size:clamp(22px,2.4vw,32px);line-height:1.3}
button:focus-visible,a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
@media(max-width:1000px){.header-menu{gap:22px;margin-right:18px}.header nav{gap:22px}}
@media(max-width:800px){
 .header-menu{position:absolute;top:100%;left:0;right:0;margin:0;padding:20px 22px 24px;background:var(--paper);border-bottom:1px solid var(--line);box-shadow:0 10px 20px var(--shadow);display:none;align-items:flex-start;gap:20px;flex-direction:column}
 .header-menu.is-open{display:flex}
 .header nav{flex-direction:column;align-items:flex-start;gap:8px;width:100%;font-size:16px}
 .header nav a:last-child{display:inline-flex}
 .header .theme-toggle{width:44px;height:44px}
 .header-actions{gap:10px}
 .header .nav-contact{font-size:13px;padding:10px 13px;min-height:44px}
 .menu-toggle{display:inline-flex;align-items:center;gap:8px}
 .header .brand{font-size:13px;gap:9px}
 .header .brand img{width:25px;height:32px}
 #work,#about,#services,#contact{scroll-margin-top:104px}
}
@media(max-width:650px){
 .work{padding-top:40px}.project-image{padding:0}.project-caption h3{font-size:21px}
 .contact-heading span{font-size:40px;top:10px;right:0}
 .contact-bottom>a{font-size:22px;overflow-wrap:anywhere}
 .footer,.footer p,.footer>div a{font-size:12px}
 .about-facts{gap:20px}
}
@media(max-width:380px){.header .brand span{display:none}.header-actions{gap:8px}}

/* Full-bleed previews, purposeful hover feedback and desktop image controls. */
.project-image{border:0}
.header .nav-contact{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}
.header .nav-contact span{transition:transform 180ms ease}
.header .nav-contact:focus-visible{background:var(--ink);color:var(--paper);border-color:var(--ink)}
@media(hover:hover) and (pointer:fine){
 .header .nav-contact:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
 .header .nav-contact:hover span{transform:translate(2px,-2px)}
 .visual-open .enlarge-hint{opacity:0;transition:opacity 160ms ease;pointer-events:none}
 .visual-open:hover .enlarge-hint,.visual-open:focus-visible .enlarge-hint{opacity:1}
 .visual-open{cursor:zoom-in}
 input,textarea,[contenteditable="true"]{cursor:text}
 button:disabled{cursor:not-allowed}
}
@media(prefers-reduced-motion:reduce){
 .header .nav-contact,.header .nav-contact span,.visual-open .enlarge-hint{transition:none}
 .header .nav-contact:hover span{transform:none}
}
@media(max-width:800px){.visual-open .enlarge-hint{opacity:1}}
.project{border-radius:12px;overflow:hidden;background:var(--surface);transition:transform 350ms cubic-bezier(.22,1,.36,1)}
[data-theme="dark"] .project{background:var(--surface)}
.project-caption{padding:24px;gap:20px;align-items:center}
.project-caption>div{flex:1;min-width:0;width:auto}
.project-caption .eyebrow{line-height:1.5;min-height:1.5em}
.card-arrow{flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:23px;color:var(--ink)}
.project-image img{transition:opacity 350ms cubic-bezier(.22,1,.36,1);transform:none}
.project-image:not([data-thumbnail-type]):hover img{transform:none}
@media(hover:hover) and (pointer:fine){
 html,body{cursor:url("/assets/cursor-dot.svg") 12 12,auto}
 a,button,summary,[role="button"]{cursor:url("/assets/cursor-ring.svg") 16 16,pointer}
 .visual-open{cursor:zoom-in}
 .project:hover{transform:translateY(-4px)}
 .project:hover .project-image img{opacity:.8}
 .project:active{transform:translateY(-4px) scale(.99)}
}

@media(max-width:650px){.project-caption{padding:20px;gap:14px}}
@media(prefers-reduced-motion:reduce){
 .header,.project,.project-image img{transition:none}
 .project:hover,.project:active{transform:none}
}
/* Full-width divider, generous hero and selectable text cursors. */
.hero{display:flex;flex-direction:column;min-height:clamp(680px,calc(100svh - var(--header-h)),920px);padding-top:72px}
.hero-bottom{padding-bottom:64px}
.hero-strip{margin-top:auto}
@media(max-width:800px){.hero{min-height:clamp(600px,calc(90svh - 80px),800px);padding-top:48px}}
@media(max-width:650px){.hero{min-height:580px}.hero-bottom{padding-bottom:48px}}
@media(hover:hover) and (pointer:fine){
 p,h1,h2,h3,h4,h5,h6,li,dt,dd,blockquote,figcaption,.eyebrow,.hero-eyebrow,.hero-strip,.about-facts,.project-meta,.tool-tags,.contact-bottom p,.footer p{cursor:text;user-select:text}
 a,button,summary,[role="button"],a *,button *,summary *{cursor:url("/assets/cursor-ring.svg") 16 16,pointer}
 .visual-open,.visual-open *{cursor:zoom-in}
 input,textarea,[contenteditable="true"]{cursor:text}
 button:disabled,button:disabled *{cursor:not-allowed}
}
/* Centered introduction and interaction feedback throughout the portfolio. */
.hero{min-height:clamp(820px,calc(110svh - var(--header-h)),1100px);padding-top:88px}
.hero h1{text-align:center;width:100%;margin-top:60px}
.hero-eyebrow{justify-content:center;gap:32px;text-align:center}
.hero-bottom{flex-direction:column;align-items:center;gap:28px;text-align:center;padding-bottom:80px}
.hero-bottom p{max-width:730px}
.hero-intro-detail{display:block;max-width:660px;margin:20px auto 0;font-size:16px;line-height:1.75}
.hero .round-link{justify-content:center;margin-top:0}
.card-arrow{background:transparent;color:var(--ink);border-color:var(--line);transition:background-color 180ms ease,color 180ms ease,transform 180ms ease}

.card-arrow span{transition:transform 180ms ease}
.footer .back-to-top{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:22px;color:var(--ink);transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease}
.back-to-top span{display:block;transition:transform 180ms ease}
.contact-bottom button{transition:background-color 180ms ease,color 180ms ease,border-color 180ms ease,transform 180ms ease}
.footer .back-to-top:focus-visible{background:var(--ink);color:var(--paper);border-color:var(--ink)}

@media(hover:hover) and (pointer:fine){
 .project:hover .card-arrow{background:var(--ink);color:var(--paper);border-color:var(--ink)}
 [data-theme="dark"] .project:hover .card-arrow{background:var(--text);color:var(--bg);border-color:var(--text)}
 .project:hover .card-arrow span{transform:translate(2px,-2px)}
 .footer .back-to-top:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
 .back-to-top:hover span{transform:translateY(-3px)}
 .contact-bottom button:hover{background:var(--text);color:var(--aubergine);border-color:var(--text);transform:translateY(-2px)}
 .contact-bottom button:active{transform:translateY(0) scale(.98)}
}
@media(max-width:800px){.hero{min-height:760px;padding-top:64px}.hero h1{margin-top:48px}.hero-intro-detail{font-size:15px}}
@media(max-width:650px){
 .hero{min-height:720px;padding-top:54px}.hero h1{margin-top:40px}
 .hero-eyebrow{gap:16px}.hero-eyebrow span:last-child{text-align:center}
 .hero-bottom{padding-bottom:52px}.hero-intro-detail{font-size:14px}
 .footer .back-to-top{display:grid}
}
@media(prefers-reduced-motion:reduce){
 .card-arrow,.card-arrow span,.footer .back-to-top,.back-to-top span,.contact-bottom button{transition:none}
 .project:hover .card-arrow span,.back-to-top:hover span,.contact-bottom button:hover,.contact-bottom button:active{transform:none}
}
/* Keep the original left alignment; center the introduction vertically. */
.hero{padding-top:0}
.hero-content{flex:1;display:flex;flex-direction:column;justify-content:center;padding-block:64px}
.hero h1{text-align:left;margin:49px 0 38px}
.hero-eyebrow{justify-content:space-between;text-align:left;gap:18px}
.hero-bottom{flex-direction:row;align-items:flex-end;justify-content:space-between;text-align:left;gap:35px;padding-bottom:0}
.hero-bottom p{flex:1;min-width:0}
.hero-intro-detail{margin:20px 0 0}
.hero .round-link{flex:none;justify-content:space-between}
.hero-strip{margin-top:0}
@media(max-width:800px){.hero{padding-top:0}.hero-content{padding-block:54px}}
@media(max-width:650px){
 .hero{padding-top:0}.hero-content{padding-block:48px}
 .hero h1{margin:35px 0 30px}
 .hero-eyebrow span:last-child{text-align:right}
 .hero-bottom{display:block;padding-bottom:0}
 .hero .round-link{margin-top:29px;justify-content:space-between}
}

/* Contact heading arrow responds to the whole email action. */
.contact-heading>span{transition:transform 220ms cubic-bezier(.22,1,.36,1)}
.contact-heading:focus-visible>span{transform:translate(6px,-6px)}
.project:focus-within .card-arrow{background:var(--ink);color:var(--paper);border-color:var(--ink)}
@media(hover:hover) and (pointer:fine){.contact-heading:hover>span{transform:translate(6px,-6px)}}
@media(prefers-reduced-motion:reduce){.contact-heading>span{transition:none}.contact-heading:hover>span,.contact-heading:focus-visible>span{transform:none}}
/* Full-width, transform-driven glow with stationary header and strip fades. */
.hero{--hero-bg:var(--paper);position:relative;isolation:isolate;overflow:hidden;max-width:none;width:100%;background:var(--hero-bg)}
.hero-content,.hero-strip{width:100%;max-width:1252px;margin-inline:auto}


.hero::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(to bottom,var(--hero-bg) 0%,transparent 25%),linear-gradient(to bottom,transparent 65%,var(--hero-bg) 100%)}
.hero-grain{position:absolute;inset:0;z-index:-2;pointer-events:none;background:url("/assets/hero-grain.svg") repeat;background-size:256px 256px;mix-blend-mode:multiply;opacity:.13}
[data-theme="dark"] .hero-grain{mix-blend-mode:soft-light;opacity:.48}
@keyframes hero-drift{
 0%{transform:translate(0,0)}
 50%{transform:translate(20%,8%)}
 100%{transform:translate(35%,18%)}
}
@keyframes hero-drift-mobile{
 from{transform:translate(0,0)}
 to{transform:translate(20%,10%)}
}
@keyframes portrait-breathe{from{transform:scale(1)}to{transform:scale(1.025)}}
@media(prefers-reduced-motion:no-preference){.portrait-frame img{animation:portrait-breathe 16s ease-in-out infinite alternate;transform-origin:50% 45%}}
@media(max-width:640px){}
@media(prefers-reduced-motion:reduce){

 .portrait-frame img{animation:none;transform:none}
}

/* Align each arrow with its title, leaving category labels above that row. */
.project-caption{display:grid;grid-template-columns:minmax(0,1fr) 48px;column-gap:20px;row-gap:9px;align-items:center}
.project-caption>div{display:contents}
.project-caption .eyebrow{grid-column:1/-1;min-height:0;margin:0}
.project-caption h3{grid-column:1;grid-row:2;min-height:0;margin:0;line-height:1.3}
.project-caption .card-arrow{grid-column:2;grid-row:2;align-self:center;justify-self:end}

@media(min-width:801px){
 /* Header plus hero occupy one viewport; strip stays at hero's lower edge. */
 .hero{height:calc(100vh - var(--header-h));height:calc(100dvh - var(--header-h));min-height:0;padding-top:0;display:flex;flex-direction:column}
 .hero-content{flex:1;min-height:0;justify-content:center;padding-block:clamp(20px,4vh,56px)}
 .hero h1{font-size:clamp(60px,min(7.9vw,13vh),119px);margin-block:clamp(20px,4vh,49px) clamp(20px,3.5vh,38px)}
 .hero-strip{flex:0 0 auto;margin-top:auto;border-bottom:0;padding-block:22px}
 .work{border-top:0;padding-top:clamp(100px,9vw,160px);padding-bottom:clamp(110px,10vw,170px)}
 .work .section-top{margin-bottom:52px}
 .work .filters{margin-bottom:44px}
 .projects{row-gap:64px}
 .capabilities{padding-block:clamp(110px,10vw,160px)}
 .about{padding-block:clamp(120px,11vw,180px)}
 .contact{padding-top:clamp(100px,9vw,145px);padding-bottom:clamp(90px,8vw,130px)}
}
/* Intentional hover motion replaces the automatic portrait zoom. */
.portrait-frame img{animation:none;transform:scale(1);transition:transform 700ms cubic-bezier(.22,1,.36,1),filter 700ms ease}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .portrait-frame:hover img{transform:scale(1.055) rotate(-.6deg);filter:brightness(1.14)}
}
@media(prefers-reduced-motion:reduce){.portrait-frame img{animation:none;transition:none;transform:none}}

/* Inter Tight: loaded weights and proportional tracking across breakpoints. */
:root{--font:"Inter Tight",Arial,Helvetica,sans-serif}
body,button,input,select,textarea{font-family:var(--font)}
.hero h1,.project-heading h1,.contact-heading{letter-spacing:-.03em}
.section-top h2,.about h2,.case-overview h2,.case-row h2{font-weight:700;letter-spacing:-.025em}
.project-caption h3{font-weight:600;letter-spacing:-.02em}

/* Thumbnail artwork stays uncropped and readable at every screen size. */
.youtube-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 28px}
.youtube-gallery .project-visual{margin:0;min-width:0}
.thumbnail-caption{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding-top:16px;font-size:12px;line-height:1.5}
.thumbnail-caption strong{font-weight:600}.thumbnail-caption>span{color:var(--muted)}
@media(max-width:800px){.youtube-gallery{grid-template-columns:1fr;gap:32px}}

/* Selected collection and secondary archive. */
.archive-link{text-align:center;margin-top:48px;padding-top:32px;border-top:1px solid var(--line)}
.archive-link>p{font-size:13px;color:var(--muted);margin:0 0 18px}
.archive-link .text-link{display:inline-flex;align-items:center;gap:18px}
.archive-intro{padding-top:64px;padding-bottom:52px}
.archive-intro>.back-link{display:inline-block;margin-bottom:64px;font-size:13px}
.archive-intro h1{font-size:clamp(48px,7vw,88px);font-weight:600;line-height:1.05;letter-spacing:-.03em;margin:0}
.archive-intro .section-top{margin-bottom:0}
.archive-work{padding-bottom:110px}
@media(max-width:650px){.archive-intro{padding-top:36px;padding-bottom:40px}.archive-intro>.back-link{margin-bottom:44px}.archive-work{padding-bottom:65px}.archive-link{margin-top:36px}}

/* ---- link-interactions.css ---- */
/* Small, shared link interactions across both themes. */
.hero .round-link>span:first-child{position:relative;display:inline-block;transition:color 180ms ease}
.hero .round-link>span:first-child::after{content:"Explore selected work";display:block;font-weight:700;height:0;visibility:hidden;overflow:hidden}
.back-link{display:inline-block;transition:transform 200ms ease,color 200ms ease}
.project-cta>a{display:inline-block;position:relative;transition:color 200ms ease}
.work-together-arrow{display:inline-block;transition:transform 200ms ease}
.footer div a{display:inline-block;position:relative;padding-block:6px;transition:color 180ms ease}
.footer div a::after{content:"";position:absolute;left:0;right:0;bottom:1px;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform 220ms ease}
.hero .round-link:focus-visible>span:first-child{font-weight:700;color:var(--blue)}
.back-link:focus-visible{color:var(--blue);transform:translateX(-3px)}
.project-cta>a:focus-visible{color:var(--blue)}
.project-cta>a:focus-visible .work-together-arrow{transform:translate(4px,-4px)}
.footer div a:focus-visible{color:var(--blue)}
.footer div a:focus-visible::after{transform:scaleX(1)}
@media(hover:hover) and (pointer:fine){
 .hero .round-link:hover>span:first-child{font-weight:700;color:var(--blue)}
 .back-link:hover{color:var(--blue);transform:translateX(-3px)}
 .project-cta>a:hover{color:var(--blue)}
 .project-cta>a:hover .work-together-arrow{transform:translate(4px,-4px)}
 .footer div a:hover{color:var(--blue)}
 .footer div a:hover::after{transform:scaleX(1)}
}
@media(prefers-reduced-motion:reduce){
 .hero .round-link>span:first-child,.back-link,.project-cta>a,.work-together-arrow,.footer div a,.footer div a::after{transition:none}
 .back-link:hover,.back-link:focus-visible,.project-cta>a:hover .work-together-arrow,.project-cta>a:focus-visible .work-together-arrow{transform:none}
}

/* ---- site-refresh.css ---- */
/* Stronger text contrast and more varied editorial structure. */
:root{}
:root[data-theme="dark"]{}
.hero-bottom p,.about-copy>p:not(.eyebrow),[data-theme="dark"] .about-copy>p:not(.eyebrow),.process-grid p,.section-note,.case-text,.narrative-copy>p:not(.eyebrow),.narrative-copy ul,.steezy-copy>p:not(.eyebrow),.steezy-lede>p:last-child,.narrative-lede>p:last-child,.story-intro>p:last-child,.story-details ul,.project-meta,.case-facts dt,.archive-link>p{color:var(--body-copy)}
.footer,.footer p,.footer>div a,.about-facts span,.project-caption .eyebrow,[data-theme="dark"] .project-caption .eyebrow{color:var(--muted)}
.contact-bottom p,.contact-bottom button{color:var(--text);opacity:1}
.capabilities .services-intro,.capabilities .service-content p{color:var(--text-muted)}
.hero-eyebrow span:last-child{text-transform:none;letter-spacing:.05em;line-height:1.5}
.hero-bottom p{max-width:740px;font-size:18px;line-height:1.65}
.services-expanded .section-top>div{display:grid;grid-template-columns:1.1fr 1fr;gap:20px 70px;align-items:end;flex:1}.services-expanded .section-top .eyebrow{grid-column:1/-1;margin-bottom:0}.services-expanded .services-intro{margin:0}.services-expanded .service-mark{display:none}
.about .portrait-frame{align-self:stretch;min-height:520px;aspect-ratio:auto}.about .portrait-frame img{height:100%;width:100%;object-fit:cover}.about-copy .personal-line{padding-left:20px;border-left:2px solid var(--blue);font-size:14px;line-height:1.75}
@media(min-width:801px){.hero h1{font-size:clamp(58px,min(7.5vw,12vh),112px)}.hero-content{padding-block:clamp(20px,3vh,45px)}}
@media(max-width:1000px){.services-expanded .section-top>div{gap:20px 35px}.hero-bottom p{font-size:17px}}
@media(max-width:800px){.header .menu-toggle{display:grid;place-items:center;width:44px;height:44px;min-width:44px;padding:0;border-radius:50%}.menu-icon path{transform-box:fill-box;transform-origin:center;transition:transform 180ms ease}.menu-toggle[aria-expanded="true"] .menu-icon path:first-child{transform:translateY(4px) rotate(45deg)}.menu-toggle[aria-expanded="true"] .menu-icon path:last-child{transform:translateY(-4px) rotate(-45deg)}.header .nav-contact{background:var(--rust);color:var(--text);border-color:var(--rust);font-weight:700}.header .nav-contact:hover,.header .nav-contact:focus-visible{background:var(--rust-hover);color:var(--text);border-color:var(--rust-hover)}[data-theme="dark"] .header .nav-contact{background:var(--on-rust);color:var(--on-rust);border-color:var(--on-rust)}.hero{min-height:760px}.hero-bottom p{font-size:16px;line-height:1.7}.hero-eyebrow{align-items:start}.hero-eyebrow span:last-child{max-width:210px}.services-expanded .section-top>div{grid-template-columns:1fr;gap:22px}.about .portrait-frame{min-height:0;max-height:none;aspect-ratio:1}.about .portrait-frame img{height:100%}}
@media(max-width:380px){.header-actions{gap:8px}.header .nav-contact{padding-inline:12px}.hero h1{font-size:11.5vw;letter-spacing:-.03em}.hero-eyebrow{gap:12px}.hero-eyebrow span:last-child{max-width:175px}.about-facts{gap:22px}}
@media(prefers-reduced-motion:reduce){.menu-icon path{transition:none}.hero::before,.portrait-frame img{animation:none}}

/* ---- palette.css ---- */
/* Part A — Shared theme tokens */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #101C18; --surface: #182A24; --border: #2E433B;
  --text: #F2EDE4; --text-muted: #A8B5AE;
  --teal: #4A9A92; --rust: #E2603A; --rust-hover: #EC7550;
  --on-rust: #101C18; --aubergine: #3B2A26; --arch: #182A24;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F4EFE6; --surface: #EBE4D8; --border: #D6CDBD;
  --text: #13241E; --text-muted: #4E5C55;
  --teal: #2E6E68; --rust: #B5431F; --rust-hover: #9E3A1A;
  --on-rust: #F4EFE6; --aubergine: #3B2A26; --arch: #13241E;
}
:root { --footer-text: #F2EDE4; --footer-muted: #D2C4BD; --footer-line: #6E5A52; --shadow: color-mix(in srgb, var(--text) 12%, transparent); --scrim: color-mix(in srgb, var(--arch) 93%, transparent); }
:root, :root[data-theme="dark"] {
  --paper: var(--bg); --ink: var(--text); --line: var(--border);
  --muted: var(--text-muted); --body-copy: var(--text-muted);
  --blue: var(--teal); --surface-dark: var(--surface); --on-dark: var(--text);
  --accent-fill: var(--surface);
}
.header .header-actions .nav-contact {
  background: var(--rust);
  color: var(--on-rust);
  border: 0;
}
.header .header-actions .nav-contact:is(:hover,:focus-visible) {
  background: var(--rust-hover);
  color: var(--on-rust);
}
.header .nav-contact span { color: inherit; }
.filters button { border-color: var(--border); }
.filters button:not(.active):hover { border-color: var(--rust); color: var(--text); }
.filters button.active { background: var(--rust); color: var(--on-rust); border-color: var(--rust); }
.filters button.active span { color: inherit; }
@media (prefers-reduced-motion: no-preference) {
  .filters button { transition: border-color 200ms ease, color 200ms ease; }
}
@media (width < 768px) {
  .filters {
    scroll-snap-type: x proximity;
    scroll-padding-inline: 4px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { scroll-snap-align: start; }
  .filters.has-more:not(:focus-within) {
    -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
    mask-image: linear-gradient(to right, #000 85%, transparent);
  }
}
:is(.about-copy, .project-story, .case-text, .narrative-copy, .steezy-copy, .service-content) p a { color: var(--teal); }
:is(.about-copy, .project-story, .case-text, .narrative-copy, .steezy-copy, .service-content) p a:hover { text-decoration: underline; }
.contact, body > footer {
  --text: var(--footer-text); --text-muted: var(--footer-muted);
  --ink: var(--text); --muted: var(--text-muted);
  --border: var(--footer-line); --line: var(--border);
  background: var(--aubergine);
  color: var(--text);
}
.contact {
  --contact-glow: 226, 96, 58;
  --contact-glow-opacity: 0.30;
  background: radial-gradient(circle at 92% 100%, rgba(var(--contact-glow), var(--contact-glow-opacity)) 0%, rgba(var(--contact-glow), 0) 50%), var(--aubergine);
}
:root[data-theme="light"] .contact {
  --contact-glow: 181, 67, 31;
  --contact-glow-opacity: 0.22;
}
.contact .contact-bottom .contact-resume:not(:hover, :focus-visible) { border-color: var(--footer-line); }
.contact :is(.eyebrow, p, a, button), body > footer a:is(:hover,:focus-visible) { color: var(--text); }
.contact .contact-bottom button:is(:hover,:focus-visible) { background: var(--text); color: var(--aubergine); border-color: var(--text); }
:is(a, button, summary, input, select, textarea, [tabindex]):focus-visible,
:is(.viewer-toolbar, .viewer-navigation) button:focus-visible,
.services-expanded summary:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .header .nav-contact, .project .project-image {
    transition: color 180ms, background-color 180ms, border-color 180ms;
  }
}
body > footer { box-shadow: 0 0 0 100vmax var(--aubergine); clip-path: inset(0 -100vmax); }
.portrait-play:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

.header nav[aria-label="Main navigation"] a { color: var(--text-muted); transition: color 180ms; }
.header nav[aria-label="Main navigation"] a:is([aria-current], :hover, :focus-visible) { color: var(--text); }
.header nav[aria-label="Main navigation"] a svg { margin-inline-start: 4px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .header nav[aria-label="Main navigation"] a { transition: none; }
}

.contact :focus-visible, body > footer :focus-visible { outline-color: var(--text); }

/* ---- about.css ---- */
/* About, homepage teaser and shared contact band */
:root { --about-accent-text: color-mix(in srgb, var(--rust) 80%, var(--text)); }
.about-page-content { display: grid; gap: 112px; padding-block: 80px 112px; }
.about-intro { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-arch { width: 100%; aspect-ratio: 420 / 500; border-radius: 50% 50% 0 0 / 42% 42% 0 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--rust) 30%, transparent); background: var(--surface); }
.about-arch img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.about-label { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: var(--text-muted); }
.about-intro h1 { font-size: clamp(48px, 6vw, 72px); font-weight: 600; letter-spacing: -.045em; line-height: 1; margin: 0 0 23px; }
.about-intro h1 span:not(.about-period) { color: var(--teal); }
.about-period { color: var(--rust); }
.about-intro-text > p:not(.about-label) { color: var(--text-muted); font-size: 18px; line-height: 1.6; margin: 0 0 16px; }
.about-facts { display: flex; flex-wrap: wrap; gap: 18px 32px; margin: 28px 0 0; }
.about-facts dt { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.about-facts dd { margin: 5px 0 0; font-size: 14px; color: var(--text-muted); }
.about-steps, .about-experience { margin: 0; padding: 0; list-style: none; }
.about-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.about-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.about-step-number { color: var(--about-accent-text); font-size: 13px; font-weight: 600; }
.about-steps h3 { margin: 13px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.about-steps p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.5; }
.about-columns { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 24px; align-items: start; }
.about-columns > .about-label { margin: 0; }
.about-off-note { max-width: 640px; margin: 0; color: var(--text-muted); font-size: 18px; line-height: 1.6; }
.about-photo-strip { margin-top: 32px; display: grid; grid-template-columns: 1.3fr repeat(4,1fr); gap: 14px; }
.about-photo-strip figure { min-width: 0; margin: 0; }
.about-photo-strip img { display: block; width: 100%; height: 240px; object-fit: cover; border-radius: 12px; filter: saturate(.9) sepia(.08); }
.about-photo-chloe-hike img { object-position: center 35%; }
.about-photo-chloe-box img { object-position: center 35%; }
.about-photo-strip figcaption { margin-top: 8px; color: var(--text-muted); font-size: 13px; }
.portfolio-cta { background: var(--aubergine); color: var(--footer-text); padding: 96px 0; }
.portfolio-cta-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.portfolio-cta-grid:not(:has(.portfolio-testimonial)) { grid-template-columns: minmax(0,520px); justify-content: center; text-align: center; }
.portfolio-testimonial { margin: 0; font-size: 28px; font-weight: 500; }
.portfolio-testimonial cite { display: block; margin-top: 16px; font-size: 14px; font-style: normal; color: var(--footer-muted); }
.portfolio-availability { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 14px; }
.portfolio-availability span { width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }
.portfolio-cta h2 { margin: 0; color: inherit; font-size: clamp(34px,5vw,44px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; }
.portfolio-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.portfolio-cta-grid:not(:has(.portfolio-testimonial)) .portfolio-cta-actions { justify-content: center; }
.portfolio-button { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 0 17px; border: 1px solid var(--border); border-radius: 999px; font-size: 14px; font-weight: 600; transition: border-color 180ms, background-color 180ms, color 180ms; }
.portfolio-cta .portfolio-button { border-color: color-mix(in srgb, var(--footer-text) 45%, transparent); }
.portfolio-button:hover, .portfolio-cta .portfolio-button:hover { border-color: var(--rust); }
.portfolio-cta .portfolio-button-primary { background: var(--rust); color: var(--on-rust); border-color: transparent; }
.portfolio-cta .portfolio-button-primary:hover { background: var(--rust-hover); border-color: transparent; }
.about-teaser-wrap { margin-block: 32px 80px; }
.about-teaser { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 96px; padding-block: 64px; }
.about-teaser-copy { max-width: 680px; margin: 0 0 18px; font-size: clamp(24px,3.3vw,32px); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.about-facts-stacked { display: grid; margin: 0; }
.home-gallery-controls { justify-content: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.work-all #work-title { margin: 0; font-size: clamp(42px,7vw,82px); line-height: 1; letter-spacing: -.045em; }
@media (max-width: 800px) {
  .about-page-content { gap: 72px; padding-block: 42px 72px; }
  .about-intro, .about-columns, .about-steps, .about-teaser, .portfolio-cta-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .about-intro { gap: 32px; }
  .about-portrait { width: min(280px,100%); justify-self: center; }
  .about-facts { column-gap: 20px; }
  .about-photo-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 75%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
  .about-photo-strip figure { scroll-snap-align: start; }
  .portfolio-cta { padding-block: 64px; }
  .about-teaser { padding-block: 40px; gap: 28px; }
  .about-teaser-wrap { margin-bottom: 56px; }
  .about-facts-stacked { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-button { transition: none; }
}

/* Homepage About teaser */
.about-teaser-wrap { margin-block: 64px 80px; }
.about-teaser {
  grid-template-columns: minmax(0,1fr) minmax(190px, .35fr);
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(24px, 5vw, 68px);
  border-radius: 24px;
  background: var(--about-surface-background, var(--surface));
}
.about-teaser .about-label { color: var(--about-accent-text); }
.about-teaser h2 {
  max-width: 13ch;
  margin: 0 0 20px;
  font-size: clamp(36px, 5.4vw, 72px);
  line-height: .99;
  letter-spacing: -.05em;
}
.about-teaser h2 span:not(.about-period) { color: var(--teal); }
.about-teaser .about-teaser-copy {
  max-width: 57ch;
  font-size: clamp(16px, 1.8vw, 21px);
  line-height: 1.55;
  letter-spacing: -.01em;
  color: var(--text-muted);
}
.about-teaser .about-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-inline: 20px;
  border: 1px solid var(--rust);
  border-radius: 999px;
  color: var(--rust);
  font-size: 14px;
  font-weight: 600;
  transition: background-color 200ms ease, color 200ms ease;
}
.about-teaser .about-more:is(:hover, :focus-visible) {
  background-color: var(--rust);
  color: var(--on-rust);
}
.about-teaser .about-facts-stacked {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.about-teaser .about-facts-stacked > div { padding-block: 20px; }
.about-teaser .about-facts-stacked > div + div { border-top: 1px solid var(--border); }
.about-teaser .about-facts-stacked dt { color: var(--text); font-size: 32px; }
@media (max-width: 800px) {
  .about-teaser-wrap { margin-block: 40px 56px; }
  .about-teaser { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .about-teaser .about-more { transition: none; }
}

/* Keep the About card and process section visually connected. */
.about-teaser-wrap { margin-block-end: clamp(24px, 3.5vw, 42px); }
.about-teaser { padding-block-end: clamp(24px, 3.8vw, 48px); }
.about-teaser-wrap + .process { padding-block-start: clamp(24px, 3vw, 38px); }

/* About page résumé details. */
.about-intro .about-intro-stats {
  display: grid;
  grid-template-columns: 1fr .85fr 1.5fr;
  gap: 0;
}
.about-intro-stats > div + div { border-inline-start: 1px solid var(--border); }
.about-intro-stats > div { min-width: 0; padding-inline: clamp(10px, 1.4vw, 20px); }
.about-intro-stats > div:first-child { padding-inline-start: 0; }
.about-intro-stats > div:last-child { padding-inline-end: 0; }
.about-intro-stats dt { color: var(--text); font-size: 32px; font-weight: 600; }
.about-intro-stats dd { color: var(--text-muted); font-size: 14px; }

.about-testimonial { margin: 0; }
.about-testimonial blockquote { margin: 0; font-size: 28px; font-weight: 500; }
.about-testimonial blockquote p { margin: 0; }
.about-testimonial figcaption { margin-top: 12px; color: var(--text-muted); font-size: 14px; }


/* Keep the process numerals readable on the light card surface. */
[data-theme="light"] .about-page-content .about-step-number { color: var(--rust-hover); }

/* Full-width experience, education and toolkit. */
.about-career { display: grid; gap: clamp(52px, 7vw, 88px); }
.about-career-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-block-end: 24px;
}
.about-career-heading .about-label { margin-block-end: 8px; }
.about-career-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
}
.about-career-resume {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 20px;
  border: 1px solid var(--rust);
  border-radius: 999px;
  color: var(--rust);
  font-size: 14px;
  font-weight: 600;
}
.about-career-resume:is(:hover, :focus-visible) {
  background-color: var(--rust);
  color: var(--on-rust);
}
.about-experience {
  --career-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr);
  display: grid;
  grid-template-columns: var(--career-columns);
  column-gap: 40px;
}
.about-experience > li {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: var(--career-columns);
  column-gap: 40px;
  align-items: start;
  padding-block: 28px;
  border-top: 1px solid var(--border);
}
@supports (grid-template-columns: subgrid) {
  .about-experience > li { grid-template-columns: subgrid; }
}
.about-career-years, .about-career-position span {
  color: var(--text-muted);
  font-size: 14px;
}
.about-career-years { font-variant-numeric: tabular-nums; }
.about-career-position { display: grid; gap: 5px; }
.about-career-position strong { color: var(--text); font-size: 19px; font-weight: 600; }
.about-job-description {
  max-width: 52ch;
  margin: 0;
  color: var(--career-description, var(--text-muted));
  font-size: 15px;
  line-height: 1.6;
}
[data-theme="dark"] .about-career { --career-description: #C9CFC9; }

.about-toolkit-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-block-start: 28px;
  border-top: 1px solid var(--border);
}
.about-toolkit-groups h3 { margin: 0 0 8px; color: var(--rust); font-size: 13px; font-weight: 600; }
.about-toolkit-groups p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.7; }


@media (max-width: 767px) {
  .about-experience { --career-columns: minmax(0, 1fr); }
  .about-experience > li { row-gap: 8px; }
}
@media (max-width: 880px) {
  .about-toolkit-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .about-toolkit-groups { grid-template-columns: minmax(0, 1fr); }
}

/* Trail elevation line: a nod to the ultra trail running, drawn left to right. */
.trail-line {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  color: var(--teal);
}
.trail-line svg { display: block; width: 100%; height: clamp(48px, 6vw, 72px); overflow: visible; }
.trail-line .trail-path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.trail-line .trail-finish {
  position: absolute;
  right: 0;
  top: calc(clamp(48px, 6vw, 72px) * .6875);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rust);
  transform: translate(50%, -50%);
}
.trail-line figcaption {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.trail-line.is-waiting .trail-path { stroke-dashoffset: 1; }
.trail-line.is-waiting .trail-area,
.trail-line.is-waiting .trail-finish { opacity: 0; }
.trail-line.is-waiting.is-drawn .trail-path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.45, 0, .2, 1); }
.trail-line.is-waiting.is-drawn .trail-area { opacity: 1; transition: opacity .8s ease 1.4s; }
.trail-line.is-waiting.is-drawn .trail-finish { opacity: 1; transition: opacity .3s ease 2.1s; }

/* Results in the experience timeline */
.about-job-description .about-metric { color: var(--teal); font-weight: 700; }
.about-job-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}
.about-job-description .about-job-link { display: flex; width: fit-content; }
.about-job-link:is(:hover, :focus-visible) { color: var(--rust); border-color: var(--rust); }

/* Off the clock: photos lift on hover, Chloe has a word */
.about-photo-strip figure { position: relative; }
.about-photo-strip img { transition: transform 320ms cubic-bezier(.22, 1, .36, 1), filter 320ms ease, box-shadow 320ms ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-photo-strip figure:nth-child(odd):hover img { transform: translateY(-6px) rotate(-1.5deg); }
  .about-photo-strip figure:nth-child(even):hover img { transform: translateY(-6px) rotate(1.5deg); }
  .about-photo-strip figure:hover img { filter: none; box-shadow: 0 18px 30px rgba(0, 0, 0, .35); }
}
.about-photo-strip figure:hover figcaption { color: var(--text); }
.chloe-bubble {
  position: absolute;
  top: 12px;
  left: 50%;
  z-index: 1;
  width: max-content;
  max-width: 90%;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px) scale(.9);
  transform-origin: bottom left;
  transition: opacity 200ms ease, transform 260ms cubic-bezier(.34, 1.56, .64, 1);
}
.about-photo-chloe-box { cursor: pointer; }
.about-photo-chloe-box:hover .chloe-bubble,
.about-photo-chloe-box.is-talking .chloe-bubble { opacity: 1; transform: translate(-50%, 0) scale(1); }
@media (prefers-reduced-motion: reduce) { .chloe-bubble { transition: opacity 120ms ease; transform: translate(-50%, 0); } }

/* Keep stat numbers evenly spaced */
.about-intro-stats dt { font-variant-numeric: tabular-nums; }

/* Portrait hover: slow zoom that follows the mouse, an arch outline, and a caption. */
.about-portrait { position: relative; isolation: isolate; margin: 0; }
.about-arch-line {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  border: 1.5px solid var(--teal);
  border-radius: 50% 50% 0 0 / 42% 42% 0 0;
  opacity: .45;
  transform: translate(10px, 10px);
}
.about-arch-caption {
  position: absolute; left: 50%; bottom: 16px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, #101C18 72%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #F2EDE4; font-size: 13px; line-height: 1.2; white-space: nowrap;
  transform: translateX(-50%);
}
.about-arch-caption > span { width: 7px; height: 7px; border-radius: 50%; background: var(--rust); flex: none; }
@media (hover: hover) {
  .about-arch-caption { opacity: 0; transform: translate(-50%, 6px); }
  .about-portrait:hover .about-arch-caption { opacity: 1; transform: translateX(-50%); }
  .about-portrait:hover .about-arch-line { opacity: 1; border-color: var(--rust); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .about-arch img { transition: opacity .45s ease, transform 900ms cubic-bezier(.22,1,.36,1); }
  .about-portrait:hover .about-arch img {
    transform: scale(1.06) translate(var(--look-x, 0px), var(--look-y, 0px));
  }
  .about-arch-line { transition: transform 500ms cubic-bezier(.22,1,.36,1), opacity 300ms ease, border-color 300ms ease; }
  .about-portrait:hover .about-arch-line { transform: translate(18px, 18px); }
  .about-arch-caption { transition: opacity 300ms ease 120ms, transform 400ms cubic-bezier(.22,1,.36,1) 120ms; }
}
@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .about-portrait:hover .about-arch-caption { transform: translateX(-50%); }
}

/* Toolkit as pills; daily drivers stand out. */
.about-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.about-tools li {
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted); font-size: 14px; line-height: 1.3; white-space: nowrap;
}
.about-tools li.is-main {
  display: inline-flex; align-items: center; gap: 7px;
  border-color: color-mix(in srgb, var(--teal) 55%, transparent);
  background: color-mix(in srgb, var(--teal) 16%, var(--surface));
  color: var(--text); font-weight: 600;
}
.about-tools li.is-main::before, .about-tools-key > span {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none;
}
.about-tools-key { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-muted); font-size: 13px; }
.about-toolkit-groups h3 { margin-block-end: 12px; }

/* Working with me: quick answers before someone gets in touch. */
.about-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.about-faq > div { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 26px 28px; }
.about-faq dt { margin: 0 0 8px; color: var(--text); font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.about-faq dd { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.6; }
.about-faq a { color: var(--text); text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 3px; }
.about-faq a:is(:hover, :focus-visible) { color: var(--rust); }
@media (max-width: 767px) {
  .about-faq { grid-template-columns: minmax(0, 1fr); }
  .about-faq > div { padding: 22px; }
}

/* Phones: the three stats become tidy rows (value left, label right-aligned) instead of squeezed columns. */
@media (max-width: 600px) {
  .about-intro .about-intro-stats { grid-template-columns: minmax(0, 1fr); }
  .about-intro-stats > div,
  .about-intro-stats > div:first-child,
  .about-intro-stats > div:last-child {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: baseline;
    column-gap: 16px;
    padding: 14px 0;
  }
  .about-intro-stats > div + div { border-inline-start: 0; border-block-start: 1px solid var(--border); }
  .about-intro-stats dt { font-size: 26px; line-height: 1.1; white-space: nowrap; }
  .about-intro-stats dd { margin: 0; font-size: 14px; line-height: 1.4; text-align: right; }
}

/* Other interests under "Off the clock", using the same pills as the Toolkit. */
.about-hobbies { margin: 18px 0 0; }

/* ---- project-thumbnails.css ---- */
/* A shared stage; all framing and shadows are drawn in CSS. */
.projects .project > .project-image[data-thumbnail-type] {
  display: grid;
  place-items: center;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  container-type: inline-size;
  aspect-ratio: 4 / 3;
  border-radius: 11px 11px 0 0;
  padding: 6%;
  background: radial-gradient(ellipse 70% 60% at 50% 35%, #24392F, #182A24 70%);
}
.projects .project > .project-image[data-thumbnail-type="full-bleed"] {
  padding: 0;
  overflow: hidden;
  background: none;
}
.project-image[data-thumbnail-type="full-bleed"] :is(.thumbnail-content, .thumbnail-panel) {
  width: 100%;
  height: 100%;
}
.projects .project > .project-image[data-thumbnail-type="full-bleed"] img {
  object-fit: cover;
}
.thumbnail-content {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  transition: transform 350ms ease;
}
.thumbnail-panel { display: block; min-width: 0; overflow: hidden; }
.projects .project > .project-image[data-thumbnail-type] img {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: none;
  transition: none;
}
[data-thumbnail-type="device"] .thumbnail-content {
  position: relative;
  width: 92%;
  padding-bottom: 12px;
  filter: drop-shadow(0 24px 32px rgba(0, 0, 0, .45));
}
[data-thumbnail-type="device"] .thumbnail-panel {
  width: 100%;
  padding: 7px;
  border-radius: 12px 12px 0 0;
  background: #0B0F0E;
}
.projects .project > [data-thumbnail-type="device"] img {
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}
[data-thumbnail-type="device"] .thumbnail-content::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -6%;
  width: 112%;
  height: 12px;
  border-radius: 2px 2px 48% 48% / 2px 2px 90% 90%;
  background: linear-gradient(to bottom, #E4E7E6, #ADB4B1);
}
[data-thumbnail-type="three-up"] .thumbnail-content {
  height: 100%;
  gap: 4%;
}
[data-thumbnail-type="three-up"] .thumbnail-panel {
  flex: none;
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .4);
}
.projects .project > [data-thumbnail-type="three-up"] img {
  height: auto;
}
[data-thumbnail-layout="portrait"] .thumbnail-panel {
  /* Keep a common height, capping it when wider artwork would clip. */
  height: min(80%, calc(92cqw / var(--thumbnail-ratio-sum)));
}
.projects .project > [data-thumbnail-layout="portrait"] img {
  width: auto;
  height: 100%;
  max-width: none;
}
[data-thumbnail-layout="square"] .thumbnail-panel { width: 30%; }
[data-thumbnail-layout="landscape"] .thumbnail-panel { width: 46%; }
[data-thumbnail-type="inset"] .thumbnail-panel {
  flex: 0 0 90%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .28);
}
.projects .project > [data-thumbnail-type="inset"] img { object-fit: contain; }
.projects .project {
  --project-hover-surface: #1E322B;
  background: var(--surface);
  border: 0;
  transition: background-color 250ms ease;
}
:root[data-theme="light"] .projects .project { --project-hover-surface: #E6DECF; }
.projects .project .project-caption h3 { transition: transform 250ms ease; }
.projects .project:focus-within { background-color: var(--project-hover-surface); }
.projects .project:focus-within .thumbnail-content { transform: scale(1.03); }
.projects .project:focus-within .project-caption h3 { transform: translateX(3px); }
.projects .project:focus-within .card-arrow {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--on-rust);
}
.projects .project:has(> .project-image:focus-visible) { overflow: visible; }
.projects .project a:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .projects .project:hover { transform: none; background-color: var(--project-hover-surface); }
  .projects .project:hover .thumbnail-content { transform: scale(1.03); }
  .projects .project:hover .project-caption h3 { transform: translateX(3px); }
  .projects .project:hover .card-arrow {
    background: var(--rust);
    border-color: var(--rust);
    color: var(--on-rust);
  }
}

/* Move the scroll cue into the Explore button itself. */
.arch-cta .arch-cta-icon {
  overflow: hidden;
  transition: background-color 200ms ease, color 200ms ease;
}
@media (prefers-reduced-motion: no-preference) {
  .arch-cta-icon svg { animation: explore-arrow-slide 2.4s ease-in-out infinite; }
  .arch-cta:is(:hover, :focus-within) .arch-cta-icon svg { animation: none; }
}
@keyframes explore-arrow-slide {
  0%, 18%, 74%, 100% { transform: translateY(0); opacity: 1; }
  40% { transform: translateY(14px); opacity: 0; }
  41% { transform: translateY(-14px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .thumbnail-content, .projects .project .project-caption h3,
  .arch-cta .arch-cta-icon { transition: none; }
  .projects .project:is(:hover, :focus-within) :is(.thumbnail-content, .project-caption h3) { transform: none; }
}

/* Archive: a single finished mockup, framed on the same stage as the main gallery. */
[data-thumbnail-type="framed"] .thumbnail-content { height: 100%; }
[data-thumbnail-type="framed"] .thumbnail-panel {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, .4);
}
.projects .project > [data-thumbnail-type="framed"] img { object-fit: cover; }

/* One-line project summary under each card title */
.project-caption h3:has(+ .project-summary) { min-height: 0; }
.project-summary {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- brand.css ---- */
/* Shared site header, including homepage spacing and sticky behavior. */
:root {
  --header-h: 90px;
  --about-surface-background: radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 65%), var(--surface);
  --site-strip-text: var(--text);
  --site-strip-muted: var(--text-muted);
  --site-strip-border: var(--border);
  --site-header-desktop-inset: clamp(24px, 9.3vw, 136px);
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  height: var(--header-h);
  padding-inline: var(--site-header-desktop-inset);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.header.is-scrolled {
  background-color: var(--bg);
  border-bottom-color: var(--border);
}
@media (width < 768px) {
  /* Keep the current mobile header height in sync with sticky offsets. */
  :root { --header-h: 90px; }
  .header { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .header { transition: none; }
}

.header .brand,
.footer .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 18px/1.15 "Inter Tight", Arial, sans-serif;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.header .brand img {
  width: auto;
  height: 28px;
  flex: none;
}
.footer .brand { color: var(--text); font-size: 15px; }
.footer .brand span { font-size: inherit; }

@media (width < 768px) {
  .header { gap: 8px; }
  .header .brand { flex: none; gap: 8px; font-size: 14px; }
  .header .brand img { height: 26px; }
  .header .brand span { display: inline; }
  .header .menu-toggle {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
  }
  .header .menu-toggle[aria-expanded="true"] .menu-icon path:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .header .menu-toggle[aria-expanded="true"] .menu-icon path:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
}
@media (768px <= width <= 800px) {
  .header .menu-toggle { display: none; }
  .header .header-menu {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    margin: 0 12px 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .header .header-menu nav {
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    font-size: 14px;
  }
}

@media (width <= 380px) {
  .header .brand { gap: 6px; font-size: 13px; }
  .header .brand img { height: 22px; }
  .header :is(.btn-glow--sm, .header-cta-spacer) { --btn-glow-padding: 10px; }
}

/* Match the About teaser while preserving the footer's content inset. */
body > footer.footer {
  --text: var(--site-strip-text);
  --text-muted: var(--site-strip-muted);
  --border: var(--site-strip-border);
  --ink: var(--text);
  --muted: var(--text-muted);
  --line: var(--border);
  --paper: var(--surface);
  max-width: none;
  background: #101C18;
  box-shadow: none;
  clip-path: none;
}
@media (min-width: 1380px) {
  body > footer.footer { padding-inline: calc((100% - 1380px) / 2 + 64px); }
}
body > footer.footer .brand img { filter: brightness(0) invert(1); }
:root[data-theme="light"] body > footer.footer { background: var(--about-surface-background); }
:root[data-theme="light"] body > footer.footer .brand img { filter: brightness(0); }

/* ---- cta-glow.css ---- */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --arc {
  syntax: "<angle>";
  initial-value: 100deg;
  inherits: false;
}
.btn-glow {
  --arc: 100deg;
  --btn-glow-duration: 4s;
  --btn-glow-halo-inset: -6px;
  --btn-glow-halo-blur: 14px;
  --btn-glow-halo-opacity: .55;
  --btn-glow-halo-hover: .8;
  --btn-glow-height: 54px;
  --btn-glow-padding: 28px;
  --btn-glow-font-size: 16px;
  --btn-glow-surface: linear-gradient(#1E302A, #101C18);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  white-space: nowrap;
  padding: 1px;
  border-radius: 999px;
  --btn-glow-gradient: conic-gradient(from var(--angle, 0deg),
    transparent 0deg,
    transparent calc(360deg - var(--arc)),
    #E2603A calc(360deg - var(--arc) * 0.35),
    #FFB08F 360deg);
  box-shadow: inset 0 0 0 1px transparent;
  transition: --arc 500ms cubic-bezier(.2,.7,.2,1), box-shadow 300ms ease;
  animation: glow-spin var(--btn-glow-duration) linear infinite;
}
.btn-glow > .btn-glow-light {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background-image: var(--btn-glow-gradient);
  opacity: 1;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.btn-glow::before {
  content: "";
  position: absolute;
  inset: var(--btn-glow-halo-inset);
  z-index: -2;
  border-radius: inherit;
  background-image: var(--btn-glow-gradient);
  filter: blur(var(--btn-glow-halo-blur));
  opacity: var(--btn-glow-halo-opacity);
  transition: opacity 300ms ease;
  pointer-events: none;
}
.btn-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  padding: 1px;
  background-image: linear-gradient(135deg, #FFB08F, #E2603A 55%, #C2472A);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 250ms ease;
  pointer-events: none;
}
.btn-glow > .btn-glow-label {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-glow-height);
  padding: 0 var(--btn-glow-padding);
  border-radius: inherit;
  background: var(--btn-glow-surface);
  color: var(--footer-text, #F2EDE4);
  font-size: var(--btn-glow-font-size);
  font-weight: 600;
}
.btn-glow > .btn-glow-label::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(#24392F, #14231E);
  opacity: 0;
  transition: opacity 200ms ease;
}
.btn-glow:is(:hover, :focus-visible) { --arc: 360deg; }
.btn-glow:is(:hover, :focus-visible)::after { opacity: 1; transition-delay: 300ms; }
@media (prefers-reduced-motion: no-preference) {
  .btn-glow:hover::before { opacity: var(--btn-glow-halo-hover); }
  .btn-glow.is-paused { box-shadow: inset 0 0 0 1px rgba(226, 96, 58, .35); }
  .btn-glow.is-paused::before,
  .btn-glow.is-paused > .btn-glow-light { opacity: 0; }
  /* Let the outgoing light finish fading before the next one appears. */
  .btn-glow[data-glow-coordinated]:not(.is-paused)::before,
  .btn-glow[data-glow-coordinated]:not(.is-paused) > .btn-glow-light { transition-delay: 300ms; }
}
.btn-glow:is(:hover, :focus-visible) > .btn-glow-label::before { opacity: 1; }
:root[data-theme="light"] .btn-glow { --btn-glow-surface: #13241E; }

.contact .btn-glow { margin-block-start: 24px; }
.btn-glow--sm, .header-cta-spacer {
  --btn-glow-duration: 6s;
  --btn-glow-halo-inset: -4px;
  --btn-glow-halo-blur: 10px;
  --btn-glow-halo-opacity: .35;
  --btn-glow-halo-hover: .6;
  --btn-glow-height: 40px;
  --btn-glow-padding: 16px;
  --btn-glow-font-size: 14px;
}
.btn-glow--sm > .btn-glow-label { gap: 8px; }
.header-cta-spacer {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: calc(var(--btn-glow-height) + 2px);
  padding-inline: calc(var(--btn-glow-padding) + 1px);
  font-size: var(--btn-glow-font-size);
  font-weight: 600;
  white-space: nowrap;
  visibility: hidden;
}
.header-cta-spacer::after { content: ""; width: 14px; }
.btn-glow--sm svg { flex: none; width: 14px; height: 14px; }

@keyframes glow-spin { to { --angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .btn-glow { animation: none; transition: none; background-image: none; background-color: var(--rust); }
  .btn-glow::before,
  .btn-glow > .btn-glow-light { opacity: 0; transition: none; }
  .btn-glow::after {
    opacity: 1;
    transition: none;
    background-image: none;
    background-color: var(--rust);
  }
  .btn-glow > .btn-glow-label::before { transition: none; }
}

/* Solid version for the main call to action at the bottom of the page.
   The contact section stays dark in both themes, so the colours are fixed. */
.btn-glow--solid {
  --btn-glow-height: 60px;
  --btn-glow-padding: 32px;
  --btn-glow-font-size: 17px;
  --btn-glow-surface: linear-gradient(#EC7550, #E2603A);
}
.btn-glow--solid > .btn-glow-label { color: #101C18; }
.btn-glow--solid > .btn-glow-label::before { background: linear-gradient(#F4875F, #EC7550); }
.btn-glow--solid::after { background-image: linear-gradient(135deg, #FFD3BF, #FFB08F); }
.btn-glow--solid svg { transition: transform 220ms cubic-bezier(.22,1,.36,1); }
.btn-glow--solid:is(:hover, :focus-visible) svg { transform: translate(2px, -2px); }
:root[data-theme="light"] .btn-glow--solid { --btn-glow-surface: linear-gradient(#EC7550, #E2603A); }
@media (prefers-reduced-motion: reduce) {
  .btn-glow--solid svg { transition: none; }
  .btn-glow--solid:is(:hover, :focus-visible) svg { transform: none; }
}

/* Top-bar "Let’s talk" in dark mode: brand teal with dark text. */
:root:not([data-theme="light"]) .header .btn-glow--sm { --btn-glow-surface: linear-gradient(#55A69E, #4A9A92); }
:root:not([data-theme="light"]) .header .btn-glow--sm > .btn-glow-label { color: #101C18; }
:root:not([data-theme="light"]) .header .btn-glow--sm > .btn-glow-label::before { background: linear-gradient(#62B2AA, #55A69E); }
/* A thicker, deeper-orange light so it reads against the teal. */
:root:not([data-theme="light"]) .header .btn-glow--sm {
  padding: 2px;
  --btn-glow-halo-inset: -6px;
  --btn-glow-halo-blur: 12px;
  --btn-glow-halo-opacity: .75;
  --btn-glow-halo-hover: .95;
  --btn-glow-gradient: conic-gradient(from var(--angle, 0deg),
    transparent 0deg,
    transparent calc(360deg - var(--arc)),
    #C2472A calc(360deg - var(--arc) * 0.5),
    #E2603A 360deg);
}

/* ---- mobile-menu.css ---- */
/* Full-screen mobile navigation. Extra items are added by header.js and only show below 768px. */
.header .header-menu nav a.menu-only,
.header .menu-meta,
.header .theme-toggle-label { display: none; }
.header .menu-theme { display: none; }

@media (width < 768px) {
  html.menu-open { overflow: hidden; }

  .header:has(.header-menu.is-open) { border-bottom-color: var(--border); }
  .header .brand,
  .header .header-actions { position: relative; z-index: 1; }

  .header .header-menu {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: calc(var(--header-h) + 20px) 24px max(28px, env(safe-area-inset-bottom));
    background: var(--bg);
    border: 0;
    box-shadow: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    transition: opacity 220ms ease, visibility 0s linear 220ms;
  }
  .header .header-menu.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity 220ms ease;
  }

  /* Links */
  .header .header-menu nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    counter-reset: menu;
  }
  .header .header-menu nav a,
  .header .header-menu nav a.menu-only {
    display: grid;
    grid-template-columns: 44px auto 1fr;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font: 700 clamp(40px, 12.5vw, 58px)/1 "Inter Tight", Arial, sans-serif;
    letter-spacing: -.045em;
    text-decoration: none;
  }
  .header .header-menu nav a::before {
    counter-increment: menu;
    content: "0" counter(menu);
    align-self: start;
    padding-top: .5em;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
  }
  /* Replace the desktop hover underline with the site's orange full stop on the current page. */
  .header .header-menu nav a::after {
    content: none;
  }
  .header .header-menu nav a.is-current::after {
    content: ".";
    position: static;
    grid-column: 3;
    height: auto;
    background: none;
    transform: none;
    color: var(--rust);
  }
  .header .header-menu nav a .menu-word { grid-column: 2; }
  .header .header-menu nav a:active { color: var(--teal); }

  /* Theme switch with a visible label */
  .header .header-menu .theme-toggle {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 10px;
    width: auto;
    height: 44px;
    margin-top: 28px;
    padding: 0 18px 0 14px;
    border: 1px solid var(--border);
    border-radius: 99px;
    color: var(--text);
    font: 600 14px/1 "Inter Tight", Arial, sans-serif;
  }
  .header .header-menu .theme-toggle:hover,
  .header .header-menu .theme-toggle:focus-visible {
    background: var(--text);
    border-color: var(--text);
    color: var(--bg);
  }
  .header .header-menu .theme-toggle-label { display: inline; }

  /* The single toggle is replaced on phones by a clear Dark | Light switch. */
  .header .header-menu .theme-toggle { display: none; }
  .header .menu-theme { display: grid; gap: 10px; margin-top: 28px; }
  .header .menu-theme-label { color: var(--text-muted); font: 600 12px/1 "Inter Tight", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
  .header .menu-theme-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
    border: 1px solid var(--border); border-radius: 999px;
  }
  .header .menu-theme-options button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
    background: transparent; color: var(--text-muted);
    font: 600 15px/1 "Inter Tight", Arial, sans-serif; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .header .menu-theme-options button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
  .header .menu-theme-options button:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
  @media (hover: hover) {
    .header .menu-theme-options button[aria-pressed="false"]:hover { color: var(--text); }
  }

  /* Contact details pinned to the bottom */
  .header .menu-meta {
    display: grid;
    gap: 14px;
    margin-top: auto;
    padding-top: 36px;
    color: var(--text-muted);
    font: 500 14px/1.4 "Inter Tight", Arial, sans-serif;
  }
  .header .menu-meta-status { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
  .header .menu-meta-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rust); flex: none; }
  @media (prefers-reduced-motion: no-preference) {
    .header .menu-meta-status::before { animation: menu-live 2.4s ease-in-out infinite; }
  }
  @keyframes menu-live { 0%, 100% { box-shadow: 0 0 0 0 rgba(226, 96, 58, .55); } 60% { box-shadow: 0 0 0 7px rgba(226, 96, 58, 0); } }
  .header .menu-meta-time { margin: -6px 0 0 17px; color: var(--text-muted); font-size: 14px; }
  .header .menu-meta-email-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .header .menu-meta-email { min-width: 0; color: var(--text); font-size: clamp(16px, 5.3vw, 20px); font-weight: 600; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
  .header .menu-meta-copy {
    position: relative; display: grid; place-items: center; flex: none;
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--border); border-radius: 12px;
    background: transparent; color: var(--text-muted); cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .header .menu-meta-copy:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
  .header .menu-meta-copied {
    position: absolute; right: 0; bottom: calc(100% + 6px); padding: 4px 8px; border-radius: 6px;
    background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; white-space: nowrap;
  }
  .header .menu-meta-social { display: flex; gap: 10px; margin: 0; }
  .header .menu-meta-social a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px;
    border: 1px solid var(--border); border-radius: 999px;
    color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none;
  }
  @media (hover: hover) {
    .header .menu-meta-social a:hover, .header .menu-meta-copy:hover { border-color: var(--rust); color: var(--rust); }
  }
  .header .menu-meta-social a:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }

  /* Short screens: tighten the spacing so the whole menu fits without scrolling. */
  @media (max-height: 700px) {
    .header .menu-theme { margin-top: 16px; }
    .header .menu-meta { gap: 10px; padding-top: 18px; }
    .header .menu-meta-copy, .header .menu-meta-social a { min-height: 40px; }
    .header .menu-meta-copy { width: 40px; height: 40px; }
  }

  /* Entrance: links rise in one after another */
  @media (prefers-reduced-motion: no-preference) {
    .header .header-menu nav a,
    .header .header-menu .theme-toggle,
    .header .menu-theme,
    .header .menu-meta {
      opacity: 0;
      transform: translateY(14px);
      transition: opacity 280ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1);
    }
    .header .menu-theme-options button { transition: background-color 220ms ease, color 220ms ease;
    }
    .header .header-menu.is-open nav a,
    .header .header-menu.is-open .theme-toggle,
    .header .header-menu.is-open .menu-theme,
    .header .header-menu.is-open .menu-meta {
      opacity: 1;
      transform: none;
      transition-delay: calc(60ms + var(--menu-i, 0) * 55ms);
    }
  }
}

/* ---- word-swap.css ---- */
/* Signature word swap (Home "Distinctive", About "Edward", Contact "happen", Work "work", Archive "collection").
   The word turns into an orange Playfair Display italic on hover or tap.
   Both versions share one grid cell, so the text beside the word never moves. */
.word-swap { position: relative; display: inline-grid; cursor: default; color: var(--teal); }
.word-swap > .fx-sans, .word-swap[data-word]::after { grid-area: 1 / 1; }
.word-swap > .fx-sans { justify-self: start; } /* keeps its own width so the italic can be measured against it */
.word-swap[data-word]::after {
  content: attr(data-word) / "";
  justify-self: center; align-self: center;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-style: italic; font-weight: 700;
  font-size: calc(1em * var(--fx-fit, .87)); line-height: 1; letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--rust);
  opacity: 0; transform: translateY(.2em);
}
.word-swap.is-active::after { opacity: 1; transform: none; }
.word-swap.is-active > .fx-sans { opacity: 0; transform: translateY(-.2em); }
/* Invisible copy used to measure the italic's width. */
.word-swap > .fx-probe {
  position: absolute; visibility: hidden; white-space: nowrap; pointer-events: none;
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic; font-weight: 700; font-size: 1em; letter-spacing: -.02em;
}
@media (prefers-reduced-motion: no-preference) {
  .word-swap > .fx-sans, .word-swap[data-word]::after {
    transition: opacity 320ms ease, transform 420ms cubic-bezier(.22, 1, .36, 1), filter 320ms ease;
  }
  .word-swap.is-active > .fx-sans { filter: blur(4px); }
  .word-swap.is-active::after { transition-delay: 60ms; }
}
/* Contact headline spans are orange by default; the swap word starts teal like the others. */
.contact-page h1 .word-swap, .contact-page h1 .word-swap > .fx-sans { color: var(--teal); }
/* Orange full stop after a headline, matching the other pages. */
.page-period { color: var(--rust); }

