:root {
  color-scheme: dark;
  --background: #101010;
  --ivory: #faf8f2;
  --gold: #d8bd88;
  --muted: #bdb9b0;
  --rule: #39342b;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ivory); }
.wrap { width: min(1160px, calc(100% - clamp(2rem, 11vw, 10rem))); margin-inline: auto; }
.mast { background: #050505; border-bottom: 1px solid var(--rule); padding-block: .55rem; }
.mast img { display: block; mix-blend-mode: screen; }
.shipments { padding-block: clamp(2.5rem, 6vw, 5.5rem); }
.section-head { margin-bottom: clamp(1.6rem, 4vw, 3rem); }
h1 { margin: 0 0 .85rem; font-size: clamp(2.55rem, 6vw, 5.5rem); letter-spacing: -.06em; line-height: 1.04; }
.section-head p { margin: 0; max-width: 49ch; color: var(--muted); font-size: 1.1rem; line-height: 1.55; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.5rem); }
figure { margin: 0; background: #171716; border: 1px solid var(--rule); }
figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
figcaption { border-top: 1px solid var(--rule); padding: clamp(.9rem, 2vw, 1.4rem); }
.stage { margin: 0 0 .5rem; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; }
h3 { margin: 0; font-size: clamp(1.2rem, 2.1vw, 1.7rem); font-weight: 400; line-height: 1.2; letter-spacing: -.02em; }
@media (max-width: 650px) {
  .mast img { width: 96px; height: auto; }
  .gallery { grid-template-columns: 1fr; }
}
.case-title { margin: 0 0 .9rem; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.15; letter-spacing: -.035em; }
.case-spec { color: var(--muted); margin: 0 0 1.3rem; line-height: 1.5; }
.shipment-case + .shipment-case { margin-top: clamp(2rem, 5vw, 4rem); padding-top: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.stage:last-child { margin-bottom: 0; }
.shipment-note { margin: 0 0 1.3rem; color: var(--muted); line-height: 1.5; }

.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.home-link { color: inherit; text-underline-offset: .2em; }

.escalade-container-photo { object-position: center 48%; }

.shipment-case > .open-photos { margin-top: .85rem; }
.photo-dialog { width: min(56rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); box-sizing: border-box; padding: clamp(.85rem, 3vw, 1.5rem); color: #fff; background: #171716; border: 1px solid var(--rule); }
.photo-dialog::backdrop { background: rgb(0 0 0 / 80%); }
.photo-toolbar, .photo-navigation { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.photo-toolbar h2 { margin: 0; font-size: clamp(1rem, 3vw, 1.5rem); }
.photo-stages { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem 0; }
.open-photos, .photo-dialog button { font: inherit; color: var(--gold); background: #211e19; border: 1px solid var(--rule); padding: .5rem .8rem; cursor: pointer; }
.photo-dialog button[aria-pressed="true"] { border-color: var(--gold); }
.photo-dialog button:disabled { opacity: .45; cursor: default; }
.photo-dialog img { display: block; width: 100%; height: min(52vh, 32rem); object-fit: contain; background: #101010; }
.photo-dialog p { margin: .65rem 0; }

.photo-dialog { overflow: auto; }
.photo-dialog img[hidden] { display: none; }
.open-photos, .photo-dialog button { min-height: 44px; }
.open-photos:focus-visible, .photo-dialog button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.check-in { margin-top: 1rem; }
.check-in summary { padding: .65rem 0; cursor: pointer; color: var(--gold); }
.check-in-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.check-in-grid figcaption { padding: .6rem; }

@media (max-width: 420px) {
  .photo-navigation { gap: .35rem; }
  .photo-navigation button { padding-inline: .55rem; }
}
