.projects-shell { background: var(--paper); color: var(--ink); }
.projects-fragment { display: contents; }
.projects-main { padding: 0 var(--page-gutter); }
.projects-kicker { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0 24px; border-bottom: 1px solid rgba(0,0,0,.22); font-size: 11px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; }
.projects-heading { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; column-gap: clamp(18px,2vw,32px); padding: clamp(48px,5.6vw,88px) 0 clamp(36px,4vw,60px); }
.projects-heading h1, .projects-heading h2, .reel-heading h1 { margin: 0; font-size: clamp(64px,7.7vw,138px); font-weight: 700; line-height: .93; letter-spacing: -.07em; }
.projects-heading p { min-width: 0; margin: 0 0 3px; font-size: clamp(18px,1.5vw,24px); font-weight: 300; line-height: 1.4; letter-spacing: -.02em; text-wrap: pretty; }
.projects-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); column-gap: clamp(18px,2vw,32px); row-gap: clamp(30px,3.2vw,48px); margin: 0; padding: 0; list-style: none; }
.project-card { min-width: 0; }
.project-card-button { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.project-card-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; }
.project-card-image { position: relative; display: block; width: 100%; aspect-ratio: 16/11; overflow: hidden; background: #000000; }
.project-card-image::after { position: absolute; inset: 45% 0 0; content: ""; background: linear-gradient(transparent,rgba(0,0,0,.32)); pointer-events: none; }
.project-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease, opacity .3s ease; }
.project-card-button[data-project-number="3"] .project-card-image img { object-position: 50% 30%; }
.project-card-open { position: absolute; right: 16px; bottom: 16px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: var(--paper); transition: transform .25s ease; }
.project-card-open svg { width: 24px; height: 24px; }
.project-card-button:hover .project-card-image img { transform: scale(1.035); opacity: .9; }
.project-card-button:hover .project-card-open { transform: translate(2px,-2px); }
.project-card-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0 0; }
.project-card-name { min-width: 0; font-size: clamp(18px,1.5vw,24px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; overflow-wrap: anywhere; }
.project-card-number { flex-shrink: 0; color: #66645f; font-size: 11px; line-height: 1.4; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.projects-note { max-width: 72ch; margin: 30px 0 0; color: #66645f; font-size: 12px; font-weight: 300; line-height: 1.6; }
.projects-contact { display: flex; justify-content: space-between; align-items: center; gap: 36px; margin-top: clamp(48px,6vw,96px); padding: clamp(36px,4.2vw,64px) 0; border-top: 1px solid rgba(0,0,0,.22); }
.projects-contact h2 { max-width: 17ch; margin: 0; font-size: clamp(32px,4.3vw,64px); font-weight: 100; line-height: 1.06; letter-spacing: -.045em; }
.projects-contact > a, .home-portfolio-more > a { display: inline-flex; justify-content: space-between; align-items: center; gap: 36px; min-width: 228px; min-height: 56px; padding: 18px 22px; background: #000000; color: var(--paper); font-size: 15px; }
.projects-contact > a:hover, .home-portfolio-more > a:hover { background: #202020; }
.home-portfolio-more > a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.projects-contact > a svg, .home-portfolio-more > a svg { width: 20px; height: 20px; }
.projects-shell .site-footer { border-top: 1px solid rgba(0,0,0,.22); }
.home-portfolio { padding-top: clamp(24px,3vw,48px); padding-bottom: clamp(40px,5vw,72px); }
.home-portfolio-more { display: flex; justify-content: flex-end; margin-top: 32px; }
.home-shell .site-footer { border-top: 1px solid rgba(0,0,0,.22); }

.project-dialog { position: fixed; inset: 0; width: calc(100% - 48px); max-width: 1400px; max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; color: var(--light); background: #000000; border: 0; border-radius: 0; scrollbar-width: thin; scrollbar-color: #62615e #000000; }
.project-dialog::backdrop { background: rgba(0,0,0,.72); }
.project-dialog[open] { display: block; }
.project-dialog-top { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 24px; min-height: 76px; padding: 14px clamp(24px,3.5vw,52px); border-bottom: 1px solid var(--rule); background: #000000; }
.project-sharing { grid-column: 1/-1; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--rule); text-align: right; }
.project-header-actions { display: flex; align-items: center; gap: clamp(16px,2.4vw,32px); }
.project-share-trigger { justify-content: center; min-width: 44px; }
.project-header-copy { position: absolute; top: 100%; right: clamp(24px,3.5vw,52px); width: min(320px,calc(100% - 40px)); padding: 16px; background: #171717; border: 1px solid #62615e; }
.project-header-copy .project-copy-fallback { width: 100%; margin: 0 0 4px; }
.project-header-copy .project-copy-fallback input { font-size: 16px; }
.project-share { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 44px; padding: 0; color: var(--light); background: transparent; border: 0; font-size: 13px; font-weight: 300; text-decoration: underline; text-underline-offset: 4px; }
.project-share svg { flex-shrink: 0; width: 20px; height: 20px; }
.project-share:hover { color: #fff; }
.project-share:disabled { opacity: .5; cursor: default; }
.project-copy-fallback { display: block; width: min(100%,380px); margin: 12px 0 0 auto; font-size: 11px; line-height: 1.5; }
.project-copy-fallback input { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 12px; color: var(--light); background: #171717; border: 1px solid #62615e; border-radius: 0; font: inherit; font-size: 14px; }
.project-dialog-top > span { min-width: 0; font-size: 10px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.project-intro[tabindex="-1"]:focus { outline: none; }
.project-close { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; min-height: 44px; padding: 0; color: var(--light); background: transparent; border: 0; font-size: 13px; }
.project-close svg { width: 22px; height: 22px; }
.project-close:hover { color: #ffffff; }
.project-dialog button:focus-visible, .project-dialog a:focus-visible, .project-dialog video:focus-visible { outline: 2px solid var(--paper); outline-offset: 5px; }
.project-detail { padding: clamp(28px,3.5vw,52px); }
.project-overview { display: grid; grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); column-gap: clamp(36px,5.5vw,80px); }
.project-media-column { position: sticky; top: 104px; display: flex; flex-direction: column; align-items: center; align-self: start; min-width: 0; }
.project-player { position: relative; width: 100%; max-width: min(420px,max(180px,calc((90dvh - 260px)*var(--media-ratio,.5625)))); aspect-ratio: 9/16; overflow: hidden; color: var(--light); background: #000000; }
.project-player[data-orientation="landscape"] { max-width: 1100px; max-height: 68dvh; }
.project-player video, .project-player > img { display: block; width: 100%; height: 100%; object-fit: contain; background: #000000; }
.project-player > img { touch-action: pan-y; }
.project-detail[data-orientation="landscape"] .project-overview { grid-template-columns: minmax(0,1fr); row-gap: 40px; }
.project-detail[data-orientation="landscape"] .project-media-column { position: static; }
.project-detail[data-orientation="landscape"] .project-info { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 48px; }
.project-detail[data-orientation="landscape"] .project-eyebrow, .project-detail[data-orientation="landscape"] .project-title { grid-column: 1/-1; }
.project-detail[data-orientation="landscape"] .project-pending { grid-column: 1/-1; }
.project-gallery-controls { width: 100%; max-width: 1100px; margin-top: 18px; }
.project-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-gallery-heading p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; color: var(--light); font-size: 12px; font-weight: 300; line-height: 1.5; }
.project-gallery-heading p > span { color: #aaa9a4; font-size: 10px; font-variant-numeric: tabular-nums; }
.project-gallery-arrows { display: flex; flex-shrink: 0; gap: 4px; }
.project-gallery-arrows button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; color: var(--light); background: transparent; }
.project-gallery-arrows button:hover { background: #1b1b1b; }
.project-thumbnails { position: relative; display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 10px 2px 8px; scrollbar-width: thin; scrollbar-color: #62615e #000000; }
.project-thumbnail { position: relative; display: flex; flex: 0 0 100px; flex-direction: column; gap: 8px; margin: 0; padding: 0 0 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #aaa9a4; text-align: left; scroll-snap-align: start; }
.project-thumbnail[aria-pressed="true"] { border-bottom-color: var(--paper); color: var(--light); }
.project-thumbnail img, .project-thumbnail-placeholder { display: block; width: 100%; height: 62px; object-fit: cover; background: #202020; opacity: .65; }
.project-thumbnail[aria-pressed="true"] img { opacity: 1; }
.project-thumbnail-placeholder { display: grid; place-items: center; }
.project-thumbnail > span:last-child { font-size: 10px; line-height: 1.4; letter-spacing: .025em; }
.project-cinema-close { position: absolute; top: max(16px,env(safe-area-inset-top)); right: max(16px,env(safe-area-inset-right)); display: flex; align-items: center; gap: 18px; min-height: 44px; padding: 10px 16px; color: var(--light); background: rgba(0,0,0,.75); border: 1px solid #62615e; font-size: 13px; }
.project-cinema-close span { font-size: 24px; line-height: 1; }
.project-player[data-expanded="true"] { position: fixed; inset: 0; z-index: 10; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; aspect-ratio: auto; }
.project-dialog[data-cinema="true"] { inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; overflow: hidden; }
.project-dialog[data-cinema="true"] .project-dialog-top, .project-dialog[data-cinema="true"] .project-info, .project-dialog[data-cinema="true"] .case-evidence, .project-dialog[data-cinema="true"] .project-credits-section, .project-dialog[data-cinema="true"] .project-navigation, .project-dialog[data-cinema="true"] .project-sharing, .project-dialog[data-cinema="true"] .project-gallery-controls { visibility: hidden; }
.project-player video:fullscreen, .project-player video:-webkit-full-screen { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.project-play { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 14px; width: 100%; padding: 20px; border: 0; color: var(--paper); background: rgba(0,0,0,.25); font-size: 15px; line-height: 1.4; }
.project-play svg { width: 22px; height: 22px; }
.project-play > span { display: inline-flex; align-items: center; gap: 14px; padding: 18px 24px; color: #000000; background: var(--paper); border-radius: 999px; }
.project-play:hover { background: rgba(0,0,0,.4); }
.project-play:focus-visible { outline-offset: -6px !important; }
.project-media-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; color: var(--light); background: rgba(0,0,0,.9); font-size: 14px; font-weight: 300; line-height: 1.6; text-align: center; }
.project-media-error button, .project-media-error a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0; border: 0; border-bottom: 1px solid currentColor; color: inherit; background: transparent; font-size: 13px; }
.project-info { min-width: 0; padding: 0 0 8px; overflow-wrap: anywhere; }
.project-eyebrow { margin: 0 0 18px; color: #b9b8b2; font-size: 10px; font-weight: 400; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.project-title { margin: 0; font-size: clamp(40px,4.4vw,68px); font-weight: 700; line-height: .98; letter-spacing: -.055em; }
.project-section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--rule); }
.project-section > :is(h2, h3) { margin: 0 0 16px; color: #b9b8b2; font-size: 11px; font-weight: 400; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.project-section > p { margin: 0; font-size: 17px; font-weight: 300; line-height: 1.6; text-wrap: pretty; }
.project-services { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding: 0; list-style: none; }
.project-services li { font-size: 15px; font-weight: 300; line-height: 1.6; }
@font-face {
  font-family: "Videastas Credit Fallback"; src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-style: normal; font-weight: 100 900; font-display: swap;
}
.project-credits-section { margin-top: clamp(20px,2.6vw,36px); }
.project-credits {
  columns: 21rem 3; column-gap: clamp(24px,3vw,44px); column-fill: balance;
}
.credit-group {
  display: inline-block; vertical-align: top; width: 100%; break-inside: avoid;
  margin: 0 0 clamp(16px,1.4vw,20px); padding-top: clamp(10px,.9vw,14px);
}
.credit-group:last-child { margin-bottom: 0; }
.credit-group > :is(h2, h3) {
  margin: 0 0 clamp(7px,.65vw,10px); color: var(--light);
  font-size: clamp(1.75rem,1.5rem + .8vw,2.25rem); font-weight: 700;
  line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; overflow-wrap: anywhere;
}
.credit-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.credit-role-column { width: 48%; }
.credit-table :is(th, td) { text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.credit-table :is(th, td):first-child { padding-right: clamp(12px,1.2vw,18px); }
.credit-table thead th { padding: 0; border: 0; line-height: 0; }
.credit-table tbody :is(th, td) {
  padding: .3125rem 0; line-height: 1.4; font-weight: 300;
  font-family: "Videastas Helvetica", "Videastas Credit Fallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.credit-table tbody tr:first-child { border-top: 1px solid #66645f; }
.credit-table tbody tr + tr { border-top: 1px solid rgba(241,238,229,.15); }
.credit-table tbody th { color: #fff; font-size: .8125rem; }
.credit-table tbody td { color: var(--paper); font-size: .875rem; letter-spacing: -.01em; }
.project-pending, .project-section > .project-pending { margin: 0; color: #aaa9a4; font-size: 14px; font-weight: 300; line-height: 1.65; }
.project-navigation { display: flex; justify-content: space-between; gap: 24px; margin: 0 clamp(24px,3.5vw,52px); padding: 20px 0 calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.project-navigation button { display: inline-flex; align-items: center; gap: 16px; min-width: 0; min-height: 48px; padding: 0; border: 0; color: var(--light); background: transparent; text-align: left; font-size: 14px; font-weight: 300; line-height: 1.4; }
.project-navigation button:last-child { justify-content: flex-end; text-align: right; }
.project-navigation button > span { min-width: 0; overflow-wrap: anywhere; }
.project-navigation button svg { width: 20px; height: 20px; }
.project-navigation button:hover { color: #ffffff; }
.project-navigation button:disabled { opacity: .35; cursor: default; }
.project-navigation > span { align-self: center; color: #aaa9a4; font-size: 11px; font-variant-numeric: tabular-nums; }

@media (max-width: 1049px) {
  .projects-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 34px 24px; }
  .projects-heading { grid-template-columns: minmax(0,1fr); align-items: start; gap: 26px; }
  .projects-heading p { font-size: 19px; }
  .project-overview { column-gap: 32px; }
  .project-title { font-size: clamp(36px,5vw,52px); }
}
@media (max-width: 760px) {
  .projects-heading { padding-top: 44px; }
  .projects-contact { align-items: flex-start; flex-direction: column; gap: 28px; }
  .project-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .project-detail { padding: 28px 24px; }
  .project-overview { grid-template-columns: minmax(0,1fr); }
  .project-media-column { position: static; }
  .project-player { max-width: min(360px,max(180px,calc((100dvh - 260px)*var(--media-ratio,.5625)))); }
  .project-detail[data-orientation="landscape"] .project-info { display: block; }
  .project-info { padding-top: 0; }
  .project-sharing { text-align: left; }
  .project-title { font-size: clamp(40px,8vw,60px); }
}
@media (max-width: 560px) {
  .projects-kicker { gap: 16px; padding-top: 22px; padding-bottom: 18px; font-size: 9px; letter-spacing: .055em; }
  .projects-heading { gap: 22px; padding: 38px 0 34px; }
  .projects-heading h1, .projects-heading h2, .reel-heading h1 { font-size: clamp(54px,14.4vw,80px); line-height: .96; letter-spacing: -.065em; }
  .projects-heading p { font-size: 18px; line-height: 1.5; }
  .projects-grid { grid-template-columns: minmax(0,1fr); row-gap: 28px; }
  .project-card-image { aspect-ratio: 16/11; }
  .project-card-caption { padding-top: 13px; }
  .project-card-name { font-size: 22px; }
  .projects-note { margin-top: 26px; font-size: 11px; }
  .projects-contact { margin-top: 38px; padding: 34px 0; }
  .projects-contact h2 { font-size: clamp(36px,9vw,46px); max-width: 12ch; }
  .projects-contact > a, .home-portfolio-more > a { width: 100%; min-width: 0; }
  .project-dialog { inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; }
  .project-dialog-top { min-height: calc(66px + env(safe-area-inset-top)); padding: max(11px,env(safe-area-inset-top)) 20px 11px; gap: 16px; }
  .project-dialog-top > span { font-size: 9px; letter-spacing: .055em; }
  .project-close { gap: 10px; font-size: 12px; }
  .project-sharing { margin-top: 24px; padding-top: 16px; }
  .project-header-copy { right: 20px; }
  .project-share { font-size: 12px; }
  .project-close svg { width: 20px; height: 20px; }
  .project-detail { padding: 24px 20px 30px; }
  .project-player { max-width: min(100%,max(180px,calc((100dvh - 240px)*var(--media-ratio,.5625)))); }
  .project-title { font-size: clamp(38px,10vw,52px); }
  .project-section { margin-top: 28px; padding-top: 24px; }
  .project-section > p { font-size: 17px; }
  .project-services { gap: 8px 20px; }
  .project-navigation { margin: 0 20px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); gap: 24px; }
  .project-navigation button { gap: 10px; font-size: 13px; }
  .project-navigation button svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-card-image img, .project-card-open { transition: none; }
  .project-card-button:hover .project-card-image img, .project-card-button:hover .project-card-open { transform: none; }
}

.project-thumbnail > span:last-child { font-size: 12px; line-height: 1.35; white-space: normal; overflow-wrap: anywhere; }
.project-thumbnail img { flex-shrink: 0; }
.project-identity { min-width: 0; grid-column: 1/-1; width: 100%; text-align: left; }
.project-identity .project-title { max-width: none; width: 100%; text-wrap: pretty; overflow-wrap: anywhere; }
.case-page-shell { background: #000; color: var(--light); }
.project-page { position: relative; inset: auto; width: 100%; height: auto; max-width: 1440px; max-height: none; min-height: 100svh; margin: 0 auto; overflow: visible; }
.project-page[data-cinema="true"] { position: relative; height: auto; overflow: visible; }
.case-inquiry {
  grid-column: 1 / -1;
  margin-top: 30px; padding-top: 23px; border-top: 1px solid var(--rule);
}
.case-inquiry-title {
  --scroll-reveal-distance: 8px;
  margin: 0 0 12px; font-size: clamp(21px,2vw,29px); font-weight: 300;
  line-height: 1.2; letter-spacing: -.035em;
}
.case-inquiry a {
  --selection-bg: var(--ink);
  --selection-text: var(--light);
  display: inline-flex; align-items: center; gap: 16px;
  max-width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid var(--paper);
  background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.25;
}
.case-inquiry a:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }
.case-inquiry svg { width: 18px; height: 18px; transform: rotate(-45deg); }
@media (hover: hover) {
  .case-inquiry a:hover { text-decoration: underline; text-underline-offset: .2em; }
}
.case-evidence { container-type: inline-size; }
.case-frames {
  --frame-gap: clamp(12px,2vw,24px);
  --row-height: min(18cqi,225px);
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: var(--frame-gap); margin: 18px 0 0;
}
.case-frames figure {
  flex: var(--frame-ratio) 1 calc(var(--row-height) * var(--frame-ratio));
  min-width: 0; margin: 0;
}
.case-frames img { display: block; width: 100%; height: auto; }
.case-frames[data-layout="landscape"] {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(265px,100%),1fr));
}
.case-frames[data-layout="portrait"] {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(160px,100%),1fr));
}
.case-evidence[data-photo-section="sets"] > :is(h2,h3) {
  margin-bottom: 10px; color: var(--light); font-size: clamp(26px,3vw,40px);
  font-weight: 500; line-height: 1.1; text-transform: none; letter-spacing: -.045em;
}
.case-evidence[data-photo-section="sets"] > p { max-width: 66ch; }
[data-photo-section="sets"] .case-frames {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: clamp(12px,1.5vw,20px); margin-top: clamp(18px,2vw,28px);
}
.highlight-trigger { position: relative; display: block; cursor: zoom-in; }
.highlight-expand {
  position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center;
  width: 32px; height: 32px; background: rgba(0,0,0,.76); color: var(--paper); pointer-events: none;
}
.highlight-expand svg { width: 18px; height: 18px; }
html:has(.highlight-viewer[open]), dialog.project-dialog:has(.highlight-viewer[open]) { overflow: hidden; }
.highlight-viewer {
  position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh;
  max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  overflow: hidden; overscroll-behavior: contain; color: var(--light); background: var(--ink);
}
.highlight-viewer[open] { display: grid; grid-template: auto minmax(0,1fr) auto / minmax(0,1fr); }
.highlight-viewer::backdrop { background: var(--ink); }
.highlight-bar, .highlight-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px clamp(14px,3vw,44px);
  padding-left: max(clamp(14px,3vw,44px),env(safe-area-inset-left));
  padding-right: max(clamp(14px,3vw,44px),env(safe-area-inset-right));
}
.highlight-bar { padding-top: calc(6px + env(safe-area-inset-top)); border-bottom: 1px solid var(--rule); }
.highlight-bar > span { min-width: 0; font-size: 14px; line-height: 1.25; }
.highlight-actions { display: flex; flex: none; align-items: center; gap: clamp(4px,1.2vw,18px); }
.highlight-actions button {
  display: inline-flex; justify-content: center; align-items: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 5px; font-size: 14px;
  color: var(--light); background: transparent; border: 0;
}
.highlight-actions [aria-hidden="true"] { font-size: 20px; line-height: 1; }
.highlight-viewer button:focus-visible { outline: 2px solid var(--paper); outline-offset: -3px; }
.highlight-stage {
  container-type: size; min-width: 0; min-height: 0; overflow: hidden; overscroll-behavior: contain;
  margin-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  touch-action: pan-y pinch-zoom;
}
.highlight-canvas {
  display: flex; align-items: center; justify-content: center;
  width: max-content; min-width: 100%; min-height: 100%;
}
.highlight-canvas > img {
  display: block; width: min(100cqw,calc(100cqh * var(--frame-ratio,1.777778)));
  max-width: none; height: auto; object-fit: contain; user-select: none;
}
.highlight-stage[data-zoomed="true"] { overflow: auto; touch-action: pan-x pan-y pinch-zoom; cursor: grab; }
.highlight-stage[data-zoomed="true"]:active { cursor: grabbing; }
.highlight-stage[data-zoomed="true"] .highlight-canvas > img { width: min(200cqw,calc(200cqh * var(--frame-ratio,1.777778))); }
.highlight-footer { padding-bottom: calc(6px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.highlight-caption { font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (hover: hover) {
  .highlight-trigger:hover .highlight-expand { background: var(--paper); color: var(--ink); }
  .highlight-actions button:hover { background: #1b1b1b; }
}
@media (max-height: 520px) {
  .highlight-bar { padding-block: env(safe-area-inset-top) 0; }
  .highlight-footer { padding-block: 0 env(safe-area-inset-bottom); }
}
.project-navigation a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--light); font-size: 14px; }
@media (min-width: 761px) {
  .project-detail[data-orientation="portrait"] .project-overview { grid-template-rows: auto 1fr; row-gap: clamp(24px,3vw,40px); align-items: start; }
  .project-detail[data-orientation="portrait"] .project-identity { grid-row: 1; }
  .project-detail[data-orientation="portrait"] .project-media-column { grid-column: 1; grid-row: 2; }
  .project-detail[data-orientation="portrait"] .project-info { grid-column: 2; grid-row: 2; }
}
@media (max-width: 760px) {
  .project-overview, .project-detail[data-orientation="landscape"] .project-overview { gap: 24px; }
  .project-info > .project-section:first-child { margin-top: 0; }
}
@media (max-width: 560px) {
  .project-page { width: 100%; height: auto; max-height: none; }
}


@container (min-width: 561px) {
  .case-frames[data-layout="mixed"] figure {
    max-width: min(100%,calc(min(38cqi,330px) * var(--frame-ratio)));
  }
}
@container (max-width: 560px) {
  .case-frames, .case-frames[data-layout="landscape"], .case-frames[data-layout="portrait"] {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px;
  }
  .case-frames figure { grid-column: span 2; }
  .case-frames figure[data-portrait], .case-frames[data-layout="landscape"] figure { grid-column: span 1; }
  .case-frames figure:nth-child(1 of [data-portrait]):nth-last-child(1 of [data-portrait]) {
    grid-column: span 2; width: min(74%,300px); justify-self: center;
  }
  [data-photo-section="sets"] .case-frames { grid-template-columns: minmax(0,1fr); }
  [data-photo-section="sets"] .case-frames figure { grid-column: 1; }
}
.project-nojs { width:100%; margin:16px 0; }
.project-nojs a { display:inline-block; padding:10px; color:var(--paper); text-decoration:underline; }

@media (max-width: 380px) {
  .project-share-trigger span { display: none; }
  .project-header-actions { gap: 12px; }
}
