html { scroll-snap-type: none; }
body { min-width: 320px; }
button, a { -webkit-tap-highlight-color: transparent; }
.pages-main { padding-top: 152px; padding-bottom: 70px; min-height: 100svh; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.page-eyebrow { color: var(--accent); font-size: 15px; margin-bottom: 16px; letter-spacing: .12em; }
.page-intro h1, .case-title { font-size: clamp(52px, 4.8vw, 106px); letter-spacing: -.055em; line-height: 1.12; }
.page-intro > p { color: var(--muted); font-size: clamp(16px, 1.05vw, 22px); line-height: 1.8; max-width: 36em; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; align-items: center; }
.filter-menu { position: relative; isolation: isolate; display: flex; flex-wrap: wrap; gap: 8px; max-width: 100%; min-width: 0; }
.filter-pill { inset: 0 auto auto 0; border-radius: 999px; transform: translate(var(--pill-x, 0px), var(--pill-y, 0px)); }
.filter-button { position: relative; z-index: 2; flex-shrink: 0; border: 1px solid transparent; background: transparent; border-radius: 999px; padding: 12px 20px; color: var(--muted); font-size: 16px; line-height: 1; height: 50px; cursor: pointer; display: flex; gap: 12px; align-items: center; transition: color 180ms var(--ease); }
.filter-button > span { position: relative; top: -1px; }
.reveal-enabled [data-reveal="group"] { opacity: 0; transform: translateY(7px); }
.reveal-enabled [data-reveal="group"].revealed { animation: reveal-group-up 900ms var(--ease) 330ms both; }
.reveal-enabled [data-reveal="group"]:focus-visible, .reveal-enabled :focus-visible [data-reveal="group"] { animation: none; opacity: 1; transform: none; }
@keyframes reveal-group-up { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.filter-button[aria-pressed="true"] { color: var(--accent); font-weight: 700; }
.filter-menu[data-pill-ready] .filter-button[data-pill-target] { color: #112b2c; font-weight: 700; }
.filter-count { font-size: 16px; line-height: 1; opacity: .65; font-variant-numeric: tabular-nums; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px 28px; }
.project-card { display: block; min-width: 0; border-radius: 20px; }
.project-cover { position: relative; isolation: isolate; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #1b252c; border-radius: 18px; box-shadow: inset 0 0 0 1px #cfeaf520; }
.project-cover::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px #d3f8ff21; }
.project-cover::before {
  content: ''; position: absolute; inset: 0; z-index: 3; padding: 1.5px;
  border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(220px circle at var(--card-light-x, 50%) var(--card-light-y, 0px), #e2fffcfa 0%, #5bede0b8 34%, #5bede01f 70%, transparent 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  transition: opacity 220ms var(--ease);
}
.project-cover[data-edge-lit]::before, .project-card:focus-visible .project-cover::before { opacity: 1; }
.project-cover img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 600ms var(--ease), filter 600ms; }
.project-card:hover .project-cover img { transform: scale(1.035); filter: brightness(1.04); }
.project-badge { position: absolute; right: 14px; bottom: 14px; border-radius: 999px; background: #10171dcc; padding: 6px 10px; color: #e3f3f5; backdrop-filter: blur(10px); font-size: 12px; }
.project-caption { padding: 20px 2px 0; }
.project-kind { color: var(--accent); font-size: 14px; margin-bottom: 8px; }
.project-caption h2 { font-size: clamp(20px, 1.55vw, 32px); letter-spacing: -.02em; line-height: 1.35; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 90px; color: var(--muted); font-size: 14px; }
.page-footer a { color: var(--accent); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 40px; font-size: 14px; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--white); }
.case-intro { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); gap: clamp(40px,7vw,160px); margin-bottom: 42px; align-items: end; }
.case-title { font-size: clamp(44px,4.1vw,90px); }
.case-summary { margin-top: 26px; color: var(--muted); font-size: clamp(17px,1.15vw,25px); line-height: 1.85; }
.case-type { color: var(--muted); font-size: 15px; margin-top: 20px; }
.case-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.case-tag { color: #c2dfdf; padding: 7px 12px; border: 1px solid #bde2eb26; border-radius: 999px; font-size: 13px; }
.case-cover { overflow: hidden; border-radius: 24px; background: #1b252c; margin-bottom: 72px; }
.case-cover img { width: 100%; display: block; }
.case-cover button { display: block; border: 0; padding: 0; background: transparent; width: 100%; cursor: zoom-in; }
.case-story { max-width: 1600px; margin-inline: auto; }
.story-heading { margin: 64px 0 28px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.story-heading h2 { font-size: clamp(28px,2.2vw,44px); letter-spacing: -.04em; }
.story-heading p { color: var(--muted); font-size: 14px; }
.story-section { margin-top: 46px; margin-bottom: 22px; font-size: clamp(22px,1.8vw,34px); }
.artwork { margin: 18px 0; }
.artwork button { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.artwork img { display: block; width: 100%; height: auto; border-radius: 12px; }
.artwork figcaption { color: var(--muted); font-size: 13px; margin-top: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.photo-grid img { aspect-ratio: 16/10; object-fit: cover; }
.video-artwork { margin-block: 24px; background: #182229; border-radius: 16px; overflow: hidden; }
.video-artwork video { width: 100%; height: auto; display: block; background: #0b1116; }
.video-artwork figcaption { padding: 18px 22px; font-size: 16px; color: var(--muted); }
.case-end { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-top: 72px; }
.back-link { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 13px 22px; font-size: 15px; }
.back-link:hover { border-color: var(--accent); color: var(--accent); }
.next-project { text-align: right; }
.next-project small { display: block; color: var(--muted); margin-bottom: 8px; }
.next-project strong { font-size: clamp(20px,2vw,38px); }
.next-project:hover { color: var(--accent); }
.image-dialog { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0b1117f5; color: var(--white); }
.image-dialog::backdrop { background: #060a0fda; backdrop-filter: blur(16px); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; padding: 18px 32px; }
.lightbox-caption { color: var(--muted); font-size: 14px; }
.lightbox-actions { display: flex; gap: 8px; }
.lightbox-actions button { border: 1px solid var(--line); background: #1b252c; border-radius: 999px; padding: 9px 17px; cursor: pointer; font-size: 14px; }
.lightbox-actions button:hover { background: #2a3c45; }
.lightbox-stage { height: calc(100dvh - 84px); overflow: auto; display: grid; place-items: center; padding: 12px 32px 32px; }
.lightbox-stage img { display: block; max-width: 100%; max-height: calc(100dvh - 128px); width: auto; height: auto; cursor: zoom-in; }
.image-dialog[data-zoom] .lightbox-stage { display: block; }
.image-dialog[data-zoom] .lightbox-stage img { width: var(--art-width); height: auto; max-width: none; max-height: none; margin-inline: auto; cursor: zoom-out; }
.lightbox-loading { opacity: .4; }
.error-state { padding-block: 100px; text-align: center; }
.error-state p { color: var(--muted); margin: 24px 0; }
@media (min-width:1900px) { .pages-main { padding-top: 174px; } .gallery-grid { gap: 54px 36px; } .page-intro { margin-bottom: 70px; } }
@media (max-width:1100px) { .gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .page-intro { align-items: start; flex-direction: column; gap: 24px; } .case-intro { grid-template-columns: 1fr; gap: 10px; } .case-summary { margin-top: 0; } }
@media (max-width:600px) { .pages-main { padding-top: 122px; } .page-intro { margin-bottom: 28px; } .page-intro h1 { font-size: 46px; } .filter-button { height: 44px; padding: 10px 13px; gap: 8px; font-size: 14px; } .gallery-grid { grid-template-columns: 1fr; gap: 34px; } .project-caption h2 { font-size: 23px; } .brand { --brand-inset: 11px; font-size: 16px; } .nav-link { font-size: 12px; padding-inline: 9px; } .nav-links { padding-inline-end: 7px; } .breadcrumbs { gap: 8px; font-size: 13px; margin-bottom: 30px; } .case-title { font-size: 40px; } .case-cover { border-radius: 14px; margin-bottom: 40px; } .case-tags { margin-top: 22px; } .photo-grid { grid-template-columns: 1fr; } .story-heading { flex-direction: column; gap: 12px; } .case-end { flex-direction: column; align-items: start; } .next-project { text-align: left; margin-top: 12px; } .page-footer { flex-direction: column; margin-top: 55px; } .lightbox-toolbar { height: 112px; padding: 14px 16px; flex-wrap: wrap; gap: 10px; } .lightbox-stage { padding: 12px; height: calc(100dvh - 112px); } .lightbox-stage img { max-height: calc(100dvh - 148px); } .lightbox-actions button { padding: 8px 13px; font-size: 12px; } }
@media (prefers-reduced-motion:reduce) { html {scroll-behavior:auto} *,*::before,*::after {animation-duration:.01ms!important;animation-delay:0ms!important;transition-duration:.01ms!important} }
