/* Preserve the existing works heading geometry and match the closing band to it. */
#explore{
 background:#aa8766;
 color:#fff;
 position:relative;
 isolation:isolate;
 padding-bottom:0;
}
/* The texture is sized to each band, never to the full six-image gallery. */
#explore::before{
 content:'';
 position:absolute;
 z-index:-1;
 pointer-events:none;
 top:0;left:0;right:0;
 height:var(--works-heading-height,500px);
 background:#aa8766 url('/assets/pitched-hotel-beige-texture.jpg') center / cover no-repeat;
}
#explore :is(h2,h3,p,small,span,sup,a,button,input,.result-line,.card-meta,.card-caption){color:#fff}
#explore input::placeholder{color:#fff;opacity:1}
#explore :is(.explore-toolbar,.saved-filter,.saved-filter>span:first-child,.text-link){border-color:rgba(255,255,255,.4)}
#explore .filters button.active{border-color:#fff;color:#fff}
#explore .explore-end{
 background:#aa8766 url('/assets/pitched-hotel-beige-texture.jpg') center / cover no-repeat;
 margin-inline:calc(-1 * var(--pad));
 padding-inline:var(--pad);
 box-sizing:border-box;
 height:var(--works-heading-height,500px);
 margin-top:0;
 padding-block:0;
 border-top:0;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:24px;
}
@media(max-width:650px){
 #explore .explore-end{flex-direction:column;justify-content:center;align-items:flex-start;gap:12px}
 #explore .explore-end>span{margin-bottom:0}
}

/* A bridge from the selected designs to their material and structure studies. */
#explore .work-process{
 display:flex;flex-direction:column;align-items:stretch;justify-content:center;
 padding-block:32px;gap:clamp(28px,3vw,52px);
}
#explore .process-heading{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:32px;align-items:end}
#explore .process-heading .eyebrow{font-size:10px;letter-spacing:1.6px;margin-bottom:18px}
#explore .process-heading h2{font-size:clamp(28px,2.8vw,48px);font-weight:400;line-height:1.38;letter-spacing:-.055em;word-break:keep-all;margin:0}
#explore .process-heading h2 strong{font-weight:700}
#explore .process-intro{font-size:13px;line-height:1.9;word-break:keep-all;margin:0;justify-self:end}
#explore .process-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(18px,2.4vw,44px);padding:0;margin:0;list-style:none}
#explore .process-steps li{border-top:1px solid #ffffff65;padding-top:14px;min-width:0}
#explore .process-number{display:block;font-size:10px;letter-spacing:1.2px;line-height:1.5}
#explore .process-steps h3{font-size:19px;font-weight:600;line-height:1.4;letter-spacing:-.035em;margin:13px 0 8px}
#explore .process-steps p{font-size:12px;line-height:1.8;word-break:keep-all;margin:0}
@media(max-width:950px){
 #explore .process-heading{grid-template-columns:minmax(0,1fr)}
 #explore .process-intro{display:none}
 #explore .process-heading h2{font-size:clamp(25px,3.6vw,34px)}
 #explore .process-steps h3{font-size:17px}
}
@media(max-width:650px){
 #explore .work-process{padding-block:28px;gap:28px}
 #explore .process-heading .eyebrow{font-size:9px;margin-bottom:14px}
 #explore .process-heading h2{font-size:clamp(22px,5.7vw,32px);line-height:1.4}
 #explore .process-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px}
 #explore .process-steps li{padding-top:10px}
 #explore .process-number{font-size:9px;letter-spacing:.7px}
 #explore .process-steps h3{font-size:17px;margin:8px 0 5px}
 #explore .process-steps p{font-size:11px;line-height:1.65}
}

/* Give the final mobile caption the same trailing space as the 33px card gap. */
@media(max-width:650px){
 #explore #project-grid .project-card:last-child{padding-bottom:33px}
}

/* Keep both works labels on one shared baseline in every language. */
@media(max-width:760px){
 #explore>.section-kicker{
  display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:baseline;
  gap:8px;font-size:clamp(7.5px,2.05vw,9px);letter-spacing:.55px;line-height:1.4;
 }
 #explore>.section-kicker>span{flex:0 0 auto;white-space:nowrap}
 #explore>.section-kicker>span:last-child{text-align:right}
}

/* Preserve the supplied portrait compositions inside the mobile project dialog. */
@media(max-width:760px){.project-gallery.portrait-gallery img{width:100%;height:auto;min-height:0;max-height:none;aspect-ratio:auto;object-fit:contain}}

/* Keep all six project categories visible on a single mobile line. */
@media(max-width:760px){
 #explore .explore-toolbar .filters{width:100%;min-width:0;gap:clamp(4px,1.2vw,8px);justify-content:space-between;overflow-x:visible;flex-wrap:nowrap}
 #explore .explore-toolbar .filters button{font-size:clamp(7px,2.1vw,9px);letter-spacing:.2px;white-space:nowrap}
 #explore .explore-toolbar .filters sup{font-size:6px;margin-left:2px}
}

