:root {
  --bg: #fff7db;
  --text: #141414;
  --line: #ded2aa;
  --accent: #f03a47;
  --shuffle-accent: #f03a47;
  --shuffle-soft: color-mix(in srgb, #f03a47 20%, #fffaf0);
  --object-white: #fffaf0;
  --object-grey: #c8c5be;
  --project-gap: clamp(10px, 1.1vw, 16px);
}

body { background: var(--bg); }
main {
  width: calc(100% - clamp(40px, 4.4vw, 64px));
  max-width: none;
}
.footer-object-field {
  position: relative;
  height: clamp(150px, 16vw, 220px);
  margin-top: clamp(90px, 10vw, 150px);
}
.footer-button .object-art {
  width: 66px;
  height: 66px;
}

#particle-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: .58;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.hero::before,
.hero::after { content: none; }
.hero .eyebrow { display: none; }
.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 100%;
  color: var(--shuffle-accent);
  letter-spacing: -.045em;
  -webkit-text-stroke: 1px var(--text);
  text-shadow: 5px 5px 0 var(--text);
  transition: color .4s ease;
}
.hero-role {
  position: relative;
  z-index: 2;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--shuffle-accent);
  transition: border-color .4s ease;
}

.object-field {
  position: absolute;
  z-index: 6;
  inset: 8% 15% 8% 0;
  pointer-events: none;
}
.desk-object {
  position: absolute;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  transform: translate(-50%, -50%) rotate(var(--rotation, 0deg)) scale(var(--object-scale, 1));
  filter: drop-shadow(3px 4px 2px rgba(20,20,20,.14));
  transition: filter .2s ease, opacity .25s ease;
}
.desk-object[hidden] { display: none; }
.desk-object:hover,
.desk-object.is-dragging { z-index: 20 !important; filter: drop-shadow(7px 9px 4px rgba(20,20,20,.2)); }
.desk-object.is-dragging { cursor: grabbing; }
.desk-object .object-art,
.desk-object .object-icon { transition: transform .2s ease; }
.desk-object .object-icon {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.desk-object:hover .object-art,
.desk-object:hover .object-icon,
.desk-object.is-dragging .object-art,
.desk-object.is-dragging .object-icon { transform: scale(1.08); }
.desk-object.is-shaking { animation: object-shake .55s cubic-bezier(.2,.8,.2,1); animation-delay: var(--shake-delay, 0ms); }
@keyframes object-shake {
  0% { margin: 0; }
  25% { margin: -8px 0 0 7px; }
  55% { margin: 5px 0 0 -8px; }
  100% { margin: 0; }
}
.object-art,
.object-art i,
.object-art b,
.object-art em {
  position: absolute;
  display: block;
  font-style: normal;
}
.object-art { position: relative; }

/* 01 — four-hole button */
.object-button .object-art {
  width: 58px;
  height: 58px;
  border: 2px solid var(--text);
  border-radius: 50%;
  background: var(--button-fill, var(--shuffle-soft));
  box-shadow: inset 0 0 0 6px rgba(255,255,255,.24), inset -5px -6px 0 rgba(23,19,18,.09);
}
.object-button .object-art i {
  inset: 0;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at calc(50% - 9.5px) calc(50% - 9.5px), var(--bg) 0 3px, var(--text) 3.2px 4.2px, transparent 4.4px),
    radial-gradient(circle at calc(50% + 9.5px) calc(50% - 9.5px), var(--bg) 0 3px, var(--text) 3.2px 4.2px, transparent 4.4px),
    radial-gradient(circle at calc(50% - 9.5px) calc(50% + 9.5px), var(--bg) 0 3px, var(--text) 3.2px 4.2px, transparent 4.4px),
    radial-gradient(circle at calc(50% + 9.5px) calc(50% + 9.5px), var(--bg) 0 3px, var(--text) 3.2px 4.2px, transparent 4.4px);
}

/* 02 — public-domain wire hanger resource */
.object-hanger { width: 154px; height: 106px; }
.object-hanger .object-icon {
  display: block;
  width: 148px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(2px 3px 1px rgba(20,20,20,.12));
}

