/* Seth's design changes on top of the Cargo copy (loaded last, so these win). */
/* 2026-11-09 note #1: photos touch each other in a row, and no photo has rounded corners */
.pc-media, #proj-cards.pc-static .pc-media { gap: 0 !important; }
.pc-cell, #proj-cards.pc-static .pc-cell,
media-item img, .in2-photo, .in2-photo *, #index-preview, .cycle, .pg-tile, #lb img { border-radius: 0 !important; }

/* note #5: the glowing green dot on the Info sheet becomes a small animated spiral */
.in2 .in2-dot { width: 15px !important; height: 15px !important; border-radius: 0 !important; box-shadow: none !important; animation: in2-spin 3.2s linear infinite !important; background: #2f7d5b !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0 0C1 -1 2 -1.4 3 -.6 4.6 .8 3.6 3.6 1 4.6-2.2 5.8-5.4 3.2-5.6-.6-5.8-5 -2-8.4 2.6-8.2 8-8 10.8-2.8 10-.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0 0C1 -1 2 -1.4 3 -.6 4.6 .8 3.6 3.6 1 4.6-2.2 5.8-5.4 3.2-5.6-.6-5.8-5 -2-8.4 2.6-8.2 8-8 10.8-2.8 10-.4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@keyframes in2-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .in2 .in2-dot { animation: none !important; } }

/* logo: two separate SVG halves that part and circle each other on hover (js/cargo-lite.js); the old Cargo image only reserves the space */
.page[page-url^="footer"] media-item.linked { visibility: hidden !important; }
#pd-logo { position: fixed; z-index: 400; display: none; cursor: pointer; mix-blend-mode: normal; }
#pd-logo img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; will-change: transform; user-select: none; -webkit-user-drag: none; pointer-events: none; }
#pd-split { display: none !important; }

/* top fade: the page background is painted over content under the header (z-index 100), so the pinned header/nav/footer must sit above it */
html body:not(.mobile) .page.pinned { z-index: 300; }

/* phone home: EIGEN_DELUSION entry under the project rows */
.pc-eg { display: flex; align-items: baseline; gap: 18px; font-size: 13px; padding: 4px 0 40px; flex: none; }
.pc-eg span { opacity: .6; width: 22px; white-space: nowrap; margin-right: 56px; }
.pc-eg a { position: relative; }

/* top fade, tightened (2026-11-10): only the strip behind the header text, so the first project row stays readable */
html body:not(.mobile)::after {
  height: 64px;
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

/* walkthrough video: square corners */
media-item .mi-sf video.pd-vid { border-radius: 0 !important; }

/* the page background is an animated gradient (13s). Every page change is a fresh page load, which restarted it from white (a visible pop from pink).
   --bg-delay (set in <head> from the clock) puts every page at the same point of the cycle, so it carries straight across. */
html body:not(.mobile)::before, html body:not(.mobile)::after,
html body.mobile .page.pinned-top::before, html body.mobile .page.pinned-bottom::before { animation-delay: var(--bg-delay, 0s) !important; }

/* home hover background video (hover-bg.js): sits above the gradient (body::before, z -1) and under everything else */
#pd-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: transparent; }
#pd-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s ease;
  image-rendering: pixelated; filter: contrast(.85) brightness(1.18) saturate(.9); }
#pd-bg .pd-bg-scan { position: absolute; inset: -4px; opacity: 0; transition: opacity .55s ease; mix-blend-mode: multiply;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.0) 0 2px, rgba(0,0,0,.05) 2px 3px); animation: pd-bg-roll 7s linear infinite; }
#pd-bg.on .pd-bg-scan { opacity: 1; }
@keyframes pd-bg-roll { from { transform: translateY(0); } to { transform: translateY(3px); } }

/* while a hover clip plays: the page goes quiet. Only the hovered row's pictures and the caption bar right above them stay (the bar turns solid white
   so the text reads over the video); the other rows, the header, the index, the footer and the logo fade out. */
html.pd-bg-on body:not(.mobile)::after { opacity: 0; }
body:not(.mobile)::after { transition: opacity .55s ease; }
html.pd-bg-on .page.pinned, html.pd-bg-on #pd-logo { opacity: 0 !important; transition: opacity .4s ease; }
html.pd-bg-on #proj-cards.hovering .pc-row:not(.is-hover) { opacity: 0; }
#proj-cards .pc-cap { transition: background-color .35s ease; }
html.pd-bg-on #proj-cards .pc-row.is-hover .pc-cap { background: #fff; padding: 12px 14px 8px; }   /* the row clips overflow, so the bar is as wide as the pictures and the text is inset */

/* the white caption bar is joined to the pictures: no gap, square top corners */
html.pd-bg-on #proj-cards .pc-row.is-hover { gap: 0; }
html.pd-bg-on #proj-cards .pc-row.is-hover .pc-cell { border-top-left-radius: 0; border-top-right-radius: 0; }
/* leaving for a project page: the clip fades to the page background while the page slides away */
html.pd-bg-leaving #pd-bg video, html.pd-bg-leaving #pd-bg .pd-bg-scan { opacity: 0 !important; transition: opacity .55s ease !important; }
