/* Cases page: a head, then one of three layouts (A index, B grid, C one per screen) */
.c-head { padding: clamp(140px, 16vw, 220px) 0 clamp(48px, 6vw, 80px); }
.c-head .lead { max-width: 620px; margin-top: 28px; }
.c-proto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 44px; padding: 6px; border-radius: 999px; background: var(--white); width: max-content; max-width: 100%; box-shadow: 0 0 0 1px var(--rule); }
.c-proto .lbl { margin: 0 10px 0 12px; }
.c-proto button { height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; font: 500 14px/1 var(--sans); cursor: pointer; }
.c-proto button[aria-checked="true"] { background: var(--ink); color: var(--lime); }
.c-body { padding-bottom: clamp(80px, 10vw, 140px); }
.c-facts { display: flex; gap: 28px; flex-wrap: wrap; margin: 24px 0 0; }
.c-facts dt { font-size: clamp(28px, 2.6vw, 38px); font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.c-facts dd { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* A: index by mechanism */
.ca-group { padding: 28px 0 40px; }
.ca-gh { display: flex; align-items: baseline; gap: 18px; padding-bottom: 18px; border-bottom: 1.5px solid var(--ink); }
.ca-list { list-style: none; margin: 0; padding: 0; }
.ca-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(160px, .5fr) 32px; gap: 24px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); cursor: pointer; transition: padding .2s steps(3); }
.ca-tile { width: 96px; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--white); transition: width .24s steps(4); }
.ca-tile video { width: 100%; height: 100%; object-fit: cover; }
.ca-t b { display: block; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.02em; }
.ca-t span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }
.ca-f b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.ca-f span { color: var(--muted); font-size: 13px; }
.ca-go { font-size: 22px; transition: transform .2s steps(3); }
.ca-row:hover { padding: 22px 0; }
.ca-row:hover .ca-tile { width: 160px; }
.ca-row:hover { grid-template-columns: 160px minmax(0, 1fr) minmax(160px, .5fr) 32px; }
.ca-row:hover .ca-go { transform: translateX(6px); }
.ca-row:hover .ca-t b { background: var(--lime); box-shadow: 0 0 0 4px var(--lime); width: max-content; }
@media (max-width: 760px) { .ca-row, .ca-row:hover { grid-template-columns: 72px minmax(0, 1fr); } .ca-tile, .ca-row:hover .ca-tile { width: 72px; } .ca-f, .ca-go { display: none; } }

/* B: grid of covers */
.cb-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.cb-filter button { height: 36px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 500 14px/1 var(--sans); cursor: pointer; }
.cb-filter button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.cb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.cb[hidden] { display: none; }
.cb-m { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--white); }
.cb-m video { width: 100%; height: 100%; object-fit: contain; }
.cb .lbl { margin: 16px 0 6px; }
.cb h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.cb-tool { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cb-f { margin: 12px 0 0; font-size: 15px; } .cb-f b { background: var(--lime); padding: 0 4px; font-weight: 600; }
@media (max-width: 960px) { .cb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cb-grid { grid-template-columns: 1fr; } }

/* C: one case per screen, the list sticky on the left; the film is the case's preview, whole */
.cc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; width: min(1440px, calc(100vw - 2 * var(--gut))); margin: 0 auto; }
.cc-nav { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; }
.cc-nav a { display: flex; gap: 10px; align-items: baseline; padding: 5px 0; text-decoration: none; color: var(--muted); font-size: 15px; }
.cc-nav a[aria-current] { color: var(--ink); font-weight: 600; }
.cc-nav a[aria-current] .lbl { color: var(--ink); background: var(--lime); padding: 0 3px; }
.cc-case { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 48px); align-items: center; min-height: 88svh; padding: 48px 0; border-top: 1px solid var(--rule); }
.cc-m { margin: 0; }
.cc-f { aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; }
.cc-f video { width: 100%; height: 100%; object-fit: contain; }
.cc-m figcaption { margin-top: 10px; }
.cc-t .d3 { font-size: clamp(30px, 3vw, 44px); }
.c-part { display: inline-block; margin-top: 10px; padding: 3px 8px; background: var(--lime); font: 400 13px/1.3 var(--mono); }
.cc-tool { margin: 14px 0 10px; font-size: 18px; font-weight: 500; line-height: 1.4; }
.cc-text { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.cc-t .c-facts { gap: 22px; }
.cc-t .c-facts dt { font-size: clamp(24px, 2.2vw, 32px); }
.cc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.cc-tiles span { display: block; }
.cc-tiles video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--white); }
.cc-tiles em { display: block; margin-top: 6px; font: 400 12px/1.3 var(--mono); font-style: normal; color: var(--muted); }
@media (max-width: 1100px) { .cc-case { grid-template-columns: 1fr; min-height: 0; } }
@media (max-width: 960px) { .cc { grid-template-columns: 1fr; } .cc-nav { display: none; } }
.ca-t .c-part, .cb .c-part { margin: 6px 0 2px; font-size: 12px; }

/* type tags above the list */
.c-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.c-filter button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; font: 500 15px/1 var(--sans); cursor: pointer; }
.c-filter button span { font: 400 12px/1 var(--mono); color: var(--muted); }
.c-filter button[aria-pressed="true"] { background: var(--ink); color: var(--lime); }
.c-filter button[aria-pressed="true"] span { color: #8B8B8E; }
.c-filter button:hover { background: var(--white); } .c-filter button[aria-pressed="true"]:hover { background: var(--ink); }
.cc-nav a[hidden], .cc-case[hidden] { display: none; }
