.project-page { overflow-x: hidden; }
.portfolio-flow { overflow-x: clip; }
.portfolio-flow .scene-canvas { transform: none; }
.portfolio-flow .project-bridge { display: none; }
.portfolio-flow #portfolio { margin: 0; }
.portfolio-flow .copyright { margin-right: 0; margin-left: auto; }
@media (min-width: 681px) {
  .portfolio-flow .copyright { position: absolute; right: 0; bottom: 62px; }
  .portfolio-flow .is-browsing .copyright { bottom: 77px; max-width: 40%; text-align: right; }
}
.project-stage { height: 190svh; position: relative; }
.project-scene { --card-size: 7.11vw; --card-gap: 1.077vw; --rail-top: 39svh; --intro-opacity: 1; --caption-opacity: 0; position: sticky; top: 0; height: 100svh; overflow: hidden; background: #000; }
.project-rail { position: absolute; left: 0; top: var(--rail-top); display: flex; align-items: flex-start; gap: var(--card-gap); width: 100%; height: calc(var(--card-size) * 1.23 + 110px); padding: 32px var(--rail-inset, 3.4vw) 52px; margin-top: -32px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.project-rail::-webkit-scrollbar { display: none; }
.is-expanding .project-loop-copy { display: none; }
.project-card { position: relative; flex: 0 0 var(--card-size); width: var(--card-size); color: #fff; text-decoration: none; outline-offset: 8px; opacity: 0; transform: translateY(36px); }
.is-ready .project-card { animation: project-arrive 1.45s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(min(var(--i), 10) * 45ms); }
.project-artwork { position: relative; width: 100%; aspect-ratio: 1; overflow: hidden; background: #f3f3f3; transform-origin: 50% 0; transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .7s; }
.project-artwork img { width: 100%; height: 100%; display: block; object-fit: cover; }
.project-artwork.image-unavailable { display: flex; align-items: center; justify-content: center; padding: 16%; background: #171717; border: 1px solid #242424; }
.project-artwork.image-unavailable img { display: none; }
.project-artwork.image-unavailable::after { content: attr(data-title); color: #bdbdbd; font: 400 clamp(9px, 1.15vw, 20px)/1.5 'Outfit', sans-serif; text-align: center; letter-spacing: .035em; }
.project-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; width: 100%; padding-top: 17px; opacity: var(--caption-opacity); transition: opacity .5s, transform .7s cubic-bezier(.22,1,.36,1); }
.project-caption h2 { margin: 0; font: 600 clamp(18px, 1.77vw, 31px)/1.4 'Outfit', sans-serif; letter-spacing: .07em; }
.project-caption p { margin: 0; max-width: 62%; text-align: right; font: 400 clamp(10px, 1.05vw, 18px)/1.6 'Outfit', sans-serif; letter-spacing: .06em; }
.is-browsing .project-card:not(.is-active) .project-artwork { opacity: .34; }
.is-browsing .project-card:not(.is-active) .project-caption { opacity: 0; }
.is-browsing .project-card.is-active .project-artwork { transform: scale(1.1); }
.is-browsing .project-card.is-active .project-caption { transform: translateY(calc(var(--card-size) * .1)); }
.project-intro { position: absolute; top: 61.5%; left: 3.4%; width: min(31.3vw, 541px); opacity: var(--intro-opacity); transform: translateY(calc((1 - var(--intro-opacity)) * 28px)); }
.sloganP { white-space: pre-line; overflow-wrap: anywhere; margin: 0; color: #b2b2b2; font-size: clamp(14px, 1.27vw, 22px); font-weight: 500; line-height: 1.6; letter-spacing: .01em; }
.is-browsing .project-intro { top: auto; bottom: 102px; width: 54%; opacity: 1; transform: none; }
.is-browsing .sloganP { font-size: clamp(12px, 1vw, 16px); line-height: 1.5; }
.is-browsing .project-disciplines, .is-browsing .project-browse { display: none; }
.project-disciplines { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 25px; font-size: clamp(11px, 1.057vw, 18.27px); font-weight: 500; line-height: 1.6; color: #a8a8a8; letter-spacing: .025em; }
.project-browse { display: inline-flex; align-items: center; gap: 16px; padding: 0; margin-top: 28px; background: none; border: 0; color: #737373; cursor: pointer; font-size: 12px; letter-spacing: .06em; }
.project-browse:hover { color: #fff; }
.project-bottom { position: absolute; bottom: 27px; left: 3.4%; right: 3.4%; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.gallery-tools { display: flex; align-items: center; gap: 16px; }
.gallery-search { display: flex; justify-content: center; align-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; color: #d9d9d9; background: #222; cursor: pointer; }
.gallery-search .material-symbols-outlined { font-size: 27px; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24; }
.gallery-search svg { display: block; width: 25px; height: 25px; }
.gallery-controls { display: flex; align-items: center; gap: 18px; opacity: 0; visibility: hidden; transition: opacity .4s; }
.is-browsing .gallery-controls { opacity: 1; visibility: visible; }
.gallery-controls button { cursor: pointer; padding: 8px 0; border: none; background: none; font-size: 19px; color: #aaa; }
.gallery-controls button:hover { color: white; }
#project-count { color: #737373; font: 400 11px/1 'Outfit', sans-serif; letter-spacing: .1em; min-width: 48px; text-align: center; }
.copyright { margin: 0; margin-right: 65px; color: #818181; font: 400 clamp(8px, .639vw, 11px)/1.5 'Inter', sans-serif; letter-spacing: .08em; }
.project-status { position: absolute; left: 3.4%; top: 43%; width: min(90%, 520px); color: #aaa; font-size: 15px; line-height: 1.6; }
.project-status:empty { display: none; }
.project-empty { margin: 20px 0; color: #aaa; font-size: 16px; }
.project-search-dialog { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: 36px; width: min(620px, calc(100vw - 40px)); max-height: 80svh; border: 1px solid #333; border-radius: 24px; color: #dedede; background: #111; box-shadow: 0 30px 100px #000a; }
.project-search-dialog::backdrop { background: #000a; backdrop-filter: blur(12px); }
.search-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 25px; }
.search-heading h2 { font: 400 24px/1.3 'Outfit', sans-serif; margin: 0; }
.search-heading button { padding: 6px; border: 0; background: none; font-size: 24px; color: #888; cursor: pointer; }
.project-search-label { display: block; color: #999; font-size: 12px; margin-bottom: 10px; }
#project-query { width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid #444; background: transparent; color: #fff; font-size: 18px; border-radius: 0; }
#project-query:focus, #project-query:focus-visible { outline: none; box-shadow: none; }
#filter-container { display: flex; flex-wrap: wrap; gap: 10px; padding: 25px 0; }
.filter-btn { cursor: pointer; padding: 8px 13px; border-radius: 100px; border: 1px solid #333; background: transparent; color: #aaa; font-size: 12px; }
.filter-btn[aria-pressed='true'] { background: #dedede; border-color: #dedede; color: #111; }
.search-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 12px; }
.project-search-count { color: #888; font-size: 13px; }
.search-footer button { border: 0; background: none; color: white; cursor: pointer; padding: 10px 0; font-size: 13px; text-decoration: underline; text-underline-offset: 5px; }
.project-noscript { display: block; padding: 180px 5vw 40px; color: #dedede; }
@keyframes project-arrive {
  0% { opacity: 0; transform: translateY(36px) scale(1.75); }
  45% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 680px) {
  .project-stage { height: 190svh; }
  .project-intro { top: 57%; left: 22px; width: min(80%, 360px); }
  .is-browsing .project-intro { bottom: 128px; width: calc(100% - 44px); }
  .project-disciplines { font-size: 11px; gap: 6px 12px; margin-top: 20px; }
  .project-browse { margin-top: 24px; }
  .project-rail { padding-left: var(--rail-inset, 30px); padding-right: var(--rail-inset, 30px); }
  .project-caption { display: block; padding-top: 15px; }
  .project-caption h2 { font-size: 19px; }
  .project-caption p { font-size: 10px; max-width: 100%; text-align: left; margin-top: 7px; }
  .project-bottom { left: 22px; right: 22px; bottom: 24px; }
  .gallery-tools { gap: 12px; }
  .gallery-search { width: 38px; height: 38px; }
  .gallery-search .material-symbols-outlined { font-size: 23px; }
  .gallery-controls { gap: 12px; }
  .copyright { position: absolute; bottom: 57px; left: 0; right: 0; margin: 0; font-size: 7px; letter-spacing: .04em; }
  .project-search-dialog { padding: 25px; }
  .project-artwork.image-unavailable::after { font-size: 13px; }
}
@media (max-height: 660px) and (min-width: 681px) {
  .project-intro { top: 63%; width: 44%; }
  .project-disciplines { margin-top: 15px; font-size: 10px; gap: 4px 12px; }
  .sloganP { font-size: 13px; }
  .project-browse { margin-top: 13px; }
  .project-bottom { bottom: 18px; }
  .portfolio-flow .is-browsing .copyright { bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-stage { height: 100svh; }
  .project-card { opacity: 1; transform: none; animation: none !important; }
  .project-intro { transition: none; }
}

.project-disciplines .discipline-filter { border: 0; padding: 3px 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; text-align: left; }
.project-disciplines .discipline-filter:hover { color: #fff; }
.project-disciplines .discipline-filter[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
