/* Opt-in portfolio experience. Motion is event-driven; no scroll takeover. */
/* This experience owns its short image transition; demos need no document opt-in. */
@view-transition { navigation: none; }
.exhibit { padding-top: var(--bar-h); }
.exhibit__intro { padding: 40px var(--gutter) 38px; }
.exhibit__intro > .label { margin-bottom: 24px; }
.exhibit__intro-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 3fr); gap: 4vw; align-items: end; }
.exhibit h1 { font: 780 clamp(3rem, 6.6vw, 6.6rem)/.96 var(--sans); font-variation-settings: "wdth" 112; letter-spacing: -.047em; color: var(--ink); max-width: 14ch; text-wrap: balance; overflow-wrap: anywhere; }
.exhibit__intro-copy { display: grid; justify-items: start; gap: 16px; }
.exhibit__intro-copy p { max-width: 30rem; }
.exhibit__intro-copy .btn { line-height: 1.25; padding-top: 12px; padding-bottom: 12px; max-width: 100%; }
.exhibit__gallery { background: var(--graphite); color: var(--on-dark); padding: 22px var(--gutter) 12px; }
.exhibit__heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.exhibit__heading .label, .exhibit__hint { color: var(--on-dark-muted); }
.exhibit__hint { font: italic 1.1rem var(--serif); }
.exhibit__tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid #565656; border-bottom: 1px solid #565656; }
.exhibit__tabs a { display: flex; align-items: center; gap: 14px; text-align: left; text-decoration: none; background: transparent; border: 0; color: var(--on-dark-muted); min-height: 68px; padding: 14px 18px; cursor: pointer; position: relative; font-size: .9375rem; font-weight: 650; }
.exhibit__tabs a + a { border-left: 1px solid #565656; }
.exhibit__tabs a::after { content: ''; position: absolute; height: 3px; background: var(--signal); bottom: -1px; left: 0; right: 0; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.exhibit__tabs a[aria-selected="true"] { background: #252629; color: var(--on-dark); }
.exhibit__tabs a[aria-selected="true"]::after { transform: scaleX(1); }
.exhibit__tabs a:hover { color: var(--on-dark); background: #252629; }
.exhibit__tabs a:focus-visible { outline-color: var(--on-dark); outline-offset: -5px; }
.exhibit__tab-number { font: 400 italic 1.5rem var(--serif); color: var(--on-dark-muted); }
.exhibit__tab-arrow { margin-left: auto; font-size: 1.4rem; }
.exhibit__project { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,3fr); align-items: center; gap: clamp(28px,5vw,80px); padding: 48px 0; }
.exhibit__project + .exhibit__project { border-top: 1px solid #565656; }
.exhibit[data-enhanced] .exhibit__project { border: 0; }
.exhibit__project > *, .exhibit__intro-grid > * { min-width: 0; }
.exhibit__canvas { position: relative; padding: 18px 22px 28px 8px; isolation: isolate; }
.exhibit__canvas::before { content: attr(data-number); position: absolute; right: -3%; bottom: -8%; z-index: -1; font: 800 clamp(9rem,20vw,22rem)/.8 var(--sans); letter-spacing: -.08em; color: #323337; }
.exhibit__back { position: absolute; inset: 18px 22px 28px 8px; border: 1px solid #73736f; background: #242527; z-index: -1; pointer-events: none; }
.exhibit__back--one { transform: translate(16px,-5px) rotate(2.5deg); }
.exhibit__back--two { transform: translate(7px,8px) rotate(-2deg); background: #303133; }
.exhibit__screen { display: block; color: var(--on-dark); text-decoration: none; background: #232426; position: relative; border: 1px solid #777873; box-shadow: 0 20px 36px -24px #000; transform: rotate(-.6deg); transition: transform .25s ease; }
.exhibit__screen:hover, .exhibit__screen:focus-visible { transform: translateY(-5px) rotate(0); }
.exhibit__screen:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 5px; }
.exhibit__screen-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; font-size: .6875rem; letter-spacing: .02em; }
.exhibit__screen-bar > span:first-child { color: #c0bbb1; font-size: .5rem; letter-spacing: .2em; }
.exhibit__screen img { width: 100%; aspect-ratio: 1425 / 1000; object-fit: cover; height: auto; }
.exhibit__open { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; min-height: 44px; background: var(--paper); color: var(--ink); font-weight: 700; }
.exhibit__open > span { color: var(--ink); font-size: 1.4rem; }
.exhibit__notes { display: grid; justify-items: start; align-content: center; gap: 20px; padding-bottom: 20px; }
.exhibit__meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--on-dark-muted); font-size: .8125rem; }
.exhibit__meta .tag--concept { color: var(--on-dark); }
.exhibit__notes h2 { font: 750 clamp(2rem,3.3vw,3.7rem)/1.02 var(--sans); font-variation-settings: "wdth" 108; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.exhibit__notes > p:not(.exhibit__meta) { color: #c0bbb1; max-width: 32rem; }
.exhibit__notes .link-arrow { max-width: 100%; line-height: 1.35; }
.exhibit__detail { width: 100%; border-top: 1px solid #62635f; color: #c0bbb1; }
.exhibit__detail summary { min-height: 48px; padding: 12px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; color: var(--on-dark); list-style: none; }
.exhibit__detail summary::-webkit-details-marker { display: none; }
.exhibit__detail summary span { font-size: 1.4rem; }
.exhibit__detail[open] summary span { transform: rotate(45deg); }
.exhibit__detail > div { display: grid; gap: 10px; padding-bottom: 8px; font-size: .9375rem; }
.exhibit__detail a { display: inline-flex; min-height: 44px; align-items: center; color: var(--on-dark); text-underline-offset: 4px; }
.exhibit__end { border-top: 1px solid #565656; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px; color: var(--on-dark-muted); font-size: .8125rem; }
.exhibit__end a { min-height: 44px; display: inline-flex; gap: 16px; align-items: center; color: var(--on-dark); }
.exhibit-flight { position: fixed; z-index: 150; margin: 0; object-fit: cover; object-position: top; pointer-events: none; transform-origin: top left; }
@media (max-width: 860px) {
  .exhibit__intro { padding-top: 26px; padding-bottom: 30px; }
  .exhibit__intro > .label { max-width: 30rem; min-height: 3em; margin-bottom: 18px; line-height: 1.5; }
  .exhibit__intro-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .exhibit h1 { font-size: clamp(2.5rem,9vw,4.4rem); max-width: 16ch; }
  .exhibit__intro-copy { gap: 14px; }
  .exhibit__intro-copy > .link-arrow { display: none; }
  .exhibit__gallery { padding-top: 18px; }
  .exhibit__heading { min-height: 1.8rem; }
  .exhibit__hint { display: none; }
  .exhibit__tabs a { min-height: 80px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 12px 8px; font-size: .8125rem; line-height: 1.3; }
  .exhibit__tab-number { font-size: 1.1rem; }
  .exhibit__tab-arrow { display: none; }
  .exhibit__project { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 28px 0 20px; }
  .exhibit__canvas { padding: 8px 15px 16px 3px; }
  .exhibit__back { inset: 8px 15px 16px 3px; }
  .exhibit__back--one { transform: translate(9px,-2px) rotate(2deg); }
  .exhibit__back--two { transform: translate(5px,5px) rotate(-2deg); }
  .exhibit__notes { gap: 16px; padding-bottom: 8px; }
  .exhibit__notes h2 { font-size: clamp(2rem,8vw,3rem); }
  .exhibit__canvas::before { right: 0; bottom: -4%; font-size: 9rem; }
  .exhibit__screen-bar { padding: 7px 10px; font-size: .625rem; }
  .exhibit__end { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .exhibit *, .exhibit *::after { transition: none !important; }
  .exhibit__screen, .exhibit__screen:hover { transform: none; }
}
.force-reduced .exhibit *, .force-reduced .exhibit *::after { transition: none !important; }
@media (max-height: 500px) { .exhibit__intro { padding-top: 24px; } }
@media (min-width: 861px) {
  .exhibit__project[data-project-panel="1"] { grid-template-columns: minmax(0,3fr) minmax(0,7fr); }
  .exhibit__project[data-project-panel="1"] .exhibit__canvas { order: 2; }
  .exhibit__project[data-project-panel="1"] .exhibit__notes { order: 1; }
}
