.work-archive {
    overflow: clip;
    background: radial-gradient(ellipse 66% 450px at 90% 0, #dbece8a8, transparent), var(--paper);
}
.work-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
    align-items: end;
    gap: 24px;
    padding-block: clamp(52px, 6.5vw, 100px) clamp(44px, 5.3vw, 82px);
}
.work-intro h1 {
    font-size: clamp(76px, 9.2vw, 142px);
    letter-spacing: -.075em;
    line-height: .92;
}
.work-mark { display: inline-block; width: .155em; height: .155em; margin-left: .06em; border-radius: 50%; background: var(--lime); }
.work-intro-copy { max-width: 41ch; }
.work-intro-copy p { color: var(--muted); line-height: 1.5; }
.work-intro-copy .under { margin-top: 12px; }
.work-reel {
    --reel-gap: clamp(12px, 1.8vw, 30px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding-block: 6px 12px;
    scroll-behavior: auto;
    overflow-anchor: none;
}
.work-reel.is-looping { overflow: clip; touch-action: pan-y pinch-zoom; }
.work-reel.is-looping .reel-track { will-change: transform; }
.work-reel.is-looping .reel-item { user-select: none; -webkit-user-drag: none; }
.reel-image img { -webkit-user-drag: none; }
.work-reel.is-dragging .reel-item { cursor: grabbing; }
.work-reel-loop .reel-track { margin-inline-start: max(4%, calc((100% - 1216px)/2)); }
.reel-track, .reel-set { display: flex; width: max-content; }
.reel-set {
    flex: none;
    position: relative;
    align-items: center;
    gap: var(--reel-gap);
    padding-inline-end: var(--reel-gap);
}
.work-reel:not(.work-reel-loop) .reel-track { margin-inline: auto; }
.reel-item { display: block; flex: none; width: clamp(380px, 50vw, 710px); }
.reel-image { display: block; overflow: hidden; aspect-ratio: 1.8; background: var(--foam); border-radius: 18px; }
.reel-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 26%; }
.reel-item:nth-child(3n + 2) { width: clamp(210px, 21vw, 304px); }
.reel-item:nth-child(3n + 2) .reel-image { aspect-ratio: .82; }
.reel-item:nth-child(3n) { width: clamp(300px, 35vw, 510px); }
.reel-item:nth-child(3n) .reel-image { aspect-ratio: 1.94; }
.reel-caption { display: block; margin-top: 9px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.reel-caption span { color: var(--muted); font-weight: 400; }
.reel-item:focus-visible { outline-offset: -2px; border-radius: 18px 18px 0 0; }
.reel-controls { display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding-top: 12px; }
.reel-controls::before { content: ''; height: 1px; flex: 1; background: var(--line); margin-right: 12px; }
.reel-controls button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 22px; line-height: 1; }
.reel-controls button:is(:hover, :focus-visible) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-index { padding-block: clamp(44px, 5.2vw, 82px) clamp(64px, 8vw, 128px); }
.work-index-head { display: flex; align-items: baseline; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: clamp(22px, 2.4vw, 38px); }
.work-index-head h2 { font-size: clamp(32px, 3.6vw, 55px); }
.work-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(44px, 5vw, 80px) clamp(24px, 3.3vw, 52px); }
.work-entry { min-width: 0; }
.work-card { display: block; height: 100%; border-radius: 18px 18px 0 0; }
.work-card .preview-card { isolation: isolate; aspect-ratio: 1.58; border-radius: 16px; }
.work-card .preview-card::after, .reel-image { box-shadow: inset 0 0 0 1px #102d3112; }
.work-card .preview-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; }
.work-card .scroll-image, .work-card video { opacity: 1; }
.work-card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-block: 17px 7px; }
.work-card-head .meta { font-size: 13px; margin-bottom: 4px; }
.work-card h3 { font-size: clamp(23px, 2.15vw, 33px); overflow-wrap: anywhere; }
.work-arrow { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; line-height: 1; transition: background .3s, color .3s, border-color .3s; }
.work-card:is(:hover, :focus-visible) .work-arrow { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.work-summary { color: var(--muted); font-size: 15px; max-width: 50ch; }
.work-index .pagination { margin-top: 40px; }
.work-index .nav-links { display: flex; flex-wrap: wrap; gap: 14px; }
.work-index .page-numbers.current { text-decoration: underline; }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
    .work-intro { grid-template-columns: 1fr; gap: 19px; }
    .work-intro-copy { max-width: 38ch; }
    .reel-caption { font-size: 12px; }
    .reel-item { width: 84vw; }
    .reel-item:nth-child(3n + 2) { width: 49vw; }
    .reel-item:nth-child(3n) { width: 72vw; }
}
@media (prefers-reduced-motion: no-preference) {
    .work-intro h1, .work-intro-copy, .work-reel, .work-entry.is-revealed {
        animation: sg-enter 1.05s var(--ease) backwards;
    }
    .work-intro h1 { --entry-y: 10px; --entry-opacity: .55; }
    .work-intro-copy { --entry-y: 8px; animation-delay: .12s; }
    .work-reel { --entry-y: 12px; --entry-opacity: .45; animation-delay: .2s; }
    .work-entry.reveal-pending:not(:focus-within) { opacity: 0; }
    .work-entry.is-revealed { --entry-y: 14px; animation-delay: var(--entry-delay, 0s); }
    .work-entry:focus-within, .work-intro:focus-within > *, .work-reel:focus-within { animation: none; }
}
