.collection {
  background: var(--sand);
}
.collection .section-head { margin-bottom: clamp(28px, 4vw, 58px); }
.collection .section-head h2 em { color: #796447; }
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 33px);
}
.collection-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  border-bottom: 1px solid #c5b69f;
  padding-bottom: 20px;
}
.collection-card figure {
  aspect-ratio: 4 / 3;
  background: #a59784;
  overflow: hidden;
}
.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.collection-card:hover img { transform: scale(1.035); }
.collection-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-block: 17px 8px;
  color: #6c5940;
  font: .69rem/1.4 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.collection-card-name {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.collection-card h3 { font-size: clamp(1.85rem, 3.35vw, 3.3rem); }
.collection-card svg { width: 22px; height: 22px; flex: none; color: #796447; }
.collection-card p {
  color: var(--muted);
  margin-top: 9px;
  font-size: .88rem;
  line-height: 1.54;
}

.pressure-section {
  --scene-paper: #f2e9d8;
  --scene-text: #d6cbb8;
  --scene-gold: #dfc497;
  --scene-rule: #ae93635c;
  --focus: #e1cba1;
  padding-bottom: clamp(64px, 7vw, 112px);
  background: radial-gradient(ellipse at 88% 4%, #2a3328, #11231f 58%);
  color: var(--scene-paper);
}
.pressure-head .section-intro, .pressure-head .eyebrow { color: var(--scene-text); }
.pressure-head .section-intro { max-width: 42ch; }
.pressure-head .eyebrow span, .pressure-head em { color: var(--scene-gold); }
.pressure {
  display: grid;
  grid-template-columns: minmax(0, 2.16fr) minmax(262px, 1fr);
  grid-template-areas: "steps steps" "film controls" "film description";
  grid-template-rows: auto auto 1fr;
  border: 1px solid var(--scene-rule);
  background: #1b2b25;
}
.film-chapters {
  grid-area: steps;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--scene-rule);
}
.film-chapters button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 9px;
  color: var(--scene-text);
  background: #152721;
  border: 0;
  font-size: .87rem;
  line-height: 1.25;
}
.film-chapters button + button { border-left: 1px solid var(--scene-rule); }
.film-chapters button span { font: .72rem/1 var(--mono); color: var(--scene-gold); }
.film-chapters button[aria-pressed="true"] { color: #172820; background: var(--scene-gold); font-weight: 700; }
.film-chapters button[aria-pressed="true"] span { color: #51412e; }
.film-chapters button[aria-pressed="false"]:hover { background: #2a3a30; }

.pressure-film {
  grid-area: film;
  min-width: 0;
  background: #13221e;
  border-inline-end: 1px solid var(--scene-rule);
}
.theater {
  position: relative;
  aspect-ratio: 1000 / 550;
  overflow: hidden;
  isolation: isolate;
  background: #1b2c27;
  touch-action: pan-y;
}
.theater-art, .theater-assembly, .theater-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.theater-fallback { object-fit: contain; }
.theater-assembly { cursor: grab; touch-action: pan-y; }
.theater-assembly[data-dragging] { cursor: grabbing; }
.theater-assembly:focus-visible { outline-offset: -4px; }
[data-scene-mode="point"] .theater { cursor: crosshair; }
.theater-labels {
  position: absolute;
  inset: clamp(10px, 1.75vw, 22px) clamp(11px, 1.85vw, 24px) auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  font: .65rem/1.25 var(--mono);
  color: var(--scene-text);
  text-transform: uppercase;
  letter-spacing: .09em;
  pointer-events: none;
}
.theater-labels > :last-child { text-align: right; }
.film-label { display: inline-flex; align-items: center; gap: 8px; }
.film-label i { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: var(--scene-gold); }
.pocket [data-sleeve] { fill: #5d5748; stroke: #a6977a; stroke-width: 1.05; }
.pocket [data-spring] {
  fill: none;
  stroke: url(#film-spring);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[data-connections] path { fill: none; stroke: #d6be91; stroke-width: 2; opacity: .82; }

.film-tool-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 55px;
  padding: 5px clamp(10px, 1.8vw, 24px);
  border-top: 1px solid var(--scene-rule);
  background: #172821;
  color: var(--scene-text);
}
.film-tool-row > span { font-size: .78rem; line-height: 1.25; }
.film-tool, .film-play {
  min-height: 44px;
  padding: 5px 9px;
  color: var(--scene-paper);
  background: transparent;
  border: 1px solid #c9ad7f89;
  font-size: .76rem;
  line-height: 1.28;
}
.film-tool:not(:disabled):hover, .film-play:hover { background: #edcf9320; }
.orbit-reset { flex-shrink: 0; }
.orbit-reset:disabled { opacity: .58; }
.film-load-tools .scene-switch { width: 100%; }
.film-tool[aria-pressed="true"] { color: #172820; background: var(--scene-gold); }
.scene-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  border: 1px solid #ae93638c;
}
.scene-switch button {
  min-height: 44px;
  padding: 4px 9px;
  background: transparent;
  color: var(--scene-text);
  border: 0;
  font-size: .76rem;
  line-height: 1.24;
}
.scene-switch button + button { border-left: 1px solid #ae93638c; }
.scene-switch button[aria-pressed="true"] { color: #1b2b25; background: var(--scene-gold); font-weight: 700; }
.scene-switch button[aria-pressed="false"]:hover { background: #edcf9314; }

.film-profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr);
  align-items: center;
  gap: 5px 15px;
  min-height: 67px;
  padding: 7px clamp(10px, 1.8vw, 24px);
  background: #162620;
  border-top: 1px solid var(--scene-rule);
}
.film-profile-heading { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.film-profile-heading span {
  display: block;
  font: .62rem/1.3 var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--scene-text);
}
.film-profile strong { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.27; }
.film-profile svg { width: 100%; height: 42px; }
.profile-legend {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 4px 14px;
  justify-content: end;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .68rem;
  color: var(--scene-text);
}
.profile-legend li { display: flex; align-items: center; gap: 5px; }
.profile-legend li::before { content: ""; width: 14px; border-top: 2px solid #e8cb95; }
.profile-legend li:nth-child(2)::before { border-top: 2px dashed #e9e2d0; }
.profile-legend li:nth-child(3)::before { border-top: 2px dotted #a6c4ad; }

.film-controls { padding: 8px clamp(10px, 1.8vw, 24px); border-top: 1px solid var(--scene-rule); }
.film-timeline, .film-point-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.film-play { display: inline-flex; gap: 7px; align-items: center; justify-content: center; font-weight: 700; }
.film-play svg { width: 17px; height: 17px; flex: none; }
.film-track { min-width: 0; }
.film-track input, .film-point-controls input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  accent-color: var(--scene-gold);
  cursor: ew-resize;
}
.film-point-controls label { color: var(--scene-text); font-size: .78rem; }

.pressure-switches {
  grid-area: controls;
  min-width: 0;
  padding: clamp(15px, 2.15vw, 30px) clamp(15px, 2.15vw, 30px) 0;
}
.pressure-panel {
  grid-area: description;
  min-width: 0;
  padding: 0 clamp(15px, 2.15vw, 30px) clamp(15px, 2.15vw, 30px);
}
.pressure-micro {
  color: var(--scene-gold);
  font: .69rem/1.35 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.material-list { margin-top: 9px; border-top: 1px solid var(--scene-rule); }
.material-list button {
  width: 100%;
  min-height: 45px;
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) 13px;
  gap: 7px;
  align-items: center;
  padding: 6px 4px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--scene-rule);
  color: var(--scene-text);
  background: transparent;
  font-size: .82rem;
  line-height: 1.28;
}
.material-list button[aria-pressed="true"] { color: var(--scene-paper); background: #e6c18319; font-weight: 700; }
.material-list button:hover { background: #e6c18325; }
.material-list button span { font: .69rem/1 var(--mono); color: var(--scene-gold); }
.material-list button i { width: 8px; height: 8px; border: 1px solid #b7a283; }
.material-list button[aria-pressed="true"] i { background: var(--scene-gold); }
.pressure-explanation { margin-top: clamp(15px, 1.65vw, 24px); }
.pressure-explanation h3 { font-size: clamp(1.44rem, 2.1vw, 2.16rem); line-height: 1.1; }
.pressure-explanation p { margin-top: 8px; color: var(--scene-text); font-size: .87rem; line-height: 1.53; }
.pressure-hint { margin-top: 13px; padding-top: 10px; border-top: 1px solid var(--scene-rule); color: var(--scene-text); font-size: .77rem; line-height: 1.47; }
.pressure-example {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 3px;
  font-size: .78rem;
  color: var(--scene-gold);
  text-underline-offset: .23em;
}
.assembly-layer-list { margin: 10px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--scene-rule); }
.assembly-layer-list li { border-bottom: 1px solid var(--scene-rule); }
.assembly-layer-list button {
  min-height: 44px;
  width: 100%;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 4px 5px;
  text-align: left;
  background: transparent;
  color: var(--scene-paper);
  border: 0;
  font-size: .78rem;
  line-height: 1.27;
}
.assembly-layer-list button span:first-child { font: .72rem/1 var(--mono); color: var(--scene-gold); }
.assembly-layer-list button small { max-width: 10ch; font: .65rem/1.2 var(--mono); text-align: right; color: var(--scene-text); }
.assembly-layer-list button[aria-pressed="true"], .assembly-layer-list button:hover { background: #e6c18324; }
.assembly-layer-copy { min-height: 3em; margin-top: 9px; font-size: .76rem; line-height: 1.44; color: var(--scene-text); }
.pressure-notes { display: flex; justify-content: space-between; align-items: center; gap: 10px 22px; margin-top: 10px; }
.pressure-notes p { color: var(--scene-text); font-size: .79rem; line-height: 1.45; }
.pressure-notes a { flex: 0 0 auto; color: var(--scene-gold); }

@media (max-width: 1080px) {
  .pressure { grid-template-columns: minmax(0, 1.74fr) minmax(246px, 1fr); }
}
@media (max-width: 850px) {
  .pressure {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "steps" "controls" "film" "description";
    grid-template-rows: auto;
  }
  .pressure-switches { padding: 11px 12px 12px; border-bottom: 1px solid var(--scene-rule); }
  .pressure-switches .pressure-micro { font-size: .62rem; }
  .pressure-switches .material-list { margin-top: 6px; }
  .pressure-film { border-inline-end: 0; }
  .pressure-panel { border-top: 1px solid var(--scene-rule); }
  .theater-labels { font-size: .62rem; }
}
@media (max-width: 680px) {
  .collection-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .collection-card figure { aspect-ratio: 16 / 10; }
  .collection-card-meta { margin-top: 13px; }
  .collection-card p { margin-top: 7px; }
  .pressure-notes { align-items: flex-start; flex-direction: column; }
  .pressure-head h2 { font-size: clamp(2.3rem, 10vw, 3.6rem); }
  .film-chapters button { flex-direction: column; gap: 3px; padding-inline: 4px; font-size: .76rem; }
  .film-chapters button span { font-size: .64rem; }
  .material-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--scene-rule); }
  .material-list button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    min-height: 55px;
    padding: 4px 2px;
    border: 0;
    text-align: center;
    font-size: clamp(.65rem, 3.15vw, .81rem);
  }
  .material-list button + button { border-left: 1px solid var(--scene-rule); }
  .material-list button i { display: none; }
}
@media (max-width: 440px) {
  .film-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1.13fr); gap: 7px; }
  .film-profile-heading .film-tool { min-height: 44px; font-size: .67rem; }
  .scene-switch button { padding-inline: 5px; font-size: .76rem; }
  .profile-legend { justify-content: start; gap: 4px 8px; }
}
