/* Living harbor: original paper-water loop and one continuous quiet footer sky.
   Load after the pottery and harbor styles. No runtime script is required. */
html.wit-v2.v2-pottery #contact{
  position:relative;
  isolation:isolate;
  border:0;
  outline:0;
  box-shadow:none;
  background:linear-gradient(180deg,var(--pot-deep-water,#1b2c34) 0%,var(--pot-deep-water,#1b2c34) calc(100% - 190px),var(--pot-ink,#161411) 100%);
  padding-bottom:calc(clamp(76px,8vw,118px) + 150px);
}
html.wit-v2.v2-pottery #contact::after{content:none;display:none;background:none}
html.wit-v2.v2-pottery #contact > .contact-grid{position:relative;z-index:2}
html.wit-v2.v2-pottery #contact .pottery-contact-water{
  position:absolute;
  z-index:0;
  left:0;
  right:0;
  bottom:0;
  height:180px;
  overflow:hidden;
  pointer-events:none;
  background-image:url("/assets/wit-harbor/water-fallback.gif?v=harbor-1");
  background-repeat:repeat-x;
  background-position:50% 100%;
  background-size:800px 180px;
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 27%,#000 76%,transparent 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 27%,#000 76%,transparent 100%);
}

/* Remove the old colored boundaries and generated meander above the art. */
html.wit-v2.v2-pottery .v2-footer,
html.wit-v2.v2-pottery .v2-footer .v2-footer-scene{border:0;outline:0;box-shadow:none}
html.wit-v2.v2-pottery .v2-footer .v2-footer-scene::after{content:none;display:none}
html.wit-v2.v2-pottery .v2-footer .v2-footer-legal{border-top:0}

/* The source artwork stays intact. Its sky continues through the links, with
   only a few static warm-white stars in the margins and upper breathing space. */
html.wit-v2.v2-pottery .v2-footer--pottery{
  position:relative;
  isolation:isolate;
  background:linear-gradient(180deg,var(--pot-ink,#161411) 0%,#100d0a 56%,#0d0a07 100%);
}
html.wit-v2.v2-pottery .v2-footer--pottery::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  pointer-events:none;
  opacity:.68;
  background-image:
    radial-gradient(circle at 1.5% 18%,rgba(234,213,173,.65) 0 .7px,rgba(234,213,173,.1) 1.2px,transparent 2px),
    radial-gradient(circle at 1% 44%,rgba(234,213,173,.48) 0 .6px,transparent 1.5px),
    radial-gradient(circle at 2% 76%,rgba(234,213,173,.58) 0 .8px,rgba(234,213,173,.08) 1.4px,transparent 2.2px),
    radial-gradient(circle at 98% 12%,rgba(234,213,173,.58) 0 .8px,transparent 1.8px),
    radial-gradient(circle at 99% 39%,rgba(234,213,173,.45) 0 .7px,transparent 1.6px),
    radial-gradient(circle at 98.4% 68%,rgba(234,213,173,.6) 0 .7px,rgba(234,213,173,.09) 1.2px,transparent 2px),
    radial-gradient(circle at 24% 2.3%,rgba(234,213,173,.52) 0 .7px,transparent 1.7px),
    radial-gradient(circle at 58% 1.8%,rgba(234,213,173,.48) 0 .6px,transparent 1.6px),
    radial-gradient(circle at 80% 2.9%,rgba(234,213,173,.6) 0 .7px,rgba(234,213,173,.08) 1.3px,transparent 2px);
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 10%,#000 68%,transparent 94%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 10%,#000 68%,transparent 94%);
}
html.wit-v2.v2-pottery .v2-footer--pottery .v2-footer-inner{position:relative;z-index:2;padding-top:84px}
html.wit-v2.v2-pottery .v2-footer--pottery .v2-footer-scene{
  position:relative;
  z-index:1;
  margin-top:-64px;
  background:transparent;
}
html.wit-v2.v2-pottery .v2-footer--pottery .v2-footer-scene::before{
  content:"";
  position:absolute;
  z-index:1;
  inset:0 0 auto;
  height:40%;
  pointer-events:none;
  background:linear-gradient(180deg,#100d0a 0%,rgba(16,13,10,.7) 22%,transparent 100%);
}
html.wit-v2.v2-pottery .v2-footer--pottery .v2-footer-scene img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.16) 10%,#000 33%,#000 100%);
  mask-image:linear-gradient(180deg,transparent 0%,rgba(0,0,0,.16) 10%,#000 33%,#000 100%);
}

/* The light alternative closes into tesserae, with no night-sky treatment. */
html.wit-v2.v2-pottery .v2-footer--mosaic{background:var(--pot-paper,#ead5ad)}
html.wit-v2.v2-pottery .v2-footer--mosaic::before{content:none;display:none}
html.wit-v2.v2-pottery .v2-footer--mosaic .v2-footer-scene{background:var(--pot-paper,#ead5ad);margin-top:-24px}
html.wit-v2.v2-pottery .v2-footer--mosaic .v2-footer-scene::before{background:linear-gradient(180deg,var(--pot-paper,#ead5ad),transparent);height:30%}
html.wit-v2.v2-pottery .v2-footer--mosaic .v2-footer-scene img{
  -webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 25%,#000 100%);
  mask-image:linear-gradient(180deg,transparent 0%,#000 25%,#000 100%);
}
@media(max-width:650px){
  html.wit-v2.v2-pottery #contact{padding-bottom:222px}
  html.wit-v2.v2-pottery #contact .pottery-contact-water{height:170px}
  html.wit-v2.v2-pottery .v2-footer--pottery .v2-footer-inner{padding-top:58px}
  html.wit-v2.v2-pottery .v2-footer--pottery .v2-footer-scene{margin-top:-24px}
  html.wit-v2.v2-pottery .v2-footer--mosaic .v2-footer-scene{margin-top:-12px}
}
@media(prefers-reduced-motion:reduce){
  html.wit-v2.v2-pottery #contact .pottery-contact-water{background-image:url("/assets/wit-harbor/water-fallback.png?v=harbor-1")}
}
