@layer reset, base, layout, components, responsive;

@layer reset {
  *,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,p,figure,dl,dd{margin:0}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}img{display:block;max-width:100%}a{color:inherit}button{color:inherit}html{scroll-behavior:smooth}body{min-width:320px}
}
@layer base {
  :root{--paper:#efeee9;--ink:#252623;--muted:#686963;--mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;--sans:Arial,Helvetica,sans-serif}
  body{background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased;transition:background-color .19s ease,color .19s ease}body[data-leaving=dark]{background:#252623}body[data-leaving=light]{background:#efeee9}
  body.theme-dark{--paper:#252623;--ink:#efeee9;--muted:#c0c1b8}
  a{text-decoration:none}button{cursor:pointer}a:focus-visible,button:focus-visible{outline:2px solid currentColor;outline-offset:7px}::selection{background:#d5e779;color:#252623}
  .sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
  .skip-link{position:fixed;left:20px;top:14px;padding:12px;background:var(--ink);color:var(--paper);transform:translateY(-180%);z-index:100}.skip-link:focus{transform:none}
  .eyebrow,.text-link,.site-footer,.top-nav,.identity-copy,.availability,.work-index-label,.project-kicker,.project-caption>span,.index-note,.case-meta,.case-number,.case-pager,.gallery-rail,.section-label,figcaption,.metric-note,.mobile-project-nav,.about-bottom,.about-availability{font-family:var(--mono);font-weight:400;font-size:11px;line-height:1.45;letter-spacing:.035em}
  .text-link{text-transform:uppercase;display:inline-flex;gap:15px;padding-bottom:3px;border-bottom:1px solid currentColor}.text-link span[aria-hidden]{transition:transform .2s}.text-link:hover span[aria-hidden]{transform:translate(2px,-2px)}
}
@layer layout {
  .site-header{display:flex;align-items:flex-start;justify-content:space-between;position:relative;z-index:20;padding:30px 34px 0;min-height:103px}
  .identity{display:flex;align-items:center;gap:15px}.identity-mark{width:53px;height:53px;border:1px solid currentColor;border-radius:50%;display:grid;place-items:center;position:relative;transform:rotate(-13deg)}.identity-mark span{font-size:36px;font-weight:bold;letter-spacing:-4px;margin-right:4px}.identity-mark i{position:absolute;left:7px;right:7px;top:31px;border-top:2px solid currentColor;transform:rotate(-19deg)}
  .identity-copy{font-size:11px;padding-top:2px}.identity-copy>span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.top-nav{display:flex;gap:27px;padding-top:7px}.top-nav a{padding:5px 0}.top-nav a:hover{text-decoration:underline;text-underline-offset:5px}
  .site-footer{display:flex;justify-content:space-between;align-items:center;margin:0 34px;padding:26px 0 25px;border-top:1px solid color-mix(in srgb,var(--ink) 18%,transparent);font-size:10px}.site-footer>span{color:var(--muted)}.site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
  .index-page{padding:0 9.5%;outline:none}.intro{padding:18px 0 0 4%;display:grid;grid-template-columns:auto 1fr;align-items:end;column-gap:48px}.intro .eyebrow{grid-column:1/-1}.intro .eyebrow{color:var(--muted);font-size:10px;margin-bottom:16px}.intro h1{font-size:clamp(26px,2.4vw,40px);font-weight:400;letter-spacing:-.065em;line-height:1.02}.end-dot{color:#b04b28}.availability{margin-top:0;padding-bottom:6px;font-size:10px;display:flex;align-items:center;gap:7px}.availability>span{width:5px;height:5px;background:#6c7b41;border-radius:50%;display:inline-block}
  .work-index{position:relative;margin-top:36px}.work-count{color:var(--ink);margin-left:10px;padding:2px 6px;border:1px solid currentColor}.work-index-label{display:flex;justify-content:space-between;padding:0 4%;color:var(--muted);font-size:10px}.work-index-label h2{font:inherit}.project-field{position:relative;height:440px;margin-top:26px}.project-card{position:absolute;width:16.8%;display:block;animation:enter .5s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--order)*55ms)}
  .project-card-1{left:4%;top:0}.project-card-2{left:23.2%;top:52px}.project-card-3{left:42.4%;top:104px}.project-card-4{left:61.6%;top:156px}.project-card-5{left:80.8%;top:208px}
  .project-kicker{font-size:10px;display:flex;justify-content:space-between;margin-bottom:7px}.project-kicker>span:last-child{color:var(--muted)}.card-picture{overflow:hidden;position:relative;aspect-ratio:1.05;background:#d5d4cc}.card-picture img{width:100%;height:100%;object-fit:cover;filter:grayscale(1);transition:filter .5s,transform .7s cubic-bezier(.2,.7,.2,1)}.project-card:hover img,.project-card:focus-visible img{filter:grayscale(0);transform:scale(1.045)}.card-open{position:absolute;right:10px;bottom:10px;background:var(--paper);color:var(--ink);border-radius:50%;width:27px;height:27px;display:grid;place-items:center;opacity:0;transform:translateY(5px);transition:.25s}.project-card:hover .card-open,.project-card:focus-visible .card-open{opacity:1;transform:none}
  .project-caption{padding-top:10px}.project-caption h3{font-weight:400;font-size:14px;letter-spacing:-.025em;line-height:1.2}.project-caption>span{font-size:10px;color:var(--muted);display:block;margin-top:4px;letter-spacing:0}.index-note{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted);padding:0 4%;margin:0 0 42px}.index-note .text-link{font-size:10px;color:var(--ink)}
  .case-page{outline:none}.theme-dark .site-header{position:absolute;top:0;left:0;right:0}.theme-dark .identity-copy{display:none}.case-heading{padding-top:31px;display:grid;grid-template-columns:28px 1fr;gap:12px;width:64%;margin-left:16%;min-height:210px}.case-number{padding-top:4px;font-size:11px}.case-number>span{display:block;color:var(--muted);font-size:10px;margin-top:4px}.boxed-title{display:flex;flex-direction:column;align-items:flex-start;font-size:clamp(24px,3vw,44px);line-height:1;font-weight:600;letter-spacing:0}.boxed-word{display:flex}.boxed-word>span{width:1.03em;height:1.03em;display:grid;place-items:center;border:1px solid #a1a298;margin-right:-1px;margin-bottom:-1px}.case-meta{display:grid;grid-template-columns:1fr 1.2fr .8fr;gap:22px;margin-top:15px;max-width:780px;font-size:10px;text-transform:uppercase}.case-meta p{max-width:250px}.case-meta .text-link{font-size:10px}
  .case-content{width:51%;max-width:840px;margin:10px auto 0}.gallery-section{scroll-margin-top:32px}.hero-figure img{width:100%;height:auto;aspect-ratio:1.38;object-fit:cover}.hero-figure figcaption,.process-figure figcaption{color:var(--muted);font-size:9px;letter-spacing:.06em;margin-top:9px;line-height:1.5}.case-intro{padding:66px 0 74px}.case-intro .eyebrow{font-size:10px;color:var(--muted);margin-bottom:17px}.case-intro h2{font-size:clamp(26px,3vw,45px);font-weight:400;letter-spacing:-.05em;line-height:1.04;max-width:530px}.case-intro>h2+p{font-size:15px;line-height:1.6;max-width:500px;margin-top:22px;color:var(--muted)}
  .case-pager a{position:fixed;top:45vh;z-index:5;display:flex;flex-direction:column;gap:10px;font-size:10px}.case-pager a>span:first-child{font-family:Arial;font-size:42px;font-weight:300;line-height:1;transition:transform .2s}.case-pager .previous-project{left:34px}.case-pager .next-project{right:34px;align-items:flex-end;text-align:right}.pager-target{color:var(--muted);max-width:110px;opacity:.75;transition:opacity .2s}.case-pager a:hover .pager-target,.case-pager a:focus-visible .pager-target{opacity:1;color:var(--ink)}.case-pager .previous-project:hover>span:first-child{transform:translateX(-5px)}.case-pager .next-project:hover>span:first-child{transform:translateX(5px)}
  .gallery-rail{position:fixed;right:10.5%;top:210px;width:61px;display:flex;flex-direction:column;gap:13px;z-index:6}.gallery-rail button{background:none;border:0;padding:3px;position:relative}.rail-preview{display:block;outline:1px solid transparent;outline-offset:4px;transition:outline .2s}.rail-preview img{width:100%;height:39px;object-fit:cover;filter:grayscale(1);opacity:.6;transition:.2s}.gallery-rail button[aria-pressed=true] .rail-preview{outline-color:var(--ink)}.gallery-rail button[aria-pressed=true] img,.gallery-rail button:hover img{filter:none;opacity:1}.rail-number{position:absolute;bottom:5px;right:6px;background:#252623;color:#efeee9;padding:1px 3px;font-size:9px}.rail-label{position:absolute;right:75px;top:15px;width:115px;text-align:right;font-size:10px;opacity:0;pointer-events:none}.gallery-rail button:hover .rail-label,.gallery-rail button:focus-visible .rail-label{opacity:1}
  .contribution-section{padding-top:24px}.section-label{border-top:1px solid #77796e;display:flex;justify-content:space-between;gap:20px;padding-top:13px;font-size:10px;color:var(--muted);margin-bottom:31px}.contribution-section h2{font-size:28px;font-weight:400;letter-spacing:-.04em;margin-bottom:20px}.contribution-lead{font-size:18px;line-height:1.5;letter-spacing:-.015em}.contribution-section ul{margin:30px 0 42px;padding-left:16px;max-width:600px;color:var(--muted);font-size:14px;line-height:1.65}.contribution-section li{padding-left:7px;margin-top:10px}.process-figure img{width:100%;height:auto}.outcomes-section{padding-top:90px}.outcomes-section h2{font-weight:400;font-size:29px;letter-spacing:-.045em;line-height:1.15;max-width:590px}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin:48px 0 31px}.metrics>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:9px}.metrics dt{font-family:var(--mono);font-size:10px;line-height:1.5;color:var(--muted)}.metrics dd{font-size:clamp(28px,3.2vw,49px);line-height:1;letter-spacing:-.06em;color:var(--accent)}.metric-note{font-size:11px;color:var(--muted);max-width:560px;line-height:1.65;margin-bottom:27px;letter-spacing:0}.next-case{display:block;border-top:1px solid #77796e;margin-top:90px;padding:28px 0 44px}.next-case>.eyebrow{font-size:10px;display:block;margin-bottom:23px;color:var(--muted)}.mobile-project-nav{display:none}
  .about-page{max-width:960px;margin:48px auto 95px;padding:0 55px;outline:none}.about-page>.eyebrow{color:var(--muted);font-size:10px;margin-bottom:32px}.about-page h1{font-size:clamp(38px,5.1vw,72px);font-weight:400;letter-spacing:-.065em;line-height:1.03}.about-body{max-width:510px;margin:44px 0 0 auto}.about-body>p{font-size:16px;line-height:1.65;color:var(--muted);margin-bottom:21px}.about-body .about-availability{font-size:10px;color:var(--ink);margin-top:32px}.about-links{display:flex;flex-wrap:wrap;gap:20px;margin-top:28px}.about-links .text-link{font-size:10px;gap:8px}.about-bottom{display:flex;justify-content:space-between;color:var(--muted);font-size:10px;margin-top:65px}.not-found{min-height:65vh;padding:8vh 15%;outline:none}.not-found h1{font-size:60px;font-weight:400;letter-spacing:-.05em;margin:30px 0}
  .card-metrics{display:flex;flex-direction:column;gap:3px;margin-top:9px;font-family:var(--mono);font-size:10px;line-height:1.35;color:var(--muted)}.card-metrics b{font-family:var(--sans);font-size:13px;font-weight:600;color:var(--ink);letter-spacing:-.02em;margin-right:3px}
  .glance{margin:20px 0 56px}.glance .work-index-label{padding:0 4%}.glance-list{list-style:none;margin:16px 4% 0;padding:0;border-top:1px solid color-mix(in srgb,var(--ink) 25%,transparent)}.glance-list a{display:grid;grid-template-columns:40px 1.1fr 1fr 1.7fr 24px;gap:20px;align-items:baseline;padding:18px 0;border-bottom:1px solid color-mix(in srgb,var(--ink) 18%,transparent);transition:background .2s,padding .2s}.glance-list a:hover{background:color-mix(in srgb,var(--ink) 5%,transparent)}.glance-number{font-family:var(--mono);font-size:11px}.glance-name strong{display:block;font-weight:400;font-size:19px;letter-spacing:-.03em}.glance-name>span,.glance-role>span{display:block;font-family:var(--mono);font-size:10px;color:var(--muted);margin-top:4px}.glance-role{font-size:14px;line-height:1.35}.glance-metrics{display:flex;flex-wrap:wrap;gap:6px 18px;font-family:var(--mono);font-size:10px;color:var(--muted)}.glance-metrics b{font-family:var(--sans);font-size:16px;font-weight:600;color:var(--ink);margin-right:4px;letter-spacing:-.02em}.glance-open{justify-self:end;transition:transform .2s}.glance-list a:hover .glance-open{transform:translate(2px,-2px)}
  .glance-strip{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:20px;margin:34px 0 22px;padding:18px 0;border-top:1px solid #77796e;border-bottom:1px solid #77796e;max-width:640px}.glance-strip>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:7px}.glance-strip dt{font-family:var(--mono);font-size:10px;color:var(--muted);text-transform:uppercase}.glance-strip dd{font-size:22px;letter-spacing:-.04em;line-height:1.1;color:var(--accent)}.glance-strip>div:first-child dd{font-size:15px;color:var(--ink);letter-spacing:-.01em;line-height:1.35}.case-intro .text-link{font-size:10px}
  .next-title{font-size:clamp(28px,4vw,58px);letter-spacing:-.05em;display:flex;justify-content:space-between;gap:15px}.next-title>span{transition:transform .3s}.next-case:hover .next-title>span{transform:translate(4px,-4px)}.next-preview{display:grid;grid-template-columns:160px 1fr;gap:22px;align-items:end;margin-top:26px}.next-preview img{width:160px;height:auto;aspect-ratio:1.3;object-fit:cover;filter:grayscale(1);transition:filter .4s}.next-case:hover .next-preview img{filter:none}.next-role{display:block;font-family:var(--mono);font-size:10px;text-transform:uppercase;color:var(--muted)}
  .case-progress{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0 70px;border-top:1px solid #77796e}.case-progress .text-link{font-size:10px;gap:8px}.case-progress ol{display:flex;gap:6px;list-style:none;margin:0;padding:0}.case-progress ol a{display:grid;place-items:center;width:34px;height:34px;border:1px solid #77796e;font-family:var(--mono);font-size:10px;color:var(--muted);transition:.2s}.case-progress ol a:hover{color:var(--ink);border-color:var(--ink)}.case-progress ol a[aria-current=page]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
  @keyframes enter{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
}
@layer responsive {
  @media(min-width:1600px){.project-field{height:540px}.project-card-2{top:64px}.project-card-3{top:128px}.project-card-4{top:192px}.project-card-5{top:256px}}
  @media(hover:hover) and (min-width:701px){.project-field:has(.project-card:hover,.project-card:focus-visible) .project-card:not(:hover,:focus-visible)>*{opacity:.4}}.project-card>*{transition:opacity .3s}
  @media(min-width:701px){.theme-dark .site-header{position:fixed;pointer-events:none}.theme-dark .site-header>*{pointer-events:auto}}
  @media(max-width:1100px) and (min-width:701px){.work-index-label{padding:0}.project-field{height:620px}.project-card{width:29%}.project-card-1{left:0;top:0}.project-card-2{left:35.5%;top:40px}.project-card-3{left:71%;top:80px}.project-card-4{left:17.75%;top:330px}.project-card-5{left:53.25%;top:370px}.intro{grid-template-columns:1fr}.availability{margin-top:14px}.case-heading{margin-left:14%;width:70%}.case-content{width:61%}.gallery-rail{right:6%;width:48px}.case-pager .previous-project{left:20px}.case-pager .next-project{right:20px}.case-meta{font-size:10px;gap:12px}.identity-copy>span{display:none}}
  @media(max-width:700px){
    .site-header{padding:23px 22px 0;min-height:94px}.identity-mark{width:40px;height:40px}.identity-mark span{font-size:28px}.identity-mark i{top:24px;left:5px;right:5px}.identity-copy{font-size:10px}.identity-copy>span{display:none}.identity{gap:9px}.top-nav{gap:18px;font-size:10px;padding-top:4px}.top-nav .index-link{display:none}.site-footer{margin:0 22px;font-size:9px;padding:22px 0;gap:12px}.site-footer>span{font-size:9px}.index-page{padding:0 22px}.intro{padding:12px 0 0;display:block}.intro .eyebrow{font-size:10px;margin-bottom:17px}.intro h1{font-size:clamp(26px,7vw,34px)}.availability{font-size:9px;margin-top:17px}.work-index{margin-top:30px}.work-index-label{flex-direction:column;gap:6px}.work-index-label{padding:0;font-size:10px}.project-field{height:auto;display:grid;grid-template-columns:1fr 1fr;gap:33px 18px;align-items:start;margin:20px 0 42px}.project-card{position:static;width:100%;min-width:0}.project-card:nth-child(even){margin-top:65px}.project-card-5 .card-picture{aspect-ratio:1.05}.card-picture img{filter:none}.card-open{opacity:1;transform:none;width:22px;height:22px;right:7px;bottom:7px;font-size:14px}.project-kicker{font-size:10px}.project-caption h3{font-size:14px}.project-caption>span{font-size:9px}.index-note{display:block;padding:0;margin-bottom:35px;font-size:9px;max-width:260px}.index-note>span{display:block}.index-note .text-link{margin-top:20px;font-size:10px}
    .theme-dark .site-header{position:relative;min-height:85px}.case-heading{padding-top:0;margin:0 22px 0 19px;width:auto;grid-template-columns:25px 1fr;gap:8px;min-height:0}.case-number{font-size:10px;padding-top:1px}.case-number>span{font-size:9px}.boxed-title{font-size:clamp(22px,6.5vw,37px)}.case-meta{display:grid;grid-template-columns:1fr;font-size:10px;gap:11px;margin-top:15px}.case-meta p{max-width:100%}.case-meta .text-link{font-size:10px;margin-top:1px}.case-content{width:auto;margin:31px 22px 0}.hero-figure img{aspect-ratio:1.04}.hero-figure figcaption,.process-figure figcaption{font-size:9px}.case-pager,.gallery-rail{display:none}.case-intro{padding:40px 0 49px}.case-intro h2{font-size:32px}.case-intro>h2+p{font-size:14px;margin-top:17px}.section-label{font-size:9px;gap:20px;margin-bottom:27px}.section-label>span:last-child{text-align:right}.contribution-section h2{font-size:27px}.contribution-lead{font-size:17px}.contribution-section ul{font-size:13px;margin:24px 0 30px}.outcomes-section{padding-top:54px}.outcomes-section h2{font-size:27px}.metrics{gap:12px;margin:34px 0 24px}.metrics dd{font-size:clamp(27px,7.5vw,41px)}.metrics dt{font-size:9px}.metric-note{font-size:10px}.next-case{margin-top:55px;padding-bottom:30px}.next-title{font-size:34px}.next-preview{grid-template-columns:110px 1fr;gap:16px}.next-preview img{width:110px;filter:none}.case-progress{flex-wrap:wrap;justify-content:center;padding-bottom:40px}.case-progress ol{order:-1;width:100%;justify-content:center}.case-progress ol a{width:44px;height:44px}.glance{margin-bottom:40px}.glance .work-index-label{padding:0}.glance-list{margin:14px 0 0}.glance-list a{grid-template-columns:30px 1fr 20px;gap:6px 12px}.glance-role,.glance-metrics{grid-column:2}.glance-open{grid-row:1;grid-column:3}.glance-name strong{font-size:18px}.glance-role{font-size:13px}.glance-strip{grid-template-columns:1fr 1fr;gap:16px}.glance-strip>div:first-child{grid-column:1/-1}.card-metrics b{font-size:12px}.card-metrics{font-size:9px}.mobile-project-nav{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;background:var(--paper);border-top:1px solid #77796e;padding:18px 22px;z-index:10;font-size:10px}.mobile-project-nav a{padding:6px 0}.theme-dark .site-footer{padding-bottom:25px}.about-page{margin:24px 0 55px;padding:0 22px}.about-page>.eyebrow{font-size:10px;margin-bottom:25px}.about-page h1{font-size:clamp(35px,8.2vw,54px)}.about-body{margin-top:30px}.about-body>p{font-size:15px}.about-links{gap:20px 22px}.about-bottom{font-size:9px;margin-top:44px}.not-found{padding:60px 22px}.not-found h1{font-size:43px}
  }
  @media(max-width:360px){.identity-copy{display:none}.top-nav{gap:16px}.case-heading{margin-left:16px;margin-right:16px;gap:5px;grid-template-columns:22px 1fr}.case-content{margin-left:16px;margin-right:16px}.boxed-title{font-size:6.3vw}.metrics{gap:8px}.metrics dd{font-size:26px}.mobile-project-nav{padding-left:16px;padding-right:16px}.site-footer>span{max-width:80px;text-align:center}}
  @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
}

/* Typography. The reference uses Untitled Sans: regular uppercase for index names and
   bold for case titles. Apple devices use their installed Helvetica Neue; everyone else gets
   the bundled Hanken Grotesk (SIL OFL 1.1, see /fonts/hanken-grotesk/OFL.txt) instead of Arial.
   Browsers only download it when Helvetica Neue is missing; the Latin unicode-range keeps
   arrow glyphs (↗ ↙ ↓) from triggering a download on Apple devices. */
@font-face { font-family: "Hanken Grotesk Portfolio"; src: url("/fonts/hanken-grotesk/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Hanken Grotesk Portfolio"; src: url("/fonts/hanken-grotesk/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }
:root { --works-font: "Untitled Sans", "Helvetica Neue", "Hanken Grotesk Portfolio", Helvetica, Arial, sans-serif; }
.work-index-label, .project-kicker, .case-meta, .case-number, .case-pager, .top-nav, .identity-copy,
.site-footer, .mobile-project-nav, .boxed-title, .cover-name {
  font-family: var(--works-font);
  text-transform: uppercase;
  font-weight: 400;
}
.top-nav, .identity-copy, .site-footer, .mobile-project-nav, .case-pager { font-size: 12px; letter-spacing: .02em; }
.identity-copy > span { font-size: 11px; letter-spacing: .02em; }
.work-index-label, .project-kicker, .case-number { font-size: 12px; letter-spacing: .03em; }
.case-meta { font-size: 11px; letter-spacing: .025em; line-height: 1.4; }
.work-index-label h1 { font: inherit; color: var(--ink); text-transform: uppercase; }
.work-count { font-variant-numeric: tabular-nums; }

.boxed-title { font-weight: 700; letter-spacing: 0; }
/* Square frames with even air around each capital. Helvetica Neue's caps sit low on a
   1em line, so the glyph is raised by half the descender imbalance. */
.boxed-word > span { width: 1.12em; height: 1.12em; overflow: hidden; }
.boxed-title i, .cover-name i { display: inline-block; font-style: normal; }
.boxed-title i { position: relative; top: -.045em; }

.cover-name { display: none; }
@media (hover:hover) and (pointer:fine) {
  .cover-name {
    position: absolute; left: 0; bottom: 0; display: flex; overflow: hidden;
    padding: .38em .55em .32em; color: var(--paper); background: var(--ink);
    font-size: clamp(12px, .95vw, 16px); letter-spacing: .02em; line-height: 1;
    clip-path: inset(0 100% 0 0); transition: clip-path .22s ease;
  }
  .cover-name i { transform: translateY(120%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .project-card:is(:hover,:focus-visible) .cover-name { clip-path: inset(0); }
  .project-card:is(:hover,:focus-visible) .cover-name i { transform: none; transition-delay: calc(50ms + var(--letter) * 16ms); }
}
@media (hover: none) {
  /* Touch: every cover keeps its name visible so each project is identifiable before tapping. */
  .cover-name { display: block; position: absolute; inset: auto auto 0 0; padding: .45em .6em .4em; background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .03em; line-height: 1; }
}

/* Opening a project: the outgoing view clears (app.js), the letters rise into their frames,
   then the cover arrives, then the details. Next and Previous move the cover and letters
   in opposite horizontal directions. */
@media (prefers-reduced-motion:no-preference) {
  /* Typed entrance: each framed cell (border and letter together) fades in left to right,
     continuing from the first row into the second. The grid is laid out from frame one. */
  .boxed-word > span { animation: cell-type .17s ease-out backwards; animation-delay: calc(var(--letter) * 55ms); }
  .case-number { animation: case-detail-in .24s ease-out backwards; }
  [data-enter=sideways] .case-number { animation-name: count-across; }
  .hero-figure { animation: cover-in .5s cubic-bezier(.16,.84,.24,1) .24s backwards; }
  .case-meta, .case-intro { animation: case-detail-in .32s ease-out .4s backwards; }
}
@keyframes cell-type { from { opacity: 0; } }
@keyframes case-detail-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes count-across { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 16px)); } }
@keyframes cover-in {
  from { opacity: 0; translate: var(--travel, 0px) var(--rise, 16px); clip-path: inset(0 0 8% 0); }
  to { opacity: 1; translate: 0 0; clip-path: inset(0); }
}
[data-enter=sideways] .hero-figure { --rise: 0px; }

/* Index: the collection sits in the middle of the first screen. */
.index-page { min-height: calc(100svh - 170px); }
@media (min-width: 701px) { .index-page { display: flex; flex-direction: column; justify-content: center; padding-bottom: 24px; } }
@media (max-width: 700px) {
  /* Phone widths: names stay on every cover whatever the device reports about hover. */
  .cover-name { display: block; position: absolute; inset: auto auto 0 0; clip-path: none; padding: .45em .6em .4em; background: var(--ink); color: var(--paper); font-size: 12px; letter-spacing: .03em; line-height: 1; }
  .cover-name i { transform: none; transition: none; }
}

/* Reading a project. The name and count hold their place in a sticky column while the
   story scrolls in the page's single native scroll, so wheel, trackpad and Page Down work
   with the pointer anywhere. Metadata sits at the top of the story and scrolls away. */
.case-anchor-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.case-anchor .case-number { padding: 0; font-size: 12px; }
.case-anchor .case-number > span { display: inline; margin: 0 0 0 4px; font-size: 12px; }
.case-content .case-meta { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 22px; margin: 0 0 28px; max-width: none; }
.case-content .case-meta p { max-width: 240px; }

@media (min-width: 901px) {
  .case-page {
    --edge: clamp(96px, 9vw, 140px);
    --sticky-top: 112px;
    display: grid; align-items: start;
    grid-template-columns: var(--edge) clamp(170px, 17vw, 250px) minmax(0, 1fr) 64px var(--edge);
    column-gap: clamp(24px, 2.6vw, 44px);
    padding-top: var(--sticky-top);
  }
  .case-anchor { grid-column: 2; grid-row: 1; position: sticky; top: var(--sticky-top); container-type: inline-size; }
  /* Seven framed letters (SYSTEMS, CRALLUX) always fit the column: 7 × 1.12em < 100cqi. */
  .case-anchor .boxed-title { font-size: min(34px, calc(100cqi / 8.1)); }
  .case-content { grid-column: 3; grid-row: 1; width: auto; max-width: 760px; margin: 0; }
  .case-page .gallery-rail { grid-column: 4; grid-row: 1; position: sticky; top: var(--sticky-top); right: auto; width: 100%; }
  .gallery-section { scroll-margin-top: 48px; }
  .mobile-project-nav { display: none; }
  .theme-dark .site-header { position: fixed; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  /* Narrower desktops: keep the arrows, drop their labels so the reading column has room. */
  .case-page { --edge: 64px; }
  .case-pager a > span:not(:first-child) { display: none; }
  .case-pager .previous-project { left: 18px; } .case-pager .next-project { right: 18px; }
}
@media (max-height: 720px) and (min-width: 901px) {
  .case-page { --sticky-top: 96px; }
  .theme-dark .site-header { padding-top: 22px; min-height: 0; }
}

/* Narrow screens: a compact one-line name and count stays at the top, leaving room to read;
   Previous / All / Next stays at the bottom. */
@media (max-width: 900px) {
  .case-page { display: block; }
  .theme-dark .site-header { position: relative; pointer-events: auto; min-height: 76px; }
  .case-anchor {
    position: sticky; top: 0; z-index: 12; background: var(--paper);
    padding: 10px 22px; margin: 0 0 22px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  }
  .case-anchor-inner { flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 12px; }
  .case-anchor .boxed-title { flex-direction: row; flex-wrap: nowrap; gap: .32em; font-size: clamp(14px, 4.4vw, 18px); }
  .case-anchor .case-number { white-space: nowrap; font-size: 11px; }
  .case-anchor .case-number > span { font-size: 11px; }
  .case-content { width: auto; margin: 0 22px; }
  .case-content .case-meta { grid-template-columns: 1fr; gap: 10px; }
  .case-pager, .gallery-rail { display: none; }
  .gallery-section { scroll-margin-top: 72px; }
  .mobile-project-nav { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; background: var(--paper); border-top: 1px solid #77796e; padding: 16px 22px; z-index: 10; }
  .mobile-project-nav a { padding: 8px 0; }
}
@media (max-width: 360px) { .case-anchor { padding: 9px 16px; } .case-content { margin: 0 16px; } .case-anchor .boxed-title { font-size: 13px; } }

/* Supplied logo marks (Audora): the symbol sits centred on its own background so the PNG
   edges disappear, and the wordmark replaces the typed label with the same reveal. */
.card-picture-mark, .next-preview-mark img { background: var(--card-bg); }
.card-picture-mark > img, .next-preview-mark img { object-fit: contain; padding: 22%; filter: none; }
.project-card:hover .card-picture-mark > img, .project-card:focus-visible .card-picture-mark > img { transform: scale(1.06); }
.cover-logo img, .project-card:is(:hover,:focus-visible) .cover-logo img { filter: none; transform: none; object-fit: fill; }
.cover-logo { padding: 0; background: none; line-height: 0; }
.cover-logo img { display: block; height: clamp(24px, 2vw, 32px); width: auto; }
.next-title .next-logo { display: block; height: clamp(34px, 4vw, 58px); width: auto; align-self: center; }
.next-preview-mark img { padding: 16%; }
@media (max-width: 700px) { .cover-logo { padding: 0; background: none; } .cover-logo img { height: 24px; } .next-title .next-logo { height: 34px; } }
@media (hover: none) { .cover-logo { padding: 0; background: none; } }

/* Transparent icon artwork blends into both the index and transition layers. */
.card-picture.card-picture-icon { aspect-ratio: 1; background: transparent; }
.card-picture-icon > img, .icon-spin > img, .card-picture-icon > .icon-motion {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: none;
  transform: scale(var(--icon-scale, 1)); transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .35s ease;
}
.project-card:is(:hover,:focus-visible) .card-picture-icon > img,
.project-card:is(:hover,:focus-visible) .icon-spin > img,
.project-card:is(:hover,:focus-visible) .card-picture-icon > .icon-motion { filter: none; transform: scale(calc(var(--icon-scale, 1) * 1.03)); }
/* The ring turns in depth behind the stationary star. */
@property --ring-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.card-picture-icon .icon-hover { opacity: 0; }
.icon-spin { position: absolute; inset: 0; transform-origin: 50% 50%; transform: perspective(650px) rotateY(var(--ring-angle, 0deg)); }
.project-card:focus-visible .icon-hover { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .project-card:hover .icon-hover { opacity: 1; } }
@property --sprite-frame { syntax: "<integer>"; inherits: false; initial-value: 0; }
/* Blender gesture as a frame strip: plays forward on hover/focus and back on exit. */
.icon-motion { display: none; background: var(--sprite) calc(100% * var(--sprite-frame) / (var(--frames) - 1)) 0 / calc(var(--frames) * 100%) 100% no-repeat; }
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .icon-motion { display: block; transition: --sprite-frame .62s linear, transform .6s cubic-bezier(.2,.7,.2,1); }
  .card-picture-icon.strip-ready > .icon-rest { visibility: hidden; }
  .card-picture-icon:not(.strip-ready) > .icon-motion { display: none; }
  .motion-ready .project-card:focus-visible .icon-motion:not(.icon-motion-once) { --sprite-frame: calc(var(--frames) - 1); }
  .motion-ready .project-card:focus-visible .icon-motion-once { animation: icon-once .9s linear 1; }
  .motion-ready .identity:focus-visible .mark-motion { --sprite-frame: calc(var(--frames) - 1); }
  @media (hover: hover) and (pointer: fine) {
    .motion-ready .project-card:hover .icon-motion:not(.icon-motion-once) { --sprite-frame: calc(var(--frames) - 1); }
    .motion-ready .project-card:hover .icon-motion-once { animation: icon-once .9s linear 1; }
    .motion-ready .identity:hover .mark-motion { --sprite-frame: calc(var(--frames) - 1); }
  }
}

/* Header mark: the folded swift. */
.identity-mark.identity-swift { width: 56px; height: 56px; border: 0; border-radius: 0; transform: none; display: block; }
.identity-swift img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.theme-dark .identity-swift img { filter: invert(1); }
/* GovSift's still is the final score, so its gesture plays once: the needle sweeps down and
   back up to the supplied pose. */
@keyframes icon-once { from { --sprite-frame: 0; } to { --sprite-frame: calc(var(--frames) - 1); } }
.identity-swift { position: relative; }
.identity-swift .mark-motion { position: absolute; inset: 0; transform: none; }
.theme-dark .identity-swift .mark-motion { filter: invert(1); }
@media (max-width: 700px) { .identity-mark.identity-swift { width: 44px; height: 44px; } }

/* A loose scatter instead of a ladder: uneven gaps and heights, still read 01 → 05. */
@media (min-width: 1101px) {
  .project-field { height: 440px; }
  .project-card-1 { left: 4%; top: 64px; }
  .project-card-2 { left: 22.5%; top: 196px; }
  .project-card-3 { left: 43.5%; top: 14px; }
  .project-card-4 { left: 61.5%; top: 150px; }
  .project-card-5 { left: 81%; top: 88px; }
}
@media (min-width: 1600px) {
  .project-field { height: 540px; }
  .project-card-1 { top: 80px; } .project-card-2 { top: 246px; } .project-card-3 { top: 18px; } .project-card-4 { top: 188px; } .project-card-5 { top: 110px; }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .project-field { height: 700px; }
  .project-card-1 { left: 0; top: 40px; } .project-card-2 { left: 36%; top: 0; } .project-card-3 { left: 71%; top: 96px; }
  .project-card-4 { left: 12%; top: 370px; } .project-card-5 { left: 52%; top: 430px; }
}
@media (max-width: 700px) {
  .project-field .project-card { margin-top: 0; }
  .project-field .project-card-2 { margin-top: 58px; }
  .project-field .project-card-3 { margin-top: 10px; }
  .project-field .project-card-4 { margin-top: 84px; }
  .project-field .project-card-5 { margin-top: 26px; }
}

/* Audora wordmark v2 (transparent, 892 × 256): black on the light card, white on dark links.
   The ink runs nearly to the image edges, so the label pads it inside the reveal mask. */
.cover-name.cover-logo { padding: 7px 9px 6px; background: none; line-height: 0; }
.cover-logo img { height: clamp(22px, 1.8vw, 28px); width: auto; aspect-ratio: 892 / 256; }
.next-title .next-logo { aspect-ratio: 892 / 256; }
@media (max-width: 700px) { .cover-name.cover-logo { padding: 6px 8px 5px; background: none; } .cover-logo img { height: 22px; } }
@media (hover: none) { .cover-name.cover-logo { background: none; } }

/* Only the moving cutout is visible during the orbit. */
.card-picture-orbit.orbit-playing > :is(.icon-rest, .icon-hover) { visibility: hidden; }
.card-picture-orbit .icon-orbit { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card-picture-orbit.orbit-playing .icon-orbit { opacity: 1; }
.project-card:is(:hover,:focus-visible) .card-picture-orbit .icon-orbit { transform: scale(1.03); }
.card-picture-orbit.orbit-active .icon-hover { opacity: 1; }

/* The flying swift (homepage). Purely decorative: fixed, click-through, hidden from assistive tech. */
.swift-flight {
  position: fixed; left: 0; top: 0; width: 84px; height: 84px; z-index: 40; pointer-events: none;
  background: var(--swift-sprite) 0 0 / 1300% 100% no-repeat; transform-origin: 50% 50%; will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .swift-flight { display: none; } }

/* Index → project flight (see flyIntoProject in app.js). */
.cover-flight { position: fixed; z-index: 60; pointer-events: none; overflow: hidden; will-change: left, top, width, height; }
.cover-flight .cover-flight-art { position: absolute; left: 50%; top: 50%; height: 100%; width: auto; aspect-ratio: 1; transform: translate(-50%, -50%); background: transparent; overflow: visible; }
.cover-flight-hero { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.route-ghost { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.route-ghost * { pointer-events: none; }
.case-page.cover-pending .hero-figure { visibility: hidden; }
.case-page[data-arrival=cover] .hero-figure { animation: none; }
.case-page.title-pending :is(.boxed-word > span, .case-number, .case-meta, .case-intro) { animation-play-state: paused; }
.case-page.title-pending :is(.case-meta, .case-intro) { opacity: 0; }
.case-page.title-pending :is(.gallery-rail, .case-pager, .mobile-project-nav, .contribution-section, .outcomes-section, .next-case, .case-progress, .hero-figure figcaption) { opacity: 0; }
.case-page[data-arrival=cover] :is(.gallery-rail, .case-pager, .mobile-project-nav, .contribution-section, .outcomes-section, .next-case, .case-progress, .hero-figure figcaption) { transition: opacity .45s ease .15s; }

/* One header swift at a time: the motion strip replaces the still once it has loaded. */
@media (prefers-reduced-motion: no-preference) { .motion-ready.mark-strip-ready .identity-swift > img { visibility: hidden; } }

/* Selected Work ↔ About handoff (app.js openAbout / closeAbout). Fine outlines over still
   copies of the page; never takes pointer events, and the real About text stays selectable. */
.about-handoff { position: fixed; inset: 0; z-index: 55; pointer-events: none; }
.about-handoff * { animation: none !important; pointer-events: none; }
.handoff-frame { position: fixed; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); }
.handoff-frame.handoff-lead { border-color: color-mix(in srgb, var(--ink) 36%, transparent); }
.about-return .project-card { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  /* Opened directly or from a case study: a short rise, top to bottom. */
  .about-page > :not(h1) { animation: case-detail-in .42s cubic-bezier(.2,.7,.2,1) backwards; }
  .about-page > .about-profile { animation-delay: 200ms; }
  .about-page > .about-bottom { animation-delay: 260ms; }
  /* The heading carries the entrance: each visual line rises through its own mask. */
  .about-page h1 .hl-in { animation: line-up .45s cubic-bezier(.22,1,.36,1) backwards; animation-delay: calc(60ms + var(--line) * 40ms); }
  /* Opened from the index: the heading starts while the frame is still settling (lands ~580ms),
     then the first line of body copy, then the rest. */
  .about-page[data-arrival=frame] > .eyebrow { animation: case-detail-in .3s ease-out .36s backwards; }
  .about-page[data-arrival=frame] h1 .hl-in { animation-delay: calc(380ms + var(--line) * 40ms); }
  .about-page[data-arrival=frame] > .about-profile { animation: case-detail-in .3s ease-out .54s backwards; }
  .about-page[data-arrival=frame] > .about-bottom,
  .about-page[data-arrival=frame] ~ .site-footer { animation: case-detail-in .24s ease-out .66s backwards; }
  .about-page h1[data-static] .hl-in { animation: none; }
}
/* Line masks: flex keeps the padded wrappers' negative margins from collapsing, so the
   heading's layout is identical to plain text; the padding lets descenders show at rest. */
.about-page h1.masked { display: flex; flex-direction: column; }
.about-page h1 .hl { display: block; overflow: hidden; padding: .14em 0 .22em; margin: -.14em 0 -.22em; }
.about-page h1 .hl-in { display: block; }
@keyframes line-up { from { transform: translateY(calc(100% + .22em)); } }

/* Give the panoramic Audora artwork more height while keeping its central lettering in frame. */
.case-page[data-project="audora"] .hero-figure img { aspect-ratio: 2 / 1; object-position: center; }
@media (min-width: 1101px) {
  .case-page[data-project="audora"] { --edge: clamp(100px, 7vw, 134px); grid-template-columns: var(--edge) clamp(170px, 14vw, 220px) minmax(0, 1fr) 64px var(--edge); }
  .case-page[data-project="audora"] .case-content { max-width: none; }
  .case-page[data-project="audora"] .case-content > :not(.overview-section),
  .case-page[data-project="audora"] .case-intro { max-width: 760px; }
}
@media (max-width: 900px) {
  .case-page[data-project="audora"] .hero-figure { width: 100vw; margin-inline-start: calc(50% - 50vw); }
  .case-page[data-project="audora"] .hero-figure img { aspect-ratio: 8 / 5; }
}

/* Case study → case study (app.js switchProject). The incoming page's own entrance is driven
   from script, so its CSS entrance stays off; the covers bend as thin slices drawn on one canvas over the page. */
.case-page.switch-in :is(.boxed-word > span, .case-number, .case-meta, .case-intro, .hero-figure) { animation: none; }
.switch-ghost * { animation: none !important; transition: none !important; }
.switch-canvas { position: fixed; left: 0; top: 0; z-index: 56; pointer-events: none; }

/* Statistics in case-study text (app.js stats()). */
.case-page strong.stat { font-weight: 700; color: var(--ink); }

html:has(#resume-dialog[open]) { overflow: hidden; }
#resume-dialog {
  margin: auto; padding: 0; border: 0; width: min(700px, calc(100% - 24px));
  max-height: none; background: transparent; color: #252623; opacity: 0;
  transform: translateY(14px) scale(.985);
}
#resume-dialog[open] { opacity: 1; transform: none; }
#resume-dialog::backdrop { background: rgb(15 16 15 / 0); }
#resume-dialog[open]::backdrop { background: rgb(15 16 15 / .60); }
.resume-panel { display: flex; flex-direction: column; max-height: min(88dvh, 940px); background: #efeee9; }
.resume-tools { display: flex; align-items: center; gap: 18px; padding: 12px clamp(16px, 4vw, 32px); border-bottom: 1px solid #c7c7c0; font: 12px var(--mono); }
.resume-tools h2 { margin-right: auto; font: inherit; text-transform: uppercase; }
.resume-tools button { background: transparent; border: 0; color: inherit; padding: 10px 0; }
.resume-document { overflow: auto; overscroll-behavior: contain; padding: clamp(20px, 5vw, 48px); line-height: 1.55; font-size: 15px; }
.resume-document h3 { margin: 1.6em 0 .45em; font-size: 19px; }
.resume-document h3:first-child { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.15; }
.resume-document h4 { margin: 1.1em 0 0; font-size: 16px; }
.resume-role, .resume-contact { font-size: 13px; color: #51514c; }
.resume-contact { margin: .75em 0 1em; }
.resume-document ul { padding-left: 1.25em; margin: .5em 0; }
.resume-document a, .resume-tools a { text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  #resume-dialog { transition: opacity .2s, transform .24s cubic-bezier(.22,1,.36,1), display .24s allow-discrete, overlay .24s allow-discrete; }
  #resume-dialog::backdrop { transition: background-color .22s, display .24s allow-discrete, overlay .24s allow-discrete; }
  @starting-style {
    #resume-dialog[open] { opacity: 0; transform: translateY(14px) scale(.985); }
    #resume-dialog[open]::backdrop { background-color: transparent; }
  }
}

.about-profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); align-items: start; gap: clamp(24px, 4vw, 56px); margin-top: 40px; }
.about-profile .about-body { margin: 0; }
.about-photo { width: 100%; height: auto; }
@media (min-width: 701px) {
  .about-photo-frame { position: relative; align-self: stretch; }
  .about-photo { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center 60%; }
}
@media (max-width: 700px) {
  .about-profile { display: flex; flex-direction: column; gap: 24px; margin-top: 30px; }
  .about-photo-frame { order: 1; width: min(100%, 320px); }
}

.index-stats {
  display: grid; gap: 3px; padding-top: 9px;
  font: 12px/1.4 var(--sans); color: var(--muted);
  opacity: 0; visibility: hidden; transform: translateY(4px);
}
.index-stats strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.project-card:focus-visible .index-stats { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) {
  .project-card:hover .index-stats { opacity: 1; visibility: visible; transform: none; }
}
@media (hover: none) {
  .project-card .index-stats { opacity: 1; visibility: visible; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .project-card .index-stats { transition: opacity .2s ease-out, transform .2s ease-out; }
}
@media (min-width: 701px) {
  .project-field { margin-bottom: max(65px, 5vw); }
}

.case-page[data-project="wpdbot"] .hero-figure img { aspect-ratio: 1; }
/* The boxed title's reveal is scripted (revealTitle in app.js) on every animated entry; the CSS
   typing animation stands down so the two never overlap. */
.case-page.title-scripted :is(.boxed-word > span, .case-number) { animation: none; }

/* Case-study reading layout. One centred reading column: headings, descriptions and metric
   groups centre within it, long paragraphs keep a 55–65 character measure, and each section is
   separated by a single rule with a modest gap (no empty bands, no stacked dividers). */
.case-page .case-intro { padding: 46px 0 0; text-align: center; }
.case-page .case-intro h2 { margin-inline: auto; }
.case-page .case-intro > h2 + p { max-width: 60ch; margin-inline: auto; }
.case-page .glance-strip { margin: 30px auto 0; border-bottom: 0; padding-bottom: 0; text-align: center; }
.case-page .glance-strip > div { align-items: center; }
.case-page .contribution-section { padding-top: 46px; }
.case-page .section-label { margin-bottom: 26px; }
.case-page .contribution-section h2, .case-page .outcomes-section h2 { text-align: center; margin-inline: auto; }
.case-page .contribution-lead { max-width: 58ch; margin-inline: auto; text-align: center; }
.case-page .contribution-section ul { max-width: 60ch; margin: 24px auto 34px; }
.case-page .outcomes-section { padding-top: 56px; }
.case-page .metrics { margin: 32px auto 22px; text-align: center; }
.case-page .metrics > div { align-items: center; }
.case-page .metric-note { max-width: 62ch; margin-inline: auto; text-align: center; }
.case-page .outcomes-section > .text-link { display: flex; width: fit-content; margin-inline: auto; }
.case-page .next-case { margin-top: 60px; }
@media (max-width: 900px) {
  .case-page .case-intro { padding-top: 34px; }
  .case-page .contribution-section { padding-top: 38px; }
  .case-page .outcomes-section { padding-top: 46px; }
  .case-page .contribution-section ul { margin: 20px auto 28px; }
  .case-page .next-case { margin-top: 46px; }
  /* Sticky name bar above, Previous / All / Next below: keyboard paging, find-in-page and
     focus scrolling keep the first and last lines clear of both. */
  html:has(.case-page) { scroll-padding-top: 64px; scroll-padding-bottom: 76px; }
}
/* Section shortcuts: each section's label lands on the sticky title's line, clear of the fixed
   header; Overview returns to the very top. On narrow screens the scroll-padding above clears
   the sticky name bar, so the sections need no extra margin. */
@media (min-width: 901px) {
  .case-page .overview-section { scroll-margin-top: 100vh; }
  .case-page .contribution-section { scroll-margin-top: calc(var(--sticky-top) - 46px); }
  .case-page .outcomes-section { scroll-margin-top: calc(var(--sticky-top) - 56px); }
}
@media (max-width: 900px) { .case-page .gallery-section { scroll-margin-top: 0; } }
