/* Shared project previews, index, and case-study template. */
/* Buttons are rounded rectangles: near-black with a thin edge for secondary actions, white for the main action on a page. */
.outline-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:0 20px;border:1px solid var(--edge);border-radius:var(--radius);background:var(--card);font:600 15px var(--sans);letter-spacing:-.01em;color:var(--paper);white-space:nowrap;transition:background .2s}
.outline-link:hover{background:var(--card-hover)}
.outline-link>span,.text-link>span{font-size:16px}
/* › and ‹ for links within the site; links to other sites keep ↗. Drawn as a mask so they take the text colour. */
.chevron{display:inline-block;flex:none;width:1em;height:1em;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat}
.chevron.back{transform:scaleX(-1)}
.section-heading .outline-link,.project-links .outline-link,.index-bottom .outline-link,.project-pagination .next-project{background:var(--paper);border-color:var(--paper);color:#000}
.section-heading .outline-link:hover,.project-links .outline-link:hover,.index-bottom .outline-link:hover,.project-pagination .next-project:hover{background:#d2d2d7;border-color:#d2d2d7}
.text-link{color:var(--link);display:inline-flex;align-items:center;gap:8px;font-size:17px}
.text-link:hover{color:var(--link-hover);text-decoration:underline;text-underline-offset:5px}
.section-heading .outline-link{flex-shrink:0;margin-bottom:5px}

/* Each project preview is one near-black card: image on top, text below. */
.project-grid{gap:24px}
.project-card{min-width:0;background:var(--card);border:1px solid var(--edge);border-radius:var(--radius);overflow:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),background .2s}
.project-card:hover{transform:translateY(-4px);background:#161618}
.project-card:focus-visible{outline-offset:4px}
.project-card .project-art,.project-card:hover .project-art{border:0;border-radius:0;transform:none;filter:none}
.project-card .project-info{gap:14px;padding:20px 22px 22px}
.project-card .project-number{font:600 13px var(--sans);color:var(--tertiary);padding-top:5px;font-variant-numeric:tabular-nums}
.project-card .project-description strong{font-size:21px;font-weight:600;line-height:1.25;letter-spacing:-.02em}
.project-card .project-description>span{max-width:540px;font-size:15px;line-height:1.5;color:var(--soft)}
.project-card .project-type{display:none}
.card-arrow{flex:none;display:grid;place-items:center;width:34px;height:34px;border:1px solid var(--edge);border-radius:var(--radius);background:var(--card);color:var(--paper);font-size:16px;line-height:1;transition:background .2s,border-color .2s}
.project-card:hover .card-arrow{background:var(--link);border-color:var(--link);color:#000}
.motion-paused .project-card{transition:none}

/* Symbolic illustrations, used when a project has no cover photo. */
.work-art{isolation:isolate;background:#050709;color:var(--sage-light);aspect-ratio:1.4}
.work-art::before{content:'';position:absolute;inset:0;background-image:linear-gradient(var(--sage-faint) 1px,transparent 1px),linear-gradient(90deg,var(--sage-faint) 1px,transparent 1px);background-size:36px 36px;mask-image:linear-gradient(90deg,transparent,#000)}
.work-art .art-topline{font:600 11px/1.6 var(--sans);letter-spacing:.02em;top:26px;left:28px;right:28px;gap:18px}
.work-art .art-topline>span:last-child{white-space:nowrap;color:var(--sage-muted)}
.work-art-title{position:absolute;left:7%;top:24%;font-size:clamp(34px,3.7vw,54px);line-height:1.08;font-weight:700;letter-spacing:-.03em;z-index:2;max-width:75%;text-shadow:0 2px 20px #000}
.work-art-title::first-line{color:#f1f2f4}
.work-illustration{color:var(--sage);position:absolute;width:66%;height:73%;right:-9%;bottom:6%;opacity:.52;z-index:1}
.work-art .art-bottomline{font:500 11px/1.5 var(--sans);letter-spacing:.02em;left:28px;bottom:24px;right:28px;color:var(--sage-muted);z-index:2}
.art-chip .work-illustration{right:-5%;bottom:7%;opacity:.62}
.art-landmarks .work-illustration{right:-6%;bottom:6%}
.art-robot .work-illustration{width:77%;right:-15%;bottom:3%}
.art-community .work-art-title{font-size:clamp(29px,3.3vw,47px)}
.art-community .work-illustration{right:-13%;bottom:1%}
.featured-project .work-art,.featured-project .photo-art{aspect-ratio:2.65}
.featured-project .work-art-title{top:27%;left:4%;font-size:clamp(44px,5.6vw,78px);max-width:55%}
.featured-project .work-illustration{width:45%;height:100%;right:5%;bottom:0;opacity:.85}
.featured-project .work-art .art-topline,.featured-project .work-art .art-bottomline{left:4%;right:4%}
.featured-project .project-type{display:block;font:500 13px var(--sans);letter-spacing:0;color:var(--soft)}
.photo-art{aspect-ratio:1.4;background:#080b10}
.photo-art img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s}
.photo-art picture{display:contents}
.project-card:hover .photo-art img{transform:scale(1.025)}

/* Interior pages have a short introduction and no homepage animation dependency. */
.inner-page{background:#000}
.inner-page .site-header{position:relative}
.inner-page .site-header nav a[aria-current]{color:var(--paper)}
.inner-page #stars.is-ready{opacity:.52}
.inner-page main{z-index:1}
.inner-page .section-shell{width:min(1220px,82%)}
.inner-page h1{max-width:1050px}
.portfolio-index{padding-top:38px;padding-bottom:85px}
.index-heading{max-width:850px;margin-bottom:56px}
.index-heading h1{font-size:clamp(62px,7.3vw,104px);line-height:1.02;letter-spacing:-.035em;margin:0}
.index-toolbar{border-top:1px solid var(--divider);padding:20px 0 24px;display:flex;justify-content:space-between;gap:20px;font:600 14px var(--sans);color:var(--soft)}
.archive-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1001px){
  /* Three narrower cards per row: keep the artwork titles clear of the illustrations. */
  .archive-grid .work-art-title{font-size:clamp(28px,2.6vw,40px)}
  .archive-grid .art-community .work-art-title{font-size:clamp(25px,2.3vw,35px)}
}
.index-bottom{margin-top:72px;padding-top:34px;border-top:1px solid var(--divider);display:flex;align-items:center;justify-content:space-between;gap:24px}
.index-bottom p{font:700 28px var(--sans);letter-spacing:-.025em;color:var(--paper);margin:0}

/* One template, with optional links, highlights, and any number of images. */
.project-page{padding-top:38px;padding-bottom:84px}
/* Top row of interior pages: the folder-style path (home / projects / slug) on the left and a
   way back on the right, in the same place on every page. */
.page-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:14px}
.page-back{flex-shrink:0}
.breadcrumb{display:flex;justify-content:flex-start;gap:10px;flex-wrap:wrap;font:500 15px/1.5 var(--sans);color:var(--tertiary)}
.breadcrumb a{font:inherit;color:var(--link)}
.breadcrumb a:hover{color:var(--link-hover)}
.project-heading{max-width:970px}
.project-heading h1{font-size:clamp(48px,6.8vw,90px);letter-spacing:-.035em;line-height:1.04;margin-bottom:22px;overflow-wrap:break-word}
.project-summary{font-size:19px;line-height:1.55;color:var(--soft);max-width:660px;margin:0}
.project-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
/* Role, timeline, and status side by side in one card. */
.project-facts{display:grid;grid-template-columns:1.6fr 1fr 1fr;margin:44px 0 0;background:var(--card);border:1px solid var(--edge);border-radius:var(--radius)}
.project-facts>div{padding:20px 24px}
.project-facts>div+div{border-left:1px solid var(--edge)}
.project-facts dt{font:500 13px var(--sans);color:var(--tertiary);margin-bottom:6px}
.project-facts dd{font-size:16px;line-height:1.5;margin:0;color:var(--paper)}
.project-tags{display:flex;gap:8px;flex-wrap:wrap;list-style:none;margin:20px 0 40px;padding:0}
.project-tags li{font:500 13px/1.4 var(--sans);border:1px solid var(--edge);border-radius:var(--radius);padding:6px 12px;color:var(--paper);background:var(--card)}
.project-cover{margin:0 0 50px}
.project-cover .work-art,.project-cover .photo-art{aspect-ratio:2.35;border-radius:var(--radius)}
.project-cover .work-art-title{font-size:clamp(44px,5.8vw,82px);left:5%;top:25%;max-width:57%}
.project-cover .work-illustration{width:46%;height:100%;right:3%;bottom:0;opacity:.85}
.project-cover .art-community .work-art-title{font-size:clamp(35px,4.9vw,67px)}
.project-cover .art-topline,.project-cover .art-bottomline{left:5%;right:5%}
.project-cover figcaption{font-size:13px;line-height:1.5;color:var(--tertiary);margin-top:12px}
.project-cover figcaption:empty{display:none}
/* The frame takes the photo's own shape (no letterboxing), up to the page width and 720px tall. */
.project-cover .photo-art{width:fit-content;max-width:100%;height:auto;aspect-ratio:auto}
.project-cover .photo-art img{width:auto;max-width:100%;height:auto;max-height:720px}
/* Headline numbers, each in its own card. */
.project-highlights{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:0 0 64px}
.project-highlights>div{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:8px;padding:24px;background:var(--card);border:1px solid var(--edge);border-radius:var(--radius)}
.project-highlights dt{font-size:14px;line-height:1.45;color:var(--soft);max-width:280px}
.project-highlights dd{font-size:clamp(34px,4vw,48px);font-weight:700;letter-spacing:-.03em;line-height:1.1;margin:0;color:var(--headline)}
.case-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:9%;align-items:start}
.case-nav{display:flex;flex-direction:column;align-items:flex-start;gap:10px;position:sticky;top:24px;margin:0;padding-top:5px}
.case-nav .eyebrow{background:none;padding:0;font-size:13px;color:var(--tertiary);margin:0 0 2px}
.case-nav a{font-size:13px;line-height:1.4;font-weight:500;color:var(--soft)}
.case-nav a:hover{color:var(--link)}
.case-section{margin-bottom:62px;scroll-margin-top:40px}
.case-section>.eyebrow{margin-bottom:16px}
.case-section h2{font-size:34px;line-height:1.2;font-weight:700;letter-spacing:-.025em;margin:0 0 22px}
.case-section p:not(.eyebrow),.case-section li{font-size:17px;line-height:1.65;color:var(--soft)}
.case-section p:not(.eyebrow){margin:0 0 20px}
.case-section ul{padding-left:20px;margin:18px 0 0}
.case-section li{padding-left:7px;margin-bottom:9px}
.work-section{margin-top:34px}
.work-section h3{font-size:21px;font-weight:600;color:var(--paper);line-height:1.35;margin:0 0 12px;letter-spacing:-.02em}
.project-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 20px}
.gallery-item{margin:0;min-width:0}
.gallery-wide{grid-column:1/-1}
/* Like the cover, each frame takes its image's shape: tall photos aren't letterboxed into a wide box. */
.gallery-item a{display:block;width:fit-content;max-width:100%;background:var(--card);border-radius:var(--radius);overflow:hidden}
.gallery-item img{display:block;width:auto;max-width:100%;height:auto;max-height:650px}
.gallery-item video{display:block;width:auto;max-width:100%;height:auto;max-height:650px;margin:0 auto;background:var(--card);border-radius:var(--radius)}
.gallery-item figcaption{font-size:13px;line-height:1.5;color:var(--tertiary);margin-top:10px}
/* A slide deck: one slide at a time, framed like the gallery, with square buttons and a counter below (site.js).
   Without JavaScript the slides scroll sideways. */
.slide-track{display:flex;gap:16px;margin:0;padding:0;list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;border-radius:var(--radius)}
.slide-track:focus-visible{outline:2px solid var(--link);outline-offset:4px}
.slide-deck.is-ready .slide-track{scrollbar-width:none}
.slide-deck.is-ready .slide-track::-webkit-scrollbar{display:none}
.slide-track .slide{flex:0 0 100%;margin:0;padding:0;scroll-snap-align:start}
.slide img{display:block;width:100%;height:auto;aspect-ratio:16/9;border-radius:var(--radius);background:var(--card)}
.slide-deck.is-ready .slide img{cursor:pointer}
.slide-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px}
.slide-controls{display:flex;align-items:center;gap:10px}
.slide-controls[hidden]{display:none}
.slide-step{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--edge);border-radius:var(--radius);background:var(--card);color:var(--paper);font-size:16px;cursor:pointer;transition:background .2s,color .2s}
.slide-step:hover{background:var(--card-hover)}
.slide-step:disabled{background:var(--card);color:#48484a;cursor:default}
.slide-count{min-width:4.5em;text-align:center;font:500 14px var(--sans);color:var(--soft);font-variant-numeric:tabular-nums}
.slide-pdf{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--link);transition:color .2s}
.slide-pdf:hover{color:var(--link-hover)}
/* Bottom of each project page: back to the index, and on to the next project (the main action, in white). */
.project-pagination{border-top:1px solid var(--divider);padding-top:33px;margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:35px}

@media(min-width:1500px){.work-art-title{font-size:54px}}
@media(max-width:1000px){
  .inner-page .section-shell{width:86%}
  .archive-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .case-layout{grid-template-columns:190px minmax(0,1fr);gap:6%}
  .featured-project .project-type{display:none}
  .work-art .art-topline{left:22px;right:22px}
  .work-art .art-bottomline{left:22px;right:22px}
  .work-art-title{font-size:clamp(30px,4vw,46px)}
  .art-community .work-art-title{font-size:clamp(27px,3.7vw,39px)}
}
@media(max-width:650px){
  .section-heading .outline-link{margin-top:20px;margin-bottom:0}
  .project-grid{gap:16px}
  .project-card .project-info{gap:10px;padding:16px 18px 18px}
  .project-card .project-description strong{font-size:20px}
  .project-card .project-description>span{font-size:14px}
  .project-card .project-number{font-size:12px}
  .card-arrow{width:30px;height:30px;font-size:14px}
  .work-art,.featured-project .work-art,.featured-project .photo-art,.photo-art{aspect-ratio:1.35}
  .work-art-title,.featured-project .work-art-title{font-size:clamp(33px,8.8vw,50px);left:7%;top:26%;max-width:80%}
  .work-illustration,.featured-project .work-illustration{width:66%;height:73%;right:-8%;bottom:5%;opacity:.5}
  .work-art .art-topline,.featured-project .work-art .art-topline{top:22px;left:7%;right:7%;font-size:10px}
  .work-art .art-bottomline,.featured-project .work-art .art-bottomline{bottom:21px;left:7%;right:7%;font-size:10px}
  .art-community .work-art-title{font-size:clamp(29px,7.9vw,43px)}
  .portfolio-index{padding-top:27px;padding-bottom:58px}
  .index-heading{margin-bottom:40px}
  .index-heading h1{font-size:clamp(54px,13vw,78px)}
  .index-toolbar{font-size:13px;padding:18px 0}
  .archive-grid{grid-template-columns:1fr}
  .index-bottom{margin-top:52px;align-items:flex-start;flex-direction:column;gap:18px}
  .index-bottom p{font-size:24px}
  .project-page{padding-top:27px;padding-bottom:55px}
  .page-bar{flex-direction:column-reverse;align-items:flex-start;gap:22px;margin-bottom:18px}
  .breadcrumb{font-size:14px;gap:8px}
  .project-heading h1{font-size:clamp(41px,10.5vw,62px);margin-bottom:18px}
  .project-summary{font-size:17px;line-height:1.55}
  .project-facts{grid-template-columns:1fr 1fr;margin-top:32px}
  .project-facts>div{padding:16px 18px}
  .project-facts>div:first-child{grid-column:1/-1;border-bottom:1px solid var(--edge)}
  .project-facts>div+div{border-left:0}
  .project-facts>div:last-child{border-left:1px solid var(--edge)}
  .project-facts dd{font-size:15px}
  .project-facts dt{font-size:12px}
  .project-tags{gap:6px;margin-bottom:30px}
  .project-tags li{font-size:12px;padding:6px 12px}
  .project-cover{margin-bottom:30px}
  .project-cover .work-art{aspect-ratio:1.3}
  .project-cover .work-art-title{font-size:clamp(33px,8.8vw,51px);max-width:80%;left:7%;top:26%}
  .project-cover .art-community .work-art-title{font-size:clamp(30px,8vw,43px)}
  .project-cover .work-illustration{width:66%;height:73%;right:-8%;bottom:5%;opacity:.5}
  .project-cover .art-topline,.project-cover .art-bottomline{left:7%;right:7%}
  .project-highlights{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:43px}
  .project-highlights>div{padding:18px}
  .project-highlights dd{font-size:32px}
  .project-highlights dt{font-size:13px}
  .case-layout{display:block}
  .case-nav{position:static;flex-direction:row;flex-wrap:wrap;gap:10px 20px;padding:0 0 24px;margin-bottom:39px;border-bottom:1px solid var(--divider)}
  .case-nav .eyebrow{width:100%;margin-bottom:0}
  .case-nav a{font-size:13px}
  .case-section{margin-bottom:45px}
  .case-section h2{font-size:29px}
  .case-section p:not(.eyebrow),.case-section li{font-size:16px;line-height:1.6}
  .work-section h3{font-size:19px}
  .project-gallery{grid-template-columns:1fr;gap:24px}
  .gallery-wide{grid-column:auto}
  .project-pagination{align-items:stretch;flex-direction:column-reverse;gap:12px}
  .project-pagination .outline-link{white-space:normal;text-align:center}
}


/* Full-width button under the homepage previews, one grid gap below them. */
.more-projects{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;margin-top:24px;padding:20px;border:1px solid var(--edge);border-radius:var(--radius);background:var(--card);font:600 16px var(--sans);letter-spacing:-.01em;color:var(--paper);transition:background .2s}
.more-projects:hover,.more-projects:focus-visible{background:var(--card-hover)}
.more-projects>span{font-size:17px}
@media(max-width:650px){.more-projects{margin-top:16px;padding:18px 16px;font-size:15px}}
/* With the button closing the section, leave the same space below it as above it instead of the full section padding. */
.projects-section:has(>.more-projects){padding-bottom:56px}
@media(max-width:650px){.projects-section:has(>.more-projects){padding-bottom:35px}}
