/* Section-page pieces that only some shell pages use (airplanes map, conveyor, photos). */
.sec + .sec { margin-top: 84px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 18px; }
.sec-h h2 { font: 400 22px/28px var(--serif); margin: 0; }
.sec-h .aside { color: var(--faint); font: 400 12px/20px var(--mono); white-space: nowrap; }
.sec-note { color: var(--muted); margin: -8px 0 22px; max-width: 60ch; }

/* ------------------------------------------------------------------ map */
.map { position: relative; border-radius: 14px; overflow: hidden; background: rgba(2, 4, 16, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); touch-action: pan-y; --sq-line: rgba(255, 255, 255, .08); }
.sq-on { box-shadow: none !important; }   /* squircle.js draws the hairline along the corner curve instead */
.map svg { display: block; width: 100%; height: auto; cursor: grab; }
.map svg:active { cursor: grabbing; }
.m-sphere { fill: rgba(4, 8, 30, .35); }
.m-grat { fill: none; stroke: rgba(255, 255, 255, .035); stroke-width: .6; vector-effect: non-scaling-stroke; }
.m-land { fill: rgba(150, 170, 255, .075); }
.m-border { fill: none; stroke: rgba(190, 205, 255, .16); stroke-width: .5; vector-effect: non-scaling-stroke; }
.m-route { fill: none; stroke: var(--route); stroke-width: 1.15; stroke-opacity: .5; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke-opacity .25s ease, stroke-width .25s ease, stroke .25s ease; }
.map.ready .m-route { animation: draw 1.6s var(--ease) both; animation-delay: var(--d); stroke-dasharray: 2000; }
@keyframes draw { from { stroke-dashoffset: 2000; } to { stroke-dashoffset: 0; } }
.map.hovering .m-route { stroke-opacity: .12; }
.map.hovering .m-route.on { stroke: var(--accent); stroke-opacity: 1; stroke-width: 2.2; filter: drop-shadow(0 0 4px rgba(255, 122, 69, .6)); }
.m-hits path { fill: none; stroke: transparent; stroke-width: 12; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: pointer; }
.m-dots circle { fill: #fff; fill-opacity: .85; r: calc(2.2px / var(--k, 1)); }
.map-tip { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; white-space: nowrap; font: 400 13px/18px var(--sans); color: #fff; padding: 7px 11px; border-radius: 9px; background: rgba(10, 14, 40, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.map-ui { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.map-ui button { position: relative; width: 30px; height: 30px; border-radius: 8px; border: 0; color: var(--muted); background: rgba(6, 10, 34, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); --sq-line: rgba(255, 255, 255, .12); cursor: pointer; font: 400 16px/1 var(--sans); }
.map-ui button:hover { color: #fff; }
.map-hint { position: absolute; left: 12px; bottom: 12px; color: var(--faint); font: 400 11px/16px var(--mono); pointer-events: none; }
.map.failed::after { content: 'The map could not load.'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

/* ------------------------------------------------------------- conveyor */
.belt { position: relative; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; cursor: grab; outline: none; }
.belt.grabbing { cursor: grabbing; }
.belt-gl { display: block; opacity: 0; transition: opacity .8s ease; }
.belt.ready .belt-gl { opacity: 1; }
.belt:focus-visible { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }

/* --------------------------------------------------------------- photos */
.photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ph { position: relative; display: block; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #05070f; cursor: zoom-in; aspect-ratio: 3 / 2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); animation: appear .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 120ms); }
.ph:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.ph, .ph img, .lb img { -webkit-touch-callout: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.ph:hover img { transform: scale(1.035); }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; text-align: left; display: flex; flex-direction: column; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s var(--ease); }
.ph-cap b { font: 400 15px/20px var(--serif); }
.ph-cap i { font: normal 400 12px/16px var(--sans); color: rgba(255, 255, 255, .7); }
.ph:hover .ph-cap, .ph:focus-visible .ph-cap { opacity: 1; transform: none; }
@media (hover: none) { .ph-cap { opacity: 1; transform: none; } }

/* ------------------------------------------------------------- lightbox */
.lb { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(1, 1, 8, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lb.open { opacity: 1; pointer-events: auto; }
.lb figure { margin: 0; max-width: min(92vw, 1500px); }
.lb img { max-width: 100%; max-height: 80vh; border-radius: 10px; margin: 0 auto; pointer-events: none; }
.lb img.contain { background: transparent; border-radius: 0; }
.lb figcaption { text-align: center; margin-top: 14px; color: var(--muted); }
.lb figcaption b { font: 400 17px/22px var(--serif); color: #fff; font-weight: 400; }
.lb figcaption i { font-style: normal; margin-left: 8px; }
.lb button { position: absolute; background: none; border: 0; color: var(--muted); cursor: pointer; font: 300 34px/1 var(--sans); padding: 14px; }
.lb button:hover { color: #fff; }
.lb-x { top: 14px; right: 16px; }
.lb-p { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-n { right: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 900px) {
  .photos { grid-template-columns: 1fr; }
  .ph:first-child { aspect-ratio: 3 / 2; }
  .map-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .map.ready .m-route, .ph { animation: none; } }
