/* Section 11 — the dock opens into the Gold card, then pulls back into the gallery */

.dock {
  position: relative;
  padding-block: clamp(78px, 9.6vh, 120px);
}

.dock__sticky {
  min-height: 0;
}

.dock__stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

/* Dock */

.dock__dock {
  order: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--paper-raised) 78%, transparent);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 26px 54px -32px rgba(24, 24, 27, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
}

.dock-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-raised);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.05);
  transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) ease;
}

.dock-icon img {
  width: 23px;
  height: 23px;
  object-fit: contain;
  pointer-events: none;
}

.dock-icon:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 10px 18px -12px rgba(24, 24, 27, 0.55);
}

.dock-icon--main {
  width: 58px;
  height: 58px;
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  background:
    radial-gradient(circle at 34% 22%, #ffa079 0%, #ff7a4d 42%, #ff6a3d 68%, #ee4f20 100%);
  color: #1b0a03;
  box-shadow: 0 0 0 1px rgba(24, 24, 27, 0.06), 0 16px 26px -16px rgba(238, 79, 32, 0.8);
}

.dock-icon--main svg {
  width: 28px;
  height: 28px;
}

.dock-icon--main:hover {
  transform: translateY(-3px) scale(1.05);
}

/* Gallery */

.dock__grid {
  order: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 14px);
  align-content: center;
}

.dock-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 18px 32px -28px rgba(24, 24, 27, 0.4);
}

.dock-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--dur-4) var(--ease-soft);
}

.dock-tile:hover img {
  transform: scale(1.04);
}

.dock__slot {
  display: none;
  aspect-ratio: 16 / 10;
  border: 1px dashed color-mix(in srgb, var(--ink) 18%, transparent);
  border-radius: 14px;
}

/* Gold card */

.dock__card {
  position: relative;
  order: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 760px);
  min-height: 340px;
  margin-inline: auto;
  padding: clamp(19px, 2.2vw, 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(120% 92% at 88% 4%, #ffa27c 0%, #ff8a5d 32%, #ff6a3d 62%, #f2541f 100%);
  color: #1b0a03;
  box-shadow: 0 2px 8px rgba(24, 24, 27, 0.08), 0 44px 84px -44px rgba(191, 57, 16, 0.6);
}

.dock__card::before {
  content: "";
  position: absolute;
  top: -48%;
  right: -18%;
  width: 64%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.dock__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
  pointer-events: none;
}

.dock__card-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dock__card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
}

.dock__card-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dock__like {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(27, 10, 3, 0.12);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.84);
  color: #1b0a03;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) ease, color var(--dur-2) ease;
}

.dock__like svg {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-2) var(--ease-spring), fill var(--dur-2) ease;
}

.dock__like:hover {
  transform: translateY(-1px);
}

.dock__like.is-liked {
  background: #1b0a03;
  color: #ffc2a6;
}

.dock__like.is-liked svg {
  fill: currentColor;
  transform: scale(1.12);
}

.dock__card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(22px, 3.5vh, 46px);
}

.dock__card-eyebrow {
  color: rgba(27, 10, 3, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.dock__card h3 {
  max-width: 16ch;
  margin-top: 12px;
  color: #1b0a03;
  font-size: clamp(1.65rem, 3.2vw, 2.95rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.dock__card-body p {
  max-width: 40ch;
  margin-top: 12px;
  color: rgba(27, 10, 3, 0.76);
  font-size: 13px;
  line-height: 1.55;
}

.dock__card-price {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 20px;
  color: #1b0a03;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}

.dock__card-price small {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.64;
}

.dock__bubble {
  right: 18px;
  bottom: 82px;
  z-index: 4;
}

.dock__creator {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  padding: 7px 8px;
  border: 1px solid rgba(27, 10, 3, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.dock__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #1b0a03;
  color: #ffb38f;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.dock__creator-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.dock__creator-text strong {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.dock__creator-text small {
  color: rgba(27, 10, 3, 0.6);
  font-size: 11px;
  white-space: nowrap;
}

.dock__creator-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(27, 10, 3, 0.14);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.dock__creator-link svg {
  width: 10px;
  height: 10px;
}

/* Enhanced, scroll-linked scene */

.dock.is-enhanced {
  height: 280svh;
  padding-block: 0;
}

.dock.is-enhanced .dock__sticky {
  position: sticky;
  top: 0;
  display: flex;
  align-items: stretch;
  min-height: 100svh;
  padding-block: clamp(88px, 10.4vh, 108px) 34px;
  overflow: hidden;
}

.dock.is-enhanced .dock__stage {
  flex: 1;
  min-height: 0;
  gap: 0;
}

.dock.is-enhanced .dock__dock {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  height: max-content;
  margin-block: auto;
  margin-inline: auto;
  z-index: 40;
}

.dock.is-enhanced .dock__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  grid-auto-rows: auto;
}

.dock.is-enhanced .dock__grid .dock__slot {
  display: block;
}

.dock.is-enhanced .dock__card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 30;
  width: min(100%, 1120px, calc((100svh - 154px) * 1.6));
  min-height: 0;
  aspect-ratio: 16 / 10;
  margin: 0;
  padding: clamp(24px, 2.7vw, 38px);
  transform: none;
  transform-origin: 50% 50%;
  will-change: transform;
}

.dock.is-enhanced .dock__card-body {
  padding-block: clamp(18px, 3vh, 36px);
}

.dock.is-enhanced .dock__bubble {
  right: 6%;
  bottom: auto;
  top: 22%;
}

@media (max-width: 900px) {
  .dock {
    padding-block: clamp(72px, 9vh, 104px);
  }

  .dock__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dock__dock {
    gap: 5px;
    padding: 6px;
    border-radius: 18px;
  }

  .dock-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .dock-icon img {
    width: 19px;
    height: 19px;
  }

  .dock-icon--main {
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .dock-icon--main svg {
    width: 23px;
    height: 23px;
  }

  .dock__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dock__card {
    min-height: 320px;
    border-radius: 20px;
  }

  .dock__card h3 {
    font-size: clamp(1.9rem, 8.4vw, 2.5rem);
  }

  .dock__card-body p {
    font-size: 12.5px;
  }

  .dock__bubble {
    right: 14px;
    bottom: 78px;
  }

  .dock__creator {
    gap: 8px;
    width: 100%;
  }

  .dock__creator-link {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock-icon,
  .dock-tile img,
  .dock__like,
  .dock__like svg {
    transition: none;
  }
}
