/* Privacy Pump project presentation.
   Visual source: Privacy Pump apps/landing at commit
   309666a161165e15ac0c691764050fea942ee5f0. Assets are vendored locally. */

@font-face {
  font-family: "PP Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/projects/privacy-pump/fonts/space-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "PP Cormorant Garamond";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/projects/privacy-pump/fonts/cormorant-garamond-italic-600-latin.woff2") format("woff2");
}

:root {
  --pp-green: #55d292;
  --pp-green-rgb: 85, 210, 146;
  --pp-text: #f5f7f6;
}

.dg-item__image.is-privacy-pump {
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--pp-green-rgb), 0.38);
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(54, 168, 103, 0.13) 18% 48%, transparent 48%) 0 18% / 100% 4% no-repeat,
    linear-gradient(90deg, transparent 0 57%, rgba(65, 202, 121, 0.1) 57% 84%, transparent 84%) 0 72% / 100% 3% no-repeat,
    repeating-linear-gradient(90deg, rgba(36, 105, 66, 0.055) 0 1px, transparent 1px 17px),
    linear-gradient(145deg, #07110b, #020604 68%);
}

.dg-item__image.is-privacy-pump::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(87, 220, 145, 0.11) 8% 34%, transparent 34%) 0 38% / 100% 2px no-repeat,
    linear-gradient(90deg, transparent 0 42%, rgba(73, 184, 118, 0.12) 42% 92%, transparent 92%) 0 61% / 100% 3px no-repeat,
    repeating-linear-gradient(180deg, rgba(111, 255, 178, 0.045) 0 1px, transparent 1px 4px);
  opacity: 0.72;
  pointer-events: none;
  content: "";
}

.pp-tile-monitor {
  position: relative;
  z-index: 1;
  display: block;
  width: 96%;
  height: 96%;
  margin: 0;
  overflow: visible;
  pointer-events: none;
}

.pp-tile-monitor__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.dome-shell__viewer-frame.is-privacy-pump {
  width: min(390px, 48vw);
  height: min(390px, 48vw);
}

.dome-shell__viewer-card.is-privacy-pump {
  isolation: isolate;
  border-color: rgba(var(--pp-green-rgb), 0.45);
  background:
    radial-gradient(circle at 50% 46%, rgba(var(--pp-green-rgb), 0.12), transparent 56%),
    linear-gradient(145deg, rgba(8, 14, 10, 0.98), rgba(1, 4, 2, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 30px rgba(var(--pp-green-rgb), 0.2),
    0 20px 52px rgba(0, 0, 0, 0.55);
}

.dome-shell__viewer-card.is-privacy-pump::before {
  --corner-color: rgba(132, 255, 191, 0.92);
}

.dome-shell__viewer-card.is-privacy-pump::after {
  z-index: 3;
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 50% 40%, rgba(var(--pp-green-rgb), 0.08), transparent 54%);
}

.pp-project-link {
  color: inherit;
  text-decoration: none;
}

.pp-visual-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.pp-visual-stage {
  position: absolute;
  inset: 0;
  display: block;
}

.pp-scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pp-visual-stage.is-unavailable::after {
  position: absolute;
  inset: 16%;
  border: 1px solid rgba(var(--pp-green-rgb), 0.32);
  background: radial-gradient(circle, rgba(var(--pp-green-rgb), 0.12), transparent 68%);
  content: "";
}

.pp-side {
  position: absolute;
  top: 50%;
  width: clamp(210px, 19vw, 280px);
  opacity: 0;
  transform: translateY(calc(-50% + 10px));
  transition: opacity 260ms ease 180ms, transform 300ms ease 180ms;
  pointer-events: auto;
}

.dome-shell__viewer.is-open .pp-side {
  opacity: 1;
  transform: translateY(-50%);
}

.pp-side--brand {
  right: calc(100% + clamp(20px, 2.4vw, 38px));
}

.pp-side--copy {
  left: calc(100% + clamp(20px, 2.4vw, 38px));
}

.pp-brand {
  --pp-mark-size: clamp(52px, 4.5vw, 66px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.pp-brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: var(--pp-mark-size);
  height: var(--pp-mark-size);
  overflow: hidden;
  border: 1px solid rgba(var(--pp-green-rgb), 0.46);
  border-radius: 50%;
  background: rgba(var(--pp-green-rgb), 0.08);
}

.pp-brand__wordmark {
  position: relative;
  display: grid;
  place-items: center;
  width: min(170px, calc(100% - var(--pp-mark-size) - 10px));
  aspect-ratio: 18 / 7;
}

.dome-shell__viewer-card.is-privacy-pump .pp-brand img,
.pp-brand img {
  grid-area: 1 / 1;
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 220ms ease, filter 220ms ease;
}

.pp-brand__mark img {
  width: 78%;
  height: 78%;
}

.pp-brand__hover {
  opacity: 0;
}

.pp-brand:is(:hover, :focus-visible) .pp-brand__default {
  opacity: 0;
}

.pp-brand:is(:hover, :focus-visible) .pp-brand__hover {
  opacity: 1;
}

.pp-brand__mark .pp-brand__hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(var(--pp-green-rgb), 0.48));
}

