/* ---- 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}

/* ---- project.css ---- */
.project-intro{padding-top:44px}.back-link{font-size:12px;color:var(--muted);display:inline-block;padding-bottom:7px}.back-link:hover{color:var(--ink)}.project-heading{padding:72px 0 44px}.project-heading h1{font-size:clamp(48px,6.5vw,88px);line-height:1.05;letter-spacing:-3px;max-width:1000px;margin:0 0 32px}.project-heading>.eyebrow{color:var(--blue)}.project-meta{display:flex;justify-content:space-between;gap:25px;padding-top:24px;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}.project-gallery{padding-bottom:64px}.project-visual{margin:0 0 32px}.visual-open{display:block;position:relative;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;overflow:hidden}.visual-open>img{width:100%;height:auto;display:block}.enlarge-hint{position:absolute;right:18px;bottom:18px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:99px;padding:10px 15px;font-size:11px;box-shadow:0 1px 10px var(--shadow)}.gallery-heading{font-size:28px;letter-spacing:-.8px;padding:20px 0}.project-pagination{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding-top:48px;padding-bottom:68px;border-top:1px solid var(--line)}.project-pagination a{display:flex;flex-direction:column;align-items:start}.project-pagination .eyebrow{margin-bottom:17px;color:var(--muted)}.project-pagination strong{font-size:28px;font-weight:600;letter-spacing:-.7px;line-height:1.2}.next-project img{width:100%;height:auto;aspect-ratio:1.6;object-fit:cover;margin-top:25px}.project-pagination a:hover strong{color:var(--blue)}.project-cta{padding-top:50px;padding-bottom:65px;border-top:1px solid var(--line)}.project-cta p{font-size:12px;color:var(--muted)}.project-cta>a{font-size:clamp(25px,4.2vw,50px);font-weight:600;letter-spacing:-1.3px;display:inline-block;margin-top:10px}.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}#image-viewer{width:calc(100vw - 40px);max-width:none;height:calc(100vh - 40px);max-height:none;padding:0;background:var(--paper);overflow:hidden}#image-viewer::backdrop{background:var(--scrim)}.viewer-toolbar{height:56px;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:8px 15px;border-bottom:1px solid var(--line)}.viewer-toolbar button{background:transparent;color:var(--ink);padding:8px 12px;border:1px solid var(--line);border-radius:99px;font-size:12px}.viewer-scroll{height:calc(100% - 56px);overflow:auto;padding:16px;display:flex;align-items:flex-start;justify-content:center}.viewer-scroll img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;margin:auto}.viewer-scroll.zoomed{display:block}.viewer-scroll.zoomed img{max-width:none;max-height:none;margin:0 auto}
@media(max-width:650px){.project-intro{padding-top:29px}.project-heading{padding-top:44px;padding-bottom:29px}.project-heading h1{font-size:45px;letter-spacing:-1.8px;margin-bottom:24px}.project-meta{font-size:11px;gap:20px;line-height:1.5}.project-visual{margin-bottom:18px}.enlarge-hint{right:9px;bottom:9px;font-size:9px;padding:7px 10px}.project-gallery{padding-bottom:35px}.project-pagination{gap:27px;padding-top:33px;padding-bottom:40px}.project-pagination strong{font-size:22px}.project-pagination .eyebrow{font-size:8px;letter-spacing:.8px}.project-cta{padding-top:28px;padding-bottom:39px}#image-viewer{width:calc(100vw - 16px);height:calc(100dvh - 16px)}.viewer-scroll{padding:9px}}
.project-story{display:grid;grid-template-columns:1.1fr 1fr;gap:90px;padding-top:16px;padding-bottom:70px}.story-intro .eyebrow{color:var(--blue)}.story-intro h2{font-size:34px;line-height:1.15;letter-spacing:-1px;margin:0 0 23px;max-width:500px}.story-intro>p:last-child{font-size:16px;line-height:1.75;color:var(--muted);margin:0;max-width:550px}.story-details h3{font-size:15px;font-weight:600;letter-spacing:-.2px;margin:0 0 18px}.story-details ul{padding-left:18px;margin:0;color:var(--muted);font-size:14px;line-height:1.65}.story-details li{padding-left:5px;margin-bottom:11px}.story-details li::marker{color:var(--blue)}.project-tools{border-top:1px solid var(--line);margin-top:27px;padding-top:23px}.tool-tags{display:flex;flex-wrap:wrap;gap:8px}.tool-tags span{font-size:11px;border:1px solid var(--line);border-radius:99px;padding:9px 13px;color:var(--ink)}
@media(max-width:1000px){.project-story{gap:45px}.story-intro h2{font-size:29px}}@media(max-width:650px){.project-story{grid-template-columns:1fr;gap:31px;padding-top:9px;padding-bottom:40px}.story-intro h2{font-size:28px;letter-spacing:-.8px;margin-bottom:18px}.story-intro>p:last-child{font-size:15px;line-height:1.7}.story-details ul{font-size:13px}.project-tools{margin-top:24px}.tool-tags span{font-size:10px}}
/* Complete case studies: background, context, process and outcomes. */
.case-overview{display:grid;grid-template-columns:1.3fr .7fr;gap:90px;padding-top:16px;padding-bottom:64px}
.case-overview h2{font-size:34px;line-height:1.15;letter-spacing:-1px;margin:0 0 24px}
.case-overview>div>p:last-child{font-size:16px;line-height:1.8;color:var(--muted);margin:0}
.case-facts{margin:0;display:grid;gap:18px}.case-facts>div{display:grid;grid-template-columns:80px 1fr;gap:16px}
.case-facts dt{font-size:12px;color:var(--muted)}.case-facts dd{margin:0;font-size:14px;line-height:1.5}
.case-overview h3{font-size:15px;margin:0 0 18px}
.case-row{display:grid;grid-template-columns:.7fr 1.3fr;gap:90px;padding-top:44px;padding-bottom:44px;border-top:1px solid var(--line)}
.case-row h2{font-size:28px;line-height:1.2;letter-spacing:-.7px;margin:0}.case-row .eyebrow{color:var(--blue);font-size:10px;margin-bottom:16px}
.case-text{font-size:15px;line-height:1.8;color:var(--muted)}.case-text p{margin:0 0 20px}.case-text p:last-child{margin-bottom:0}.case-text ul{padding-left:20px;margin:0}.case-text li{padding-left:5px;margin-bottom:18px}.case-text li:last-child{margin-bottom:0}.case-text strong{color:var(--ink);font-weight:600}.case-text li::marker{color:var(--blue)}
.case-row:last-of-type{padding-bottom:60px}
@media(max-width:1000px){.case-overview,.case-row{gap:45px}}
@media(max-width:650px){.case-overview,.case-row{grid-template-columns:1fr;gap:26px}.case-overview{padding-bottom:40px}.case-overview h2{font-size:28px}.case-overview>div>p:last-child{font-size:15px}.case-row{padding-top:30px;padding-bottom:30px}.case-row h2{font-size:25px}.case-text{font-size:14px;line-height:1.8}}
/* Image navigation stays outside the scrollable artwork. */
#image-viewer.has-image-navigation .viewer-scroll{height:calc(100% - 120px)}
.viewer-navigation{height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 15px;border-top:1px solid var(--line);color:var(--ink);background:var(--paper)}
.viewer-navigation[hidden]{display:none}
.viewer-navigation button{min-height:44px;padding:8px 16px;border:1px solid var(--line);border-radius:99px;background:transparent;color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.viewer-navigation button:hover:not(:disabled){background:var(--ink);color:var(--paper)}
.viewer-navigation button:focus-visible,.viewer-toolbar button:focus-visible{outline:2px solid var(--rust);outline-offset:2px}
.viewer-navigation button:disabled{opacity:.4;cursor:default}
#viewer-position{font-size:12px;white-space:nowrap}
@media(max-width:650px){.viewer-navigation{gap:6px;padding:8px}.viewer-navigation button{padding:8px 12px}}

/* Shared sticky navigation for both case-study templates. */
html:has(main > :is(.narrative-chapters, .steezy-chapters)) {
  /* Anchors account for both sticky bars; avoid adding global scroll padding. */
  scroll-padding-top: 0;
}
main:has(> :is(.narrative-chapters, .steezy-chapters)) {
  --tabs-h: 64px;
  --chapter-offset: calc(var(--header-h) + var(--tabs-h) + 16px);
}
:is(.narrative-chapters, .steezy-chapters) {
  display: block;
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  height: var(--tabs-h);
  margin-top: 0;
  border-top: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
:is(.narrative-chapters, .steezy-chapters) > div {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  max-width: 1380px;
  margin: auto;
  padding-inline: 64px;
  overflow-x: auto;
  scrollbar-width: thin;
}
:is(.narrative-chapters, .steezy-chapters) a {
  flex: none;
  white-space: nowrap;
  font-size: 12px;
  border-radius: 99px;
  border: 1px solid transparent;
  padding: 12px 14px;
  transition: background 180ms, color 180ms;
}
:is(.narrative-chapters, .steezy-chapters) a:is(:hover, [aria-current="step"]) {
  background: var(--ink);
  color: var(--paper);
}
/* Give the first anchor its clearance without pulling the tabs out of the sticky position. */
:is(.narrative-chapters, .steezy-chapters) + :is(.narrative-step, .steezy-step, .case-study-anchor) {
  margin-top: 16px;
}
main:has(> :is(.narrative-chapters, .steezy-chapters)) :is(.narrative-step, .steezy-step, .case-study-anchor) {
  scroll-margin-top: var(--chapter-offset);
}
main:has(> :is(.narrative-chapters, .steezy-chapters)) :is(.narrative-copy, .steezy-copy) {
  top: var(--chapter-offset);
}
@media (max-width: 800px) {
  main:has(> :is(.narrative-chapters, .steezy-chapters)) { --tabs-h: 56px; }
  :is(.narrative-chapters, .steezy-chapters) > div { padding-inline: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.narrative-chapters, .steezy-chapters) a { transition: none; }
}

/* Case study "at a glance" strip (generated by build.py from case-studies.json). */
.case-strip { display: grid; gap: clamp(24px, 3vw, 36px); margin-top: clamp(24px, 3vw, 36px); }
.case-strip-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px 32px;
  margin: 0;
}
.case-strip-facts > div { display: grid; gap: 6px; align-content: start; }
.case-strip-facts dt {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.case-strip-facts dd { margin: 0; color: var(--text); font-size: 16px; line-height: 1.4; }
.case-strip-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.case-strip-results li {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: radial-gradient(ellipse at 0% 0%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%);
}
.case-strip-results strong {
  color: var(--teal);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.case-strip-results span { color: var(--text-muted); font-size: 14px; line-height: 1.4; }
@media (width < 768px) {
  .case-strip-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Previous and next projects get matching preview images */
.previous-project img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; margin-top: 25px; }
.project-pagination :is(.previous-project, .next-project) img { border-radius: 12px; transition: transform 400ms cubic-bezier(.22, 1, .36, 1), opacity 200ms ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-pagination :is(.previous-project, .next-project):hover img { transform: scale(1.015); }
}
/* The details strip already lists tools, so skip the repeat below the overview. */
main:has(.case-strip) .narrative-opening > .narrative-overview-tools,
main:has(.case-strip) .narrative-overview-meta > .narrative-overview-tools { display: none; }

/* Bigger tap area for small text links, without changing how they look. */
.back-link, .project-cta > a { position: relative; }
.back-link::before, .project-cta > a::before {
  content: "";
  position: absolute;
  inset: -11px -8px;
}

/* ---- 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}}

/* ---- project-narrative.css ---- */
/* Scroll-through presentation, using the portfolio theme. */
.narrative-opening{padding-top:12px;padding-bottom:64px}.narrative-lede{display:grid;grid-template-columns:1fr 1fr;gap:12px 64px;align-items:end;margin-bottom:44px}.narrative-lede>.eyebrow{grid-column:1/-1;color:var(--blue)}.narrative-lede h2{font-size:clamp(44px,6vw,82px);line-height:1.03;letter-spacing:-.03em;margin:0;font-weight:600}.narrative-lede>p:last-child{font-size:20px;line-height:1.6;color:var(--muted);max-width:420px;margin:0}.narrative-opening .project-visual{margin:0}.narrative-opening .visual-open{border-radius:4px}
.narrative-step{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.35fr);gap:72px;padding-block:100px;align-items:start;scroll-margin-top:210px;border-bottom:1px solid var(--line)}.narrative-copy{position:sticky;top:220px}.narrative-copy>.eyebrow{color:var(--blue)}.narrative-copy h2{font-size:clamp(30px,3.3vw,46px);font-weight:600;letter-spacing:-.025em;line-height:1.12;margin:0 0 28px}.narrative-copy>p:not(.eyebrow){color:var(--muted);font-size:16px;line-height:1.8;margin:0 0 20px}.narrative-visuals{min-width:0;display:grid;gap:36px}.narrative-visuals .project-visual{margin:0}.narrative-visuals img{background:var(--surface)}.narrative-step figcaption,.narrative-opening figcaption{font-size:12px;line-height:1.6;color:var(--muted);padding-top:14px;max-width:580px}.narrative-takeaway{padding-block:100px;text-align:center}.narrative-takeaway h2{font-size:clamp(34px,4.5vw,62px);line-height:1.1;font-weight:600;letter-spacing:-.03em;margin:0 0 28px}.narrative-takeaway>p:not(.eyebrow){max-width:570px;margin:0 auto 30px;color:var(--muted);line-height:1.7}
@media(max-width:1000px){.narrative-step{gap:36px;padding-block:72px}.narrative-copy>p:not(.eyebrow){font-size:15px}}
@media(max-width:800px){.narrative-step{grid-template-columns:1fr;gap:28px;padding-block:56px;scroll-margin-top:166px}.narrative-copy{position:static}.narrative-lede{grid-template-columns:1fr;gap:20px;margin-bottom:30px}.narrative-lede>p:last-child{font-size:17px;max-width:560px}.narrative-opening{padding-bottom:40px}.narrative-visuals{gap:26px}.narrative-takeaway{padding-block:65px}}

.narrative-opening .case-overview{padding-bottom:40px}.narrative-overview-tools{margin-block:20px 36px}.narrative-image-stack{display:grid;gap:32px}.narrative-copy ul{padding-left:20px;color:var(--muted);font-size:15px;line-height:1.8;margin:0 0 20px}.narrative-copy li{margin-bottom:14px}.narrative-copy li::marker{color:var(--blue)}.narrative-copy .eyebrow{font-size:10px}.narrative-copy h3{font-size:18px;line-height:1.3}.narrative-opening>.case-overview{padding-inline:0}.narrative-copy strong{color:var(--ink)}
/* Detail windows preserve the full source image in the image viewer. */
.narrative-detail .visual-open{aspect-ratio:4/3}
.narrative-detail .visual-open>img{width:100%;height:100%;object-fit:cover}
.narrative-detail[data-focus="top"] img{object-position:50% 0%}
.narrative-detail[data-focus="center"] img{object-position:50% 50%}
.narrative-detail[data-focus="bottom"] img{object-position:50% 100%}
.narrative-overview-visual .visual-open{height:min(70vh,760px);background:var(--paper)}
.narrative-overview-visual .visual-open>img{width:100%;height:100%;object-fit:contain}

/* Archive projects: tools and "what I did" sit under the overview, lined up with its two columns */
.narrative-overview-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; margin-block: 20px 36px; }
.narrative-overview-meta .narrative-overview-tools { margin: 0; }
.narrative-overview-did ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; max-width: 52ch; }
.narrative-overview-did li { position: relative; padding-left: 18px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.narrative-overview-did li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
@media (max-width: 650px) { .narrative-overview-meta { grid-template-columns: 1fr; } }

/* ---- 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); }

/* ---- sri-labs.css ---- */
.sri-intro .project-heading { margin-bottom: 0; }
.sri-opening .project-visual { margin: 0; }
.sri-opening .project-visual img { max-height: min(60vh, 660px); width: 100%; object-fit: cover; object-position: center 44%; }
.sri-opening figcaption, .sri-caption { padding-top: 12px; color: var(--text-muted, var(--muted)); font-size: 14px; line-height: 1.5; }
.sri-brief { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.sri-brief .eyebrow { color: var(--blue); margin: 0 0 10px; }
.sri-brief h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.1; }
.sri-brief p:not(.eyebrow) { margin: 0; max-width: 54ch; color: var(--text-muted, var(--muted)); line-height: 1.6; }
@media (max-width: 800px) {
 .sri-opening .project-visual img { max-height: none; }
 .sri-brief { grid-template-columns: 1fr; margin-top: 26px; }
}

/* ---- 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);
    }
  }
}

