/* /shipped/: a street of things I've made. One row, oldest left, newest right, ticks underneath.
   The objects (.obj) are shared with the homepage hero. */

/* ───────── Objects ───────── */
.obj { position: relative; display: block; margin: 0 auto; }
.obj img, .obj video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.obj-icon { width: 132px; height: 132px; filter: drop-shadow(0 18px 22px rgba(10, 10, 10, .18)); }
.obj-cutout { width: 190px; height: 190px; filter: drop-shadow(0 22px 26px rgba(10, 10, 10, .16)); }
.obj-cutout img { object-position: 50% 100%; }
/* A sprite sheet: --r is the row (mood), --f the frame, drawn at twice size with crisp pixels. */
.obj-sprite { --z: 2; --r: 3; --f: 0; width: calc(96px * var(--z)); height: calc(104px * var(--z)); background: var(--sheet) no-repeat;
  background-size: calc(576px * var(--z)) auto; background-position: calc(var(--f) * -96px * var(--z)) calc(var(--r) * -104px * var(--z)); image-rendering: pixelated; }
.st-thumb .obj-sprite { --z: .42; }
/* Meridian's mascot, live, in gold on a frosted tile, the same glass as the street's buttons (it was a black app tile). */
.obj-line { width: 132px; height: 132px; display: grid; place-items: center; border-radius: 30px; corner-shape: squircle; background: var(--pill, rgb(243 247 252 / .42));
  -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.12); backdrop-filter: blur(16px) saturate(1.8) brightness(1.12);
  color: #f6c93a; --head: currentColor; box-shadow: 0 18px 30px rgb(20 40 80 / .12); }
