/* "Made with Dinoctor": shots around the hero, a strip under it, and the project card. The hero itself is unchanged. */
.stage > .scene { position: relative; z-index: 1; }
.mw-float { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.mw-f { position: absolute; left: calc(50% + var(--x)); top: var(--y); width: clamp(150px, 15vw, 240px); aspect-ratio: 16 / 9; margin-left: calc(clamp(150px, 15vw, 240px) / -2);
  border-radius: 10px; overflow: hidden; background: #111; border: 1px solid rgba(251, 191, 36, 0.3); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(251, 191, 36, 0.08);
  rotate: var(--r, 0deg); transition: opacity 0.4s;
  /* They pop out from behind the dino once, then stay put and sway a little. */
  animation: mw-pop 0.9s cubic-bezier(0.3, 1.45, 0.5, 1) var(--d, 0s) both, mw-wiggle var(--w, 6s) ease-in-out calc(var(--d, 0s) + 0.9s) infinite alternate; }
.mw-f video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mw-tag { position: absolute; left: 7px; bottom: 7px; padding: 3px 6px; background: var(--gold-2); color: #150e02; font-family: var(--pixel); font-size: 0.6rem; line-height: 1.2; }
@keyframes mw-pop { from { opacity: 0; translate: var(--fx, 0) var(--fy, 0); scale: 0.2; } 60% { opacity: 1; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes mw-wiggle { from { rotate: calc(var(--r, 0deg) - 1deg); } to { rotate: calc(var(--r, 0deg) + 1deg); } }
/* Around the dino: three on each side, at different heights. */
.mw-f1 { --x: -29vw; --y: 9%;  --r: -4deg; --d: 0.35s; --w: 5.5s; }
.mw-f5 { --x: -35vw; --y: 40%; --r: 3deg;  --d: 0.5s;  --w: 6.5s; }
.mw-f2 { --x: -27vw; --y: 70%; --r: 2deg;  --d: 0.65s; --w: 6s; }
.mw-f3 { --x: 29vw;  --y: 7%;  --r: 4deg;  --d: 0.42s; --w: 6.2s; }
.mw-f6 { --x: 35vw;  --y: 38%; --r: -3deg; --d: 0.58s; --w: 5.8s; }
.mw-f4 { --x: 27vw;  --y: 68%; --r: -2deg; --d: 0.72s; --w: 6.8s; }
@media (max-width: 960px) { .mw-f5, .mw-f6 { display: none; } .mw-f { width: 128px; margin-left: -64px; } .mw-f1, .mw-f2 { --x: -33vw; } .mw-f3, .mw-f4 { --x: 33vw; } }
/* Phones: one on each side of the dino, one under the title. They step aside on the download and email steps. */
@media (max-width: 640px) {
  .mw-f4, .mw-f5, .mw-f6 { display: none; }
  .stage { padding-bottom: calc(46vw * 9 / 16 + 2.5rem); }
  .mw-f { width: 27vw; margin-left: -13.5vw; }
  .mw-f1 { --x: -34vw; --y: 6%; }
  .mw-f3 { --x: 34vw; --y: 12%; }
  .mw-f2 { --x: 0px; top: auto; bottom: 1.2rem; width: 46vw; margin-left: -23vw; --r: -2deg; }
  .mw-tag { font-size: 0.48rem; padding: 2px 4px; left: 5px; bottom: 5px; }
  .mw-float.away .mw-f { opacity: 0; }
}

/* The strip */
.made { position: relative; z-index: 2; padding: 1.5rem 0 3.5rem; }
.made .kicker { margin: 0; text-align: center; }
.made-sub { margin: 0.5rem auto 1.4rem; padding: 0 1.25rem; max-width: 40rem; color: var(--muted); text-align: center; font-size: 0.98rem; }
.mw-track { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.mw-strip { display: flex; width: max-content; margin: 0; padding: 0.4rem 0; list-style: none; animation: mw-slide 70s linear infinite; }
.mw-strip li { flex: none; padding-right: 16px; }
.mw-track:hover .mw-strip, .mw-track:focus-within .mw-strip { animation-play-state: paused; }
@keyframes mw-slide { to { translate: -50% 0; } }
.mw-tile { position: relative; display: block; width: 340px; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 10px; background: #111; color: var(--white); font: inherit; cursor: pointer; }
.mw-tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mw-name { position: absolute; left: 12px; bottom: 10px; font-weight: 600; font-size: 0.9rem; text-align: left; text-shadow: 0 1px 8px #000; }
.mw-over { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 10px; background: linear-gradient(0deg, rgba(7, 7, 10, 0.75), rgba(7, 7, 10, 0) 60%); opacity: 0; transition: opacity 0.25s; }
.mw-pill { padding: 6px 9px; background: var(--gold-2); color: #150e02; font-family: var(--pixel); font-size: 0.62rem; }
.mw-tile:hover .mw-over, .mw-tile:focus-visible .mw-over { opacity: 1; }
.mw-tile:hover { border-color: rgba(251, 191, 36, 0.45); }
.mw-tile:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (hover: none) { .mw-over { opacity: 1; background: none; } .mw-pill { font-size: 0.55rem; padding: 4px 6px; } }
@media (max-width: 640px) { .mw-tile { width: 250px; } .made { padding-bottom: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .mw-track { overflow-x: auto; -webkit-mask-image: none; mask-image: none; } }

/* The project card */
.mw-card { width: min(1080px, 100% - 2rem); max-height: calc(100% - 2rem); margin: auto; padding: 24px; border: 1px solid rgba(251, 191, 36, 0.3); border-radius: 14px;
  background: linear-gradient(180deg, #16120a, #0c0c0f); color: var(--white); font-family: var(--sans); }
.mw-card[open] { display: grid; grid-template-columns: 1.35fr 1fr; gap: 26px; align-items: start; }
/* Safari stretches a dialog to the full screen height unless it is told to fit its content. */
.mw-card { height: -webkit-fit-content; height: fit-content; max-height: calc(100vh - 2rem); overflow: auto; }
.mw-card::backdrop { background: rgba(3, 3, 5, 0.78); }
.mw-x { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.mw-x:hover { background: rgba(255, 255, 255, 0.14); }
.mw-player { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.mw-player video { display: block; width: 100%; height: 100%; object-fit: cover; }
.mw-switch { display: flex; gap: 6px; margin-top: 10px; }
.mw-switch span { padding: 6px 9px; border: 1px solid rgba(255, 255, 255, 0.15); color: var(--muted); font-family: var(--pixel); font-size: 0.65rem; }
.mw-switch .on { border-color: var(--gold-2); color: var(--gold-2); }
.mw-right { padding-top: 6px; }
.mw-right h3 { margin: 0 2.2rem 0 0; font-size: 1.85rem; font-weight: 800; line-height: 1.08; }
.mw-meta { margin: 0.5rem 0 1rem; color: var(--muted); font-size: 0.9rem; }
.mw-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 1.25rem; }
.mw-tools span { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 0.82rem; }
.mw-card .btn { display: block; width: 100%; margin: 0 0 10px; text-align: center; }
.mw-free { margin: 0 0 14px; text-align: center; font-size: 0.88rem; color: var(--muted); }
.mw-free a { color: var(--gold-1); }
.mw-small { margin: 0; color: var(--muted); font-size: 0.78rem; text-align: center; }
@media (max-width: 760px) {
  .mw-card { padding: 16px; }
  .mw-card[open] { grid-template-columns: 1fr; gap: 14px; }
  .mw-right h3 { font-size: 1.4rem; }
}
