@import url('https://cedricpoole.com/wp-content/plugins/fluid-live-assets/fonts/family-5.css');

.cp-intro-pond {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  color: #050505;
  background: #f8f8f5;
  touch-action: none;
}

.cp-intro-pond__canvas,
.cp-intro-pond__fallback,
.cp-intro-pond__interstitial {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cp-intro-pond__canvas {
  z-index: 1;
  display: block;
  opacity: 1;
  transition: opacity 280ms ease;
}

.cp-intro-pond__fallback {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(0,0,0,.035), transparent 34%),
    #f8f8f5;
}

.cp-intro-pond__fallback-ripple {
  position: absolute;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,0,0,.34);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.15);
  animation: cp-fallback-ripple 1.2s cubic-bezier(.12,.65,.2,1) forwards;
}

@keyframes cp-fallback-ripple {
  to { transform: translate(-50%, -50%) scale(8); opacity: 0; }
}

.cp-intro-pond__accessible-copy {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 47%;
  width: min(880px, calc(100% - 48px));
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 300ms ease;
}

.cp-intro-pond.is-webgl .cp-intro-pond__accessible-copy {
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.cp-intro-pond__kicker {
  margin: 0 0 22px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cp-intro-pond blockquote {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(36px, 6.7vw, 98px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.035em;
}

.cp-intro-pond cite {
  display: block;
  margin-top: 28px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  font-style: normal;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cp-intro-pond__enter {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: clamp(68px, 11vh, 118px);
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-width: 136px;
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid currentColor;
  border-radius: 0;
  color: #050505;
  background: rgba(248,248,245,.74);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
  transition: color 180ms ease, background 180ms ease, opacity 250ms ease;
}

.cp-intro-pond__enter:hover,
.cp-intro-pond__enter:focus-visible {
  color: #f8f8f5;
  background: #050505;
}

.cp-intro-pond__enter i {
  position: relative;
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.cp-intro-pond__enter i::after {
  content: '';
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.cp-intro-pond__tagline {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: clamp(145px, 18vh, 220px);
  width: max-content;
  max-width: calc(100% - 40px);
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(19px, 2vw, 30px);
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition: opacity 250ms ease;
}

.cp-intro-pond__hint {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: clamp(28px, 8vh, 88px);
  bottom: auto;
  width: calc(100% - 48px);
  max-width: 600px;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(5,5,5,.22);
  font-family: "IBM Plex Mono", monospace;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  transition: opacity 250ms ease;
}

.cp-intro-pond__interstitial {
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #050505;
  background: rgba(248,248,245,.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 340ms ease, visibility 0s linear 340ms;
}

.cp-intro-pond__interstitial strong {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(88px, 18vw, 240px);
  font-weight: 400;
  line-height: .78;
  letter-spacing: -.025em;
  text-transform: uppercase;
}

.cp-intro-pond__interstitial > span {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(9px, 1.1vw, 14px);
  letter-spacing: .15em;
  text-align: center;
  text-transform: uppercase;
}

.cp-intro-pond__progress {
  width: min(360px, calc(100% - 70px));
  height: 2px;
  margin-top: 12px;
  overflow: hidden;
  background: rgba(0,0,0,.16);
}

.cp-intro-pond__progress i {
  display: block;
  width: 100%;
  height: 100%;
  background: #050505;
  transform: scaleX(0);
  transform-origin: left;
}

.cp-intro-pond.is-handoff-exit .cp-intro-pond__canvas,
.cp-intro-pond.is-handoff-exit .cp-intro-pond__enter,
.cp-intro-pond.is-handoff-exit .cp-intro-pond__tagline,
.cp-intro-pond.is-handoff-exit .cp-intro-pond__hint,
.cp-intro-pond.is-handoff-exit .cp-intro-pond__accessible-copy,
.cp-intro-pond.is-entering .cp-intro-pond__canvas,
.cp-intro-pond.is-entering .cp-intro-pond__enter,
.cp-intro-pond.is-entering .cp-intro-pond__tagline,
.cp-intro-pond.is-entering .cp-intro-pond__hint,
.cp-intro-pond.is-entering .cp-intro-pond__accessible-copy { opacity: 0; pointer-events: none; }

.cp-intro-pond.is-entering .cp-intro-pond__interstitial {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.cp-intro-pond.is-entering .cp-intro-pond__progress i {
  animation: cp-intro-progress var(--cp-intro-delay, 1800ms) cubic-bezier(.2,.7,.2,1) forwards;
}

@keyframes cp-intro-progress { to { transform: scaleX(1); } }

@media (max-width: 620px) {
  .cp-intro-pond__accessible-copy { top: 44%; }
  .cp-intro-pond blockquote { font-size: clamp(40px, 12.5vw, 72px); }
  .cp-intro-pond__enter { bottom: 84px; }
  .cp-intro-pond__tagline { bottom: 145px; font-size: 18px; }
  .cp-intro-pond__hint { top: 32px; bottom: auto; max-width: 300px; font-size: 8px; }
  .cp-intro-pond__interstitial strong { font-size: clamp(88px, 29vw, 150px); }
  .cp-intro-pond__interstitial > span { width: min(320px, calc(100% - 54px)); line-height: 1.7; }
}

@media (prefers-reduced-motion: reduce) {
  .cp-intro-pond { touch-action: auto; }
  .cp-intro-pond__canvas { display: none; }
  .cp-intro-pond__progress i { animation-timing-function: linear; }
}