.obj-line > span { width: 100px; height: 100px; }
.obj-line img { width: 100%; height: 100%; border-radius: 30px; }
@supports not (corner-shape: squircle) { .obj-line { border-radius: 29px; } }
.obj-phone { width: 92px; height: 188px; padding: 5px; border-radius: 20px; background: #111; box-shadow: 0 20px 30px rgba(10, 10, 10, .2), inset 0 0 0 1px rgba(255, 255, 255, .1); }
.obj-phone > span { display: block; width: 100%; height: 100%; border-radius: 15px; overflow: hidden; background: #fff; }
.obj-phone img { object-fit: cover; object-position: 50% 0; }
.obj-screen { width: 224px; height: 150px; padding: 18px 5px 5px; border-radius: 12px; background: color-mix(in srgb, var(--ink) 8%, var(--bg)); box-shadow: 0 20px 30px rgba(10, 10, 10, .14), inset 0 0 0 1px var(--hair); }
.obj-screen i { position: absolute; top: 7px; left: 9px; width: 5px; height: 5px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); box-shadow: 9px 0 0 color-mix(in srgb, var(--ink) 22%, transparent), 18px 0 0 color-mix(in srgb, var(--ink) 22%, transparent); }
.obj-screen > span { display: block; width: 100%; height: 100%; border-radius: 7px; overflow: hidden; }
.obj-screen img { object-fit: cover; object-position: 50% 0; }
/* No picture: a lettered tile, the same size as an app icon so the street keeps one skyline. */
.obj-tile { width: 116px; height: 116px; margin-bottom: 8px; display: grid; place-items: center; border-radius: 27px; corner-shape: squircle;
  background: linear-gradient(160deg, color-mix(in srgb, var(--ink) 3%, var(--bg)), color-mix(in srgb, var(--ink) 9%, var(--bg)));
  box-shadow: 0 18px 24px rgba(10, 10, 10, .12), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 0 0 1px var(--hair); }
@supports not (corner-shape: squircle) { .obj-tile { border-radius: 26px; } }
.obj-tile b { font-family: var(--serif); font-weight: 300; font-size: 58px; line-height: 1; color: var(--ink-2); }
[data-theme="dark"] .obj-tile { box-shadow: 0 18px 24px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px var(--hair); }
.obj-tile.is-wraps { overflow: hidden; color: var(--ink); background: conic-gradient(from 210deg at 40% 60%, #c9d2e6, #efe4dc, #d8d0ef, #e6eef0, #c9d2e6); }
[data-theme="dark"] .obj-tile.is-wraps { background: conic-gradient(from 210deg at 40% 60%, #283048, #3a2a33, #2e2948, #22343a, #283048); }
.obj-tile.is-wraps svg { position: relative; width: 22px; height: 22px; opacity: .7; }
.obj-blur { position: absolute; inset: -30%; background: inherit; filter: blur(14px); }

/* ───────── The street ─────────
   The sky (colours set by streetSky() in shipped.js): a tall gradient, a glow on the horizon at sunrise and
   sunset, and a fine grain. Words are navy by day and pale after dark; secondary words are the same colour
   at half strength, so they always sit in the sky's tint. One highlight, the ring's orange; pink for hearts. */
.is-street { height: 100svh; overflow: hidden; --hi: #f26419;
  --ink: #18233a; --ink-2: rgb(24 35 58 / .7); --whisper: rgb(24 35 58 / .5); --hair: rgb(24 35 58 / .1);
  --nav-glass: var(--pill); --st-date: #4f6c94; --st-nav: #2f4a72; --pill: rgb(243 247 252 / .42); --pill-on: rgb(255 255 255 / .5); --panel: rgb(238 243 250 / .6);
  background: var(--sky-low, #f9ede2) linear-gradient(180deg, var(--sky-top, #9ec0e9) 0%, var(--sky-mid, #cdd9e9) 48%, var(--sky-low, #f9ede2) 92%) fixed;
  transition: background-color 2s linear; }
.is-street.is-night { color-scheme: dark; --bg: #13264a;
  --ink: #edf2fa; --ink-2: rgb(237 242 250 / .72); --whisper: rgb(237 242 250 / .52); --hair: rgb(237 242 250 / .12);
  --st-date: #9db4d8; --st-nav: #d6e2f5; --pill: rgb(40 60 105 / .38); --pill-on: rgb(255 255 255 / .12); --panel: rgb(22 36 68 / .62); }
.is-street::before, .is-street::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.is-street::before { background: radial-gradient(80% 50% at 50% 108%, var(--sky-sun, transparent), transparent 70%); opacity: var(--sky-sun-a, 0); transition: opacity 2s linear; }
.is-street::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .07; mix-blend-mode: overlay; }
.is-night .st-stand .obj { filter: brightness(.86) saturate(.92); }
.st-h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.street { position: relative; height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 72px; }

.st-track { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0 calc(50% - 120px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  cursor: grab; -webkit-user-select: none; user-select: none; overscroll-behavior-x: contain; transition: filter .35s var(--ease); }
.st-track::-webkit-scrollbar { display: none; }
.st-track.is-dragging { cursor: grabbing; }
.st-item { --near: 1; position: relative; flex: none; width: 240px; height: 430px; display: flex; flex-direction: column; justify-content: flex-start; align-items: center; text-align: center; transition: opacity .35s var(--ease); }
.st-hit { position: absolute; inset: 0; z-index: 2; border-radius: 20px; cursor: inherit; -webkit-tap-highlight-color: transparent; }
.st-hit:focus-visible { outline: 2px solid var(--hi); outline-offset: 4px; }
.st-item > time { font-size: 15px; font-weight: 500; color: var(--st-date); transition: color .3s var(--ease); }
/* Every object stands on the same ground line; near the focus they stand a touch taller. */
.st-stand { position: relative; height: 220px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin: 18px 0 22px;
  transform: scale(calc(.94 + var(--near) * .06)); transform-origin: 50% 100%; transition: transform .25s var(--ease); }
.st-stand .obj { transition: transform .5s var(--ease), filter 2s linear; }

.st-words { display: flex; flex-direction: column; align-items: center; width: 220px; }
.st-item h2 { max-width: 220px; font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.st-p { margin-top: 3px; font-size: 15px; font-weight: 400; color: var(--whisper); }
/* Quiet: just the date and the object; the words come up for the one in focus, the open one, or under the pointer. */
.st-words > :is(h2, .st-p) { opacity: 0; translate: 0 4px; transition: opacity .3s var(--ease), translate .3s var(--ease); }
.st-item:is(.is-focus, .is-open) .st-words > :is(h2, .st-p) { opacity: 1; translate: 0 0; }
@media (hover: hover) { .st-item:hover .st-words > :is(h2, .st-p) { opacity: 1; translate: 0 0; } }
.st-item.is-open > time { color: var(--hi); }
/* Small updates (shown only when the lab asks): a short stand. */

/* Tapped: the others step back a little and the details unfold under it. */
.st-track.has-open .st-item:not(.is-open) { opacity: .5; }
.st-item.is-open .obj { transform: translateY(-8px) scale(1.04); }
.st-more { display: grid; grid-template-rows: 0fr; width: 100%; transition: grid-template-rows .45s var(--ease); }
.st-more > * { min-height: 0; overflow: hidden; }
.st-item.is-open .st-more { grid-template-rows: 1fr; }
.st-more p { padding-top: 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.st-more p.is-blur { filter: blur(4px); user-select: none; }
.st-acts { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 6px; padding-top: 10px; }
.st-item:not(.is-open) .st-acts { visibility: hidden; }
.st-open { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--bg); background: var(--ink); }
.st-open svg { width: 11px; height: 11px; }
.st-heart { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); background: var(--pill); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: color .2s var(--ease); }
.st-heart svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.st-heart.is-on { color: #ed1652; }
.st-heart.is-on svg { fill: currentColor; }
.st-heart.is-pop svg { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }

/* ───────── The bar: filter and search bottom left, the scrubber in the middle ───────── */
.st-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 20px; padding: 0 24px 24px; transition: filter .35s var(--ease); }
.st-tools { position: relative; justify-self: start; display: flex; z-index: 20; }
/* Frosted squircle buttons, the same shape as the menu and search panel. */
.st-pill { height: 40px; display: inline-flex; align-items: center; gap: 3px; padding: 0 12px 0 16px; border-radius: 15px; corner-shape: squircle; font-size: 16px; font-weight: 500; color: var(--st-nav);
  background: var(--pill); -webkit-backdrop-filter: blur(14px) saturate(1.8) brightness(1.12); backdrop-filter: blur(14px) saturate(1.8) brightness(1.12);
  transition: background-color .2s var(--ease), scale .2s var(--ease); }
.st-pill:hover { background: var(--pill-on); }
.st-pill:active { scale: .96; }
.st-pill:focus-visible { outline: 2px solid var(--hi); outline-offset: 2px; }
.st-pill svg { width: 16px; height: 16px; transition: rotate .35s var(--ease); }
.st-pill.is-r { width: 40px; justify-content: center; padding: 0; margin-left: 6px; }
.st-pill.is-r svg { width: 17px; height: 17px; }
.st-pill[aria-expanded="true"] svg { rotate: 180deg; }
/* The menu grows out of the pill's corner, stretched and leaning at first, then settles with a little give. */
.st-menu { position: absolute; left: 0; bottom: calc(100% + 7px); display: grid; grid-template-columns: repeat(2, max-content); column-gap: 6px; padding: 8px;
  border-radius: 28px; corner-shape: squircle; background: var(--pill); -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.12); backdrop-filter: blur(16px) saturate(1.8) brightness(1.12);
  box-shadow: 0 12px 40px rgb(20 40 80 / .1);
  transform-origin: 0 100%; transform: translate(0, 12px) scale(.32, .18) skewX(-16deg); opacity: 0; filter: blur(8px); visibility: hidden;
  transition: transform .22s cubic-bezier(.5, 0, .9, .5), opacity .18s linear, filter .22s linear, visibility 0s .22s; }
.st-menu.is-open { transform: none; opacity: 1; filter: none; visibility: visible;
  transition: transform .55s cubic-bezier(.16, 1.22, .36, 1), opacity .16s linear, filter .3s var(--ease), visibility 0s; }
.st-menu button { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--st-nav); white-space: nowrap; transition: background-color .15s var(--ease); }
.st-menu button:is(:hover, :focus-visible) { background: var(--pill-on); outline: none; }
.st-menu button[aria-checked="true"]::after { content: ""; width: 6px; height: 6px; margin-left: 2px; border-radius: 50%; background: var(--hi); }
.st-mi { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.st-mi svg { width: 17px; height: 17px; }
.st-mi img { width: 18px; height: 18px; border-radius: 5px; }
@supports not (corner-shape: squircle) { .st-menu { border-radius: 24px; } .st-pill { border-radius: 12px; } }

/* ───────── Search: a frosted panel in the middle, everything else blurred behind it ───────── */
/* Search sits in the middle over a blurred street. The blur is one layer that fades in (rather than blurring
   every ship), and the panel eases up without a bounce, so it arrives smoothly. */
.st-search { position: fixed; inset: 0; z-index: 70; display: grid; justify-items: center; align-content: start; padding: 16vh 16px 0;
  visibility: hidden; transition: visibility 0s .3s; }
.st-search::before { content: ""; position: absolute; inset: 0; background: rgb(20 35 60 / .05);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .3s var(--ease); }
.is-searching .st-search { visibility: visible; transition: visibility 0s; }
.is-searching .st-search::before { opacity: 1; transition-duration: .45s; }
.st-search-panel { position: relative; width: min(576px, 100%); overflow: hidden; border-radius: 28px; corner-shape: squircle; background: var(--panel);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); box-shadow: 0 30px 80px rgb(20 40 80 / .14);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .2s var(--ease), transform .3s var(--ease); }
.is-searching .st-search-panel { opacity: 1; transform: none; transition: opacity .3s .05s var(--ease), transform .5s .05s cubic-bezier(.2, .9, .25, 1); }
.st-q { display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 20px; color: var(--st-date); }
.st-q svg { width: 19px; height: 19px; flex: none; }
.st-q input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font: 500 18px/1 var(--sans); color: var(--ink); }
.st-q input::placeholder { color: var(--whisper); }
.st-q input::-webkit-search-cancel-button { display: none; }
.st-q span { font-size: 15px; font-weight: 500; white-space: nowrap; }
.st-results { list-style: none; }
.st-results:not(:empty) { padding: 6px; border-top: .5px solid var(--hair); }
.st-results button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 18px; text-align: left; transition: background-color .15s var(--ease); }
.st-results button:is(:hover, .is-on) { background: var(--pill-on); }
.st-results b { display: block; font-size: 16px; font-weight: 500; color: var(--ink); }
.st-results small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--st-date); }
.st-thumb { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 11px; overflow: hidden; }
.st-thumb img { width: 100%; height: 100%; object-fit: contain; }
.st-thumb b { font-family: var(--serif); font-weight: 300; font-size: 24px; color: var(--ink-2); }
.st-thumb:has(b) { background: var(--pill-on); }
.st-thumb.is-wraps { color: var(--ink); background: conic-gradient(from 210deg at 40% 60%, #c9d2e6, #efe4dc, #d8d0ef, #e6eef0, #c9d2e6); }
.st-thumb.is-wraps svg { width: 16px; height: 16px; opacity: .7; }

/* ───────── The scrubber ───────── */
.st-ticks { display: flex; align-items: flex-end; gap: 5px; height: 38px; padding-top: 16px; cursor: ew-resize; touch-action: none; -webkit-user-select: none; user-select: none; }
.st-tick { --base: 8; position: relative; width: 2px; height: calc(var(--base) * 1px); }
/* Keep the wave out of layout; the label follows the tip without being stretched. */
.st-tick::before { content: ""; position: absolute; inset: 0; border-radius: 1px;
  transform-origin: 50% 100%; transform: scaleY(calc(1 + var(--lift, 0) * 12 / var(--base)));
  background: color-mix(in srgb, var(--ink) calc(18% + var(--lift, 0) * 26%), transparent);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background-color .2s var(--ease); }
.st-tick.is-month { --base: 13; }
.st-tick.is-on::before { background: var(--hi); }
.st-tick span { position: absolute; bottom: 100%; left: 50%; translate: -50% -4px; font-size: 11px; font-weight: 500; font-style: normal; color: var(--st-date); white-space: nowrap;
  transform: translateY(calc(var(--lift, 0) * -12px)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }

@media (max-width: 700px) {
  .street { padding-top: 64px; }
  .st-item { width: 200px; }
  .st-track { padding: 0 calc(50% - 100px); }
  .st-bar { grid-template-columns: auto 1fr; gap: 14px; padding: 0 16px 18px; }
  .st-ticks { gap: 4px; justify-self: end; }
  .st-search { padding-top: 9vh; }
}
@media (prefers-reduced-motion: reduce) { .st-more, .st-menu, .st-menu.is-open, .st-search-panel, .is-searching .st-search-panel { transition: opacity .2s; transform: none; } }

/* A short window needs a scrollable street, rather than clipping the dates and details. */
@media (max-height: 800px) {
  .is-street { height: auto; overflow-y: auto; }
  .street { height: auto; min-height: 100svh; grid-template-rows: minmax(560px, 1fr) auto; }
  .st-track { padding-block: 24px; }
  .st-item { height: auto; min-height: 430px; }
}
@media (pointer: coarse) {
  .st-bar { padding-bottom: max(18px, env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .st-pill, .st-pill.is-r, .st-heart { min-width: 44px; min-height: 44px; }
  .st-open, .st-menu button { min-height: 44px; }
}
/* Only the stand uses proximity; its artwork need not inherit every scroll update. */
@property --near { syntax: '<number>'; inherits: false; initial-value: 1; }

/* Screens show the work at a useful size; keep the shared homepage objects compact. */
.is-street .st-item { width: 360px; height: 480px; }
.is-street .st-track { padding-inline: calc(50% - 180px); gap: 24px; }
.is-street .st-stand { height: 270px; }
.is-street .obj-screen { width: 348px; height: 246px; }
.is-street .obj-screen img { object-fit: contain; }
.is-street .obj-phone { width: 124px; height: 260px; }
.is-street .obj-cutout { width: 260px; height: 260px; }
@media (max-width: 700px) {
  .is-street .st-item { width: 280px; }
  .is-street .st-track { padding-inline: calc(50% - 140px); gap: 16px; }
  .is-street .obj-screen { width: 276px; height: 206px; }
}

/* One crossfade. Both pages wear the same fixed sky, so the two halves fade with the same timing and add up
   (plus-lighter): the sky stays put and only the content changes. Normal blending let the plain colour behind
   the page show through halfway, which read as the screen turning blue. */
.shipped-hop::view-transition-old(root),
.shipped-hop::view-transition-new(root) {
  animation: shipped-fade-out .28s ease both;
  mix-blend-mode: plus-lighter;
}
.shipped-hop::view-transition-new(root) { animation-name: shipped-fade-in; }
@keyframes shipped-fade-out { to { opacity: 0; } }
@keyframes shipped-fade-in { from { opacity: 0; } }
.shipped-hop .reveal.in { transition: none; }
/* Browsers without page transitions (Firefox, Zen): fade what's on the sky, never the sky itself (body::before
   on the homepage, body's own background on Shipped), so the plain colour behind the page never shows. */
.shipped-leaving body > * { opacity: 0 !important; transition: opacity .18s ease !important; }
@media (prefers-reduced-motion: reduce) {
  .shipped-hop::view-transition-group(*),
  .shipped-hop::view-transition-old(*),
  .shipped-hop::view-transition-new(*) { animation: none !important; }
  .is-street .st-stand, .is-street .st-stand .obj { transition: none; }
}

.shipped-fallback.shipped-arrived body > * { animation: shipped-fade-in .24s ease both; }
.shipped-fallback.shipped-leaving body > * { animation: none; }
/* home.css adds its own card and picture entrances after this stylesheet. */
.shipped-hop .home .work .item.reveal,
.shipped-hop .home .work .item.reveal .media { transition: none !important; }

.shipped-fallback:not(.shipped-arrived) body > * { opacity: 0; }

/* Review labels use the street’s quiet date lettering. */
.st-draft { margin-left: 6px; padding: 2px 5px; border: 1px solid currentColor; border-radius: 4px; font-size: 10px; }