/* 03 — public-domain open safety-pin resource */
.object-safety-pin { width: 120px; height: 68px; }
.object-safety-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../icons/safety-pin.svg") center / 112px 42px no-repeat;
  opacity: .09;
  pointer-events: none;
  transform: translate(2px, 3px);
  filter: blur(.2px);
  transition: transform .2s ease;
}
.object-safety-pin .object-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 112px;
  height: 44px;
  object-fit: contain;
  filter:
    grayscale(1)
    contrast(1.08)
    drop-shadow(-1px -1px 0 rgba(255,255,255,.75))
    drop-shadow(2px 3px 1px rgba(20,20,20,.13));
}
.object-safety-pin:hover::before,
.object-safety-pin.is-dragging::before { transform: translate(2px, 3px) scale(1.08); }

/* 04 — public-domain engraved thread spool */
.object-spool { width: 100px; height: 108px; }
.object-spool .object-icon {
  display: block;
  width: 82px;
  height: 102px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.08) drop-shadow(2px 3px 1px rgba(20,20,20,.12));
}

/* 05 — sourced scissors, kept pointing upward */
.object-scissors { width: 90px; height: 98px; }
.object-scissors .object-icon {
  display: block;
  width: 78px;
  height: 88px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.35) brightness(.62) drop-shadow(2px 3px 1px rgba(20,20,20,.13));
}

/* 06 — public-domain engraved thimble */
.object-thimble { width: 78px; height: 90px; }
.object-thimble .object-icon {
  display: block;
  width: 68px;
  height: 84px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.08) drop-shadow(2px 3px 1px rgba(20,20,20,.13));
}

/* 07 — layered fabric swatches */
.object-swatch { width: 90px; height: 86px; }
.object-swatch .object-art {
  width: 78px;
  height: 66px;
  border: 2px dashed var(--text);
  background:
    linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25% 75%, rgba(255,255,255,.28) 75%),
    linear-gradient(45deg, rgba(255,255,255,.28) 25%, transparent 25% 75%, rgba(255,255,255,.28) 75%),
    #a9a7a1;
  background-position: 0 0, 9px 9px;
  background-size: 18px 18px;
}
.object-swatch .object-art::after { content: ""; position: absolute; inset: 8px -9px -9px 8px; z-index: -1; border: 2px dashed var(--text); background: var(--shuffle-soft); }

.shake-control {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 8;
  justify-self: center;
  margin-top: 40px;
  border-radius: 999px;
  border-color: var(--text);
  padding: 12px 20px;
  background: var(--bg);
  color: var(--text);
  box-shadow: 4px 5px 0 var(--text);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  animation: shake-invitation 7s ease-in-out infinite;
}
.shake-control:hover,
.shake-control:focus-visible { animation-play-state: paused; }
.shake-control:active { animation: none; transform: translate(2px, 2px); }
@keyframes shake-invitation {
  0%, 86%, 100% { transform: translateX(0) rotate(0); }
  88% { transform: translateX(-2px) rotate(-1.4deg); }
  90% { transform: translateX(2px) rotate(1.4deg); }
  92% { transform: translateX(-1px) rotate(-.7deg); }
  94% { transform: translateX(1px) rotate(.7deg); }
  96% { transform: translateX(0) rotate(0); }
}
.shake-control::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--shuffle-accent);
  vertical-align: 1px;
  transition: background-color .4s ease;
}
.project-meta .watch-link { color: var(--shuffle-accent); transition: color .4s ease; }
.media-row {
  gap: var(--project-gap);
  padding: 0;
  background: transparent;
}
.project-meta p {
  display: inline;
  padding: 2px 5px;
  background: var(--bg);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (max-width: 1000px) {
  .object-field { inset-right: 0; }
}

@media (max-width: 760px) {
  .hero h1 { text-shadow: 3px 3px 0 var(--text); }
  .object-field { inset: 10% 0 8%; }
  .desk-object { width: 80px; height: 80px; --object-scale: .78 !important; }
  .shake-control { margin-top: 30px; padding: 10px 15px; }
}