/* Mobile projects: in-place image navigation and expandable editorial content. */
@media(max-width:760px){
 #project-grid .inline-project-image img{transform:none;filter:none}
 #project-grid .inline-project-image .round-button{position:absolute;top:50%;transform:translateY(-50%);z-index:2;color:#fff;background:#24282020}
 #project-grid .inline-prev{left:18px}
 #project-grid .inline-next{right:18px}
 #project-grid .inline-slide-count{position:absolute;bottom:16px;left:50%;transform:translateX(-50%);font-size:10px;letter-spacing:1px;text-shadow:0 1px 5px #0008}
 #project-grid .inline-title-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
 #project-grid .inline-expand{flex-shrink:0}
 #project-grid .inline-expand span{display:block;transition:transform .2s}
 #project-grid .inline-expand[aria-expanded="true"] span{transform:rotate(180deg)}
 #project-grid .mobile-project-card .round-button{position:relative}
 #project-grid .mobile-project-card .inline-project-image .round-button{position:absolute}
 #project-grid .mobile-project-card .round-button::before{content:'';position:absolute;inset:-7px}
 #project-grid .inline-project-details{padding:22px 0 4px;overflow-wrap:anywhere}
 #project-grid .inline-project-details .eyebrow{margin-bottom:18px;line-height:1.5}
 #project-grid .inline-project-details .description{font-size:13px;line-height:1.85;margin:0 0 16px;word-break:normal}
 #project-grid .inline-project-details .project-specs{font-size:11px;line-height:1.7;margin:20px 0;border-color:#fff5}
 #project-grid .inline-project-details .project-specs div{grid-template-columns:80px minmax(0,1fr);border-color:#fff5}
 #project-grid .inline-project-details .gallery-note{font-size:10px;line-height:1.6;margin:16px 0}
 #project-grid .inline-project-details .primary-button{width:100%;justify-content:space-between;margin-top:18px;background:transparent;border:1px solid #fff7;color:#fff;padding:15px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){#project-grid .inline-expand span{transition:none}}

/* Match the actual mobile hero chevrons, including 18px size and 6px stroke. */
@media(max-width:760px){
 #project-grid .mobile-project-card .round-button{display:grid;place-items:center;width:64px;height:72px;padding:0;border:0;border-radius:0;font-size:0;color:#fff;background:transparent;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
 #project-grid .mobile-project-card .round-button::before{content:'';display:block;position:static;inset:auto;width:18px;height:18px;border-top:6px solid currentColor;border-right:6px solid currentColor}
 #project-grid .inline-project-image .round-button{background:transparent}
 #project-grid .inline-prev{left:0}
 #project-grid .inline-next{right:0}
 #project-grid .inline-prev::before{transform:rotate(-135deg);margin-left:7px}
 #project-grid .inline-next::before{transform:rotate(45deg);margin-right:7px}
 #project-grid .inline-expand::before{transform:rotate(135deg);margin-top:-7px}
 #project-grid .inline-expand[aria-expanded="true"]::before{transform:rotate(-45deg);margin-top:7px}
 #project-grid .inline-expand span{display:none}
 #project-grid .mobile-project-card .round-button:active{opacity:.65}
 #project-grid .mobile-project-card .round-button:focus-visible{outline:1px solid #fff;outline-offset:-8px}
 #project-grid .inline-project-details .inline-inquiry-arrow{display:block;flex:0 0 18px;width:18px;height:18px;border-top:6px solid currentColor;border-right:6px solid currentColor;transform:rotate(45deg);margin-right:7px;color:#fff}
 #project-grid .inline-project-details,
 #project-grid .inline-project-details :is(p,dt,dd,.eyebrow,.description,.gallery-note,.primary-button){color:#fff}
}

/* Keep the saved-list and reset controls in the established arrow family. */
#explore :is(#saved-filter,#reset-filters) .works-chevron{display:block;flex:0 0 18px;width:18px;height:18px;border:0;border-radius:0;border-top:6px solid currentColor;border-right:6px solid currentColor;transform:rotate(45deg);margin-right:7px;font-size:0;transition:none}
#explore #saved-filter{min-height:38px;align-items:center}
#explore #reset-filters{align-items:center}

/* The project introduction no longer contains a saved-list action. */
#explore .section-heading p{margin-bottom:0}

/* Consistent subtitle spacing across the project collection. */
#project-grid .card-caption{margin-top:8px;line-height:1.7;min-height:1.7em;overflow-wrap:anywhere}
@media(min-width:761px){
 #project-grid .card-title-row{align-items:flex-start}
 #project-grid .card-title-row h3{min-height:0;line-height:1.35}
}
