/* Light ASCII ocean shares the portfolio paper color. */
.ascii-ocean{position:relative;width:100%;height:480px;margin-top:32px;overflow:hidden;background:#FAFAFA;contain:layout paint}
.ascii-ocean canvas{display:block;width:100%;height:100%;font-family:ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace;cursor:default}
@media(min-width:1400px){.ascii-ocean{height:520px}}
@media(max-width:600px){.ascii-ocean{height:360px;margin-top:24px}}
/* The ocean begins at the contact divider and fills the entire footer. */
.portfolio-footer{position:relative;isolation:isolate;padding-bottom:480px;background:transparent}
.portfolio-footer .ascii-ocean{position:absolute;inset:0;width:100%;height:100%;margin:0;z-index:-1}
.portfolio-footer .footer-copy{position:relative;background:transparent;pointer-events:none}
.portfolio-footer .footer-copy a,.portfolio-footer .footer-copy button{pointer-events:auto}
@media(min-width:1400px){.portfolio-footer{padding-bottom:520px}}
@media(max-width:600px){.portfolio-footer{padding-bottom:360px}}
/* Soften creatures directly under the copy without cutting off the ocean. */
.portfolio-footer .footer-copy{z-index:1}
.portfolio-footer .footer-copy::before{content:'';position:absolute;inset:0 -20px -16px;z-index:-1;pointer-events:none;background:linear-gradient(90deg,transparent,#fafafac9 5%,#fafafac9 95%,transparent)}
.ascii-ocean::after{content:'Click the water to feed the fish';position:absolute;left:24px;bottom:16px;color:#667e84;font:11px/1.5 ui-monospace,monospace;pointer-events:none}
@media(hover:none){.ascii-ocean::after{content:'Tap the water to feed the fish'}}
/* Grid stays evenly visible above the contact readability veil. */
.portfolio-footer::after{content:'';position:absolute;inset:0;z-index:2;pointer-events:none;background-image:linear-gradient(rgba(67,100,115,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(67,100,115,.035) 1px,transparent 1px);background-size:var(--ascii-cell-width) var(--ascii-cell-height)}
/* Each aquarium is contained in its own scrolling, full-screen section. */
.hero-aquarium-slot {
  position:absolute;top:0;left:0;width:100%;height:100svh;
  z-index:-1;overflow:hidden;pointer-events:none;
}
.hero-aquarium-slot .ascii-ocean {
  position:absolute;inset:0;height:100%;margin:0;
}
.hero-aquarium-slot .ascii-ocean::after {content:none;}
.hero-aquarium-slot::after {
  content:'';position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(rgba(67,100,115,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(67,100,115,.035) 1px,transparent 1px);
  background-size:var(--ascii-cell-width) var(--ascii-cell-height);
}