.pp-brand__wordmark .pp-brand__hover {
  filter: drop-shadow(0 0 12px rgba(var(--pp-green-rgb), 0.44));
}

.pp-copy {
  display: block;
  text-align: left;
}

.pp-copy__title {
  max-width: 8.8ch;
  margin: 0;
  color: var(--pp-text);
  font-family: "PP Space Grotesk", sans-serif;
  font-size: clamp(2.15rem, 3.25vw, 3.7rem);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.pp-copy__title em {
  display: block;
  margin-top: 0.12em;
  color: rgba(255, 255, 255, 0.88);
  font-family: "PP Cormorant Garamond", serif;
  font-size: 0.72em;
  font-style: italic;
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: none;
  transition: color 220ms ease;
}

.pp-copy__body {
  max-width: 35rem;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: "PP Space Grotesk", sans-serif;
  font-size: clamp(0.88rem, 1.02vw, 1rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
  transition: color 220ms ease;
}

.pp-copy:is(:hover, :focus-visible) :is(.pp-copy__title, .pp-copy__title em, .pp-copy__body) {
  color: var(--pp-green);
}

.pp-project-link:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--pp-green);
  outline-offset: 5px;
}

@media (max-width: 1180px) {
  .pp-side {
    width: clamp(180px, 20vw, 220px);
  }

  .pp-copy__title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
  }

  .pp-copy__body {
    margin-top: 14px;
    font-size: 0.82rem;
  }
}

@media (max-width: 1024px) {
  .dome-shell__viewer-frame.is-privacy-pump {
    top: 34%;
    width: min(300px, 56vw);
    height: min(300px, 56vw);
  }

  .pp-side {
    top: calc(100% + 12px);
    right: auto;
    left: 50%;
    width: min(76vw, 470px);
    transform: translateX(-50%) translateY(10px);
  }

  .dome-shell__viewer.is-open .pp-side {
    transform: translateX(-50%);
  }

  .pp-side--copy {
    top: calc(100% + 74px);
  }

  .pp-brand {
    --pp-mark-size: 42px;
  }

  .pp-copy {
    text-align: center;
  }

  .pp-copy__title {
    max-width: none;
    font-size: clamp(1.65rem, 4vw, 2.3rem);
    line-height: 0.88;
  }

  .pp-copy__title em {
    margin-top: 0.08em;
  }

  .pp-copy__body {
    max-width: 34rem;
    margin: 10px auto 0;
    font-size: clamp(0.74rem, 1.7vw, 0.88rem);
    line-height: 1.42;
  }
}

@media (max-width: 767px) {
  .dome-shell__viewer-frame.is-privacy-pump {
    top: 29%;
    width: min(62vw, 238px);
    height: min(62vw, 238px);
  }

  .pp-side {
    top: calc(100% + 10px);
    width: min(82vw, 310px);
  }

  .pp-side--copy {
    top: calc(100% + 68px);
  }

  .pp-brand {
    --pp-mark-size: 38px;
  }

  .pp-brand__wordmark {
    width: 142px;
  }

  .pp-copy__title {
    font-size: clamp(1.4rem, 6.2vw, 1.75rem);
  }

  .pp-copy__body {
    margin-top: 8px;
    font-size: 0.7rem;
    line-height: 1.36;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pp-side,
  .pp-brand img,
  .pp-copy__title,
  .pp-copy__title em,
  .pp-copy__body {
    transition: none;
  }
}
