/* Decorative ocean is desktop Classic only; white remains the failure fallback. */
@media(min-width:0px){
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer{position:relative;isolation:isolate;overflow:hidden;background:#fff!important}
 body[data-site-scene=plain] .footer.ocean-footer{max-width:none;width:100%;padding-left:max(40px,calc((100% - 1180px)/2));padding-right:max(40px,calc((100% - 1180px)/2))}
 .ocean-footer .footer-ocean-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;pointer-events:none;filter:saturate(2.2) brightness(1.08) contrast(1.04);opacity:0;transition:opacity .3s}
 .ocean-footer .footer-ocean-video.is-ready{opacity:1}
 .ocean-footer .footer-ocean-wash{position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(45,126,190,.10),rgba(245,250,255,.66) 38%,rgba(245,250,255,.66) 62%,rgba(45,126,190,.10))}
}
.footer-ocean-video:not(.is-ready)+.footer-ocean-wash{visibility:hidden}
/* A little more breathing room, with the contact invitation leading the stack. */
@media(min-width:0px){
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer{min-height:210px!important;height:auto!important;box-sizing:border-box;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:14px!important;padding-top:32px!important;padding-bottom:32px!important;border-top:0!important}
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer::before{display:none!important}
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer .footer-right{display:contents}
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer .footer-contact,
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer .gallery-footer-contact{order:1;margin:0!important}
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer>span:not(.footer-ocean-wash),
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer .gallery-footer-motto{order:2;margin:0!important}
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer .footer-right>span,
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer>p:not(.gallery-footer-motto){order:3;margin:0!important}
}

@media(width <= 960px){
 body.gallery-active>.footer.ocean-footer{display:none!important}
 body[data-site-scene=plain].gallery-active>.footer.ocean-footer.ocean-footer{display:none!important}
}
@media(width > 960px){
 body[data-site-scene].gallery-active .gallery-route>footer,
 body[data-site-scene=plain].gallery-active .gallery-route>footer.ocean-footer.ocean-footer.ocean-footer{display:none!important}
}

/* Approved navy ocean, with readable white text even before video loads. */
@media(min-width:0px){
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer{background:#123a59!important;color:white!important}
 body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer :is(a,p,span){color:white!important}
 body[data-site-scene=plain] .ocean-footer .footer-ocean-video{filter:saturate(1.8) brightness(1.05) contrast(1.08)}
 body[data-site-scene=plain] .ocean-footer .footer-ocean-wash{background:linear-gradient(90deg,rgba(8,66,110,.20),rgba(7,42,75,.52) 38%,rgba(7,42,75,.52) 62%,rgba(8,66,110,.20))}
}

@media(min-width:0px){body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer{min-height:240px!important;gap:16px!important}}
/* Gallery shortcuts echo About without changing the content below. */
body .page>.page-header.gallery-link-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px}
.gallery-heading-links{display:flex;flex-shrink:0;align-items:center;margin-bottom:4px}
.gallery-heading-links .about-cv-link{font-weight:400}
@media(max-width:680px){
 body .page>.page-header.gallery-link-heading{position:relative;display:block}
 .gallery-heading-links{position:absolute;right:24px;bottom:18px;margin:0}
 body:is([data-site-scene=forest],[data-site-scene=treetop],[data-site-scene=nyc]) .gallery-heading-links{right:0;bottom:0}
}
@media(min-width:0px){body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer :is(.footer-contact,.gallery-footer-contact){color:#ffe77a!important}}

/* Home contact: preserve original copy/buttons layout, with a darker readable left area. */
@media(min-width:0px){
 body[data-site-scene=plain] .landing-contact.ocean-footer.ocean-footer.ocean-footer{display:block!important;min-height:0!important;padding:48px max(40px,calc((100% - 1000px)/2)) 32px!important}
 body[data-site-scene=plain] .landing-contact.ocean-footer .footer-ocean-wash{background:linear-gradient(90deg,rgba(7,42,75,.62),rgba(7,42,75,.48) 55%,rgba(7,42,75,.55))}
 body[data-site-scene=plain] .landing-contact.ocean-footer h2{color:#ffe77a!important}
 body[data-site-scene=plain] .landing-contact.ocean-footer :is(p,.landing-copyright){color:white!important}
 body[data-site-scene=plain] .landing-contact.ocean-footer .landing-contact-actions a{color:white!important;border:1.5px solid rgba(255,255,255,.95)!important;background:rgba(7,33,58,.75)!important;font-weight:600;text-decoration:underline;text-underline-offset:4px}
}
/* Align home contact to the opening headline; quieter borderless links. */
@media(min-width:0px){
 body[data-site-scene=plain] .landing-contact.ocean-footer.ocean-footer.ocean-footer{padding-left:calc(max(40px,(100vw - 1100px)/2) - 12px)!important;padding-right:max(40px,calc((100vw - 1100px)/2))!important}
 body[data-site-scene=plain] .landing-contact.ocean-footer .landing-contact-inner{max-width:none}
 body[data-site-scene=plain] .landing-contact.ocean-footer .landing-contact-actions a{border:1px solid rgba(255,255,255,.38)!important;background:transparent!important;text-shadow:0 1px 3px #061d32;text-decoration-color:rgba(255,255,255,.8)}
}
/* Remove legacy scene breathing room below the Classic desktop ocean. */
@media(min-width:0px){body[data-site-scene=plain]:not(.home-view):has(.ocean-footer){padding-bottom:0!important}}

@media(max-width:960px){body[data-site-scene=plain] .landing-contact.ocean-footer.ocean-footer.ocean-footer{padding:32px 24px 24px!important}body[data-site-scene=plain] .landing-contact.ocean-footer .landing-contact-inner{display:block}body[data-site-scene=plain] .landing-contact.ocean-footer .landing-contact-actions{margin-top:24px;gap:12px}body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer{min-height:210px!important}body[data-site-scene=plain] .landing-contact.ocean-footer .footer-ocean-wash{background:rgba(7,42,75,.52)}}@media(max-width:960px){body[data-site-scene=plain] .footer.ocean-footer.ocean-footer.ocean-footer,body[data-site-scene=plain] .gallery-route>footer.ocean-footer.ocean-footer.ocean-footer{padding-bottom:84px!important;min-height:260px!important}body[data-site-scene=plain] .landing-contact.ocean-footer.ocean-footer.ocean-footer{padding-bottom:84px!important}}

/* Keep dock clearance inside the ocean, never in a white body spacer. */
@media(max-width:960px){body[data-site-scene=plain]:has(.ocean-footer){padding-bottom:0!important}body[data-site-scene=plain] .landing-contact.ocean-footer.ocean-footer.ocean-footer,body[data-site-scene=plain] .footer.ocean-footer.ocean-footer.ocean-footer,body[data-site-scene=plain] .gallery-route>footer.ocean-footer.ocean-footer.ocean-footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}}
/* A tiny seashell signature across all scenes and screen sizes, including reduced-motion fallback. */
body :is(.landing-copyright,.footer-right>span,.gallery-route>footer>p:not(.gallery-footer-motto))::after{content:"🐚";display:inline-block;font-size:12px;line-height:1;margin-left:6px;vertical-align:baseline}

/* An ocean still remains visible while mobile video loads or autoplay is unavailable. */
body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer {
  background-image: url("assets/ocean-strip-poster.jpg") !important;
  background-size: cover !important;
  background-position: center !important;
}
.footer-ocean-video:not(.is-ready)+.footer-ocean-wash { visibility: visible; }
/* Explicit user playback when a mobile browser declines muted autoplay. */
.ocean-footer .footer-ocean-play{position:absolute;right:16px;top:12px;z-index:2;border:1px solid rgba(255,255,255,.45);border-radius:16px;padding:5px 10px;background:rgba(7,42,75,.5);color:white;font:inherit;font-size:11px;cursor:pointer}
.ocean-footer .footer-ocean-play:focus-visible{outline:2px solid #ffe77a;outline-offset:3px}
/* Decorative video must never place iOS native playback chrome over contact links. */
.footer-ocean-video::-webkit-media-controls,
.footer-ocean-video::-webkit-media-controls-panel,
.footer-ocean-video::-webkit-media-controls-start-playback-button,
.footer-ocean-video::-webkit-media-controls-enclosure{display:none!important;-webkit-appearance:none!important}

/* Use the same lower desktop wave strip and signature inset across Classic pages. */
@media (width > 960px) {
  body[data-site-scene=plain] .ocean-footer.ocean-footer.ocean-footer,
  body[data-site-scene=plain] .landing-contact.ocean-footer.ocean-footer.ocean-footer {
    --desktop-ocean-signature-inset: 18px;
    min-height: 244px !important;
  }
  body[data-site-scene=plain] .landing-contact.ocean-footer.ocean-footer.ocean-footer {
    padding-bottom: 48px !important;
  }
  body[data-site-scene=plain] .landing-contact.ocean-footer .landing-copyright {
    position: absolute;
    inset: auto auto calc(var(--desktop-ocean-signature-inset) + 8px) 50%;
    padding: 0;
    translate: -50% 0;
    white-space: nowrap;
  }
}

/* A quieter signature on desktop reading pages, not on the landing page. */
@media (width > 960px) {
  body:not(.home-view) > .footer .footer-right > span,
  body.gallery-active .gallery-route > footer > p:last-child:not(.gallery-footer-motto) {
    font-size: 11px;
    translate: 0 6px;
  }

  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer .footer-right > span,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer > p:last-child:not(.gallery-footer-motto) {
    position: absolute;
    inset: auto auto var(--desktop-ocean-signature-inset) 50%;
    translate: -50% 0;
    white-space: nowrap;
  }

  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer { --desktop-ocean-signature-inset: 28px; }

  /* Lift the secondary-page invitation without changing the signature inset. */
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer .footer-contact,
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer > span:not(.footer-ocean-wash),
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer :is(.gallery-footer-contact,.gallery-footer-motto) {
    translate: 0 -12px;
  }

  /* Preserve the centered contact and motto while anchoring the signature. */
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer::after,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer::after {
    content: "";
    flex: 0 0 16.5px;
    order: 3;
  }
}

/* Move only the signature on small screens; preserve the dock clearance. */
@media (width <= 960px) {
  body:not(.home-view) > .footer .footer-right > span,
  body.gallery-active .gallery-route > footer > p:last-child:not(.gallery-footer-motto) {
    translate: 0 8px;
  }
}

/* Extend only the mobile reading-page ocean, below the existing contact stack. */
@media (width <= 960px) {
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer.ocean-footer.ocean-footer,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer.ocean-footer.ocean-footer {
    min-height: 276px !important;
    padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important;
  }

  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer .footer-right > span,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer > p:last-child:not(.gallery-footer-motto) {
    translate: 0 24px;
  }
}

/* Keep the lowered signature above the taller phone navigation. */
@media (max-width: 680px) {
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer.ocean-footer.ocean-footer,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer.ocean-footer.ocean-footer {
    min-height: 286px !important;
    padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
  }
}

/* Desktop wayfinding is simple text over the existing wave, never a new strip. */
.site-ocean-pagination{display:none}
@media (width > 960px){
 body[data-site-scene=plain] .site-ocean-pagination{
  display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:24px;
 }
 body[data-site-scene=plain] .ocean-footer > .site-ocean-pagination{
  position:absolute;inset-inline:max(28px,calc((100% - 1180px)/2));top:43%;
  translate:0 -50%;padding:0;pointer-events:none;
 }
 /* The home contact actions may wrap; use flow so Next always clears them. */
 body[data-site-scene=plain] .landing-contact.ocean-footer > .site-ocean-pagination{
  position:static;inset:auto;translate:none;margin-top:10px;
 }
 .site-ocean-pagination a{
  display:flex;align-items:center;gap:10px;min-height:44px;box-sizing:border-box;
  padding:4px 0;font:600 14px/1.2 Arial,sans-serif;text-decoration:none;pointer-events:auto;
 }
 .site-ocean-pagination .wave-page-copy{display:flex;flex-direction:column;gap:3px}
 .site-ocean-pagination small{font-size:10px;font-weight:500;letter-spacing:.08em;text-transform:uppercase}
 .site-ocean-pagination .wave-page-arrow{font:400 25px/1 Arial,sans-serif}
 .site-ocean-pagination .wave-page-previous{grid-column:1;justify-self:start}
 .site-ocean-pagination .wave-page-next{grid-column:2;justify-self:end;text-align:right}
 .ocean-footer .site-ocean-pagination a{text-shadow:0 1px 4px #092236,0 0 10px #092236}
 .site-ocean-pagination a:hover .wave-page-copy>span{text-decoration:underline;text-underline-offset:4px}
 .site-ocean-pagination a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
}

/* Classic reading pages only: a slightly shorter wave and a clearer signature. */
body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer .footer-right > span,
body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer > p:last-child:not(.gallery-footer-motto) {
  font-size: 12.3px !important;
}

@media (width > 960px) {
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer.ocean-footer.ocean-footer,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer.ocean-footer.ocean-footer {
    min-height: 214px !important;
    padding-bottom: 20px !important;
    --desktop-ocean-signature-inset: 25px;
  }
}

@media (width <= 960px) {
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer.ocean-footer.ocean-footer,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer.ocean-footer.ocean-footer {
    min-height: 248px !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  }

  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer .footer-right > span,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer > p:last-child:not(.gallery-footer-motto) {
    translate: 0 6px;
  }
}

@media (max-width: 680px) {
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer.ocean-footer.ocean-footer,
  body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer.ocean-footer.ocean-footer {
    min-height: 258px !important;
    padding-bottom: calc(98px + env(safe-area-inset-bottom)) !important;
  }
}

/* Keep the video frame and desktop navigation pinned while trimming the lower edge. */
body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer > .footer-ocean-video,
body[data-site-scene=plain].gallery-active .gallery-route > footer.ocean-footer > .footer-ocean-video {
  height: calc(100% + 12px);
}

@media (width > 960px) {
  body[data-site-scene=plain]:not(.home-view) > .footer.ocean-footer > .site-ocean-pagination {
    top: calc(43% + 5.16px);
  }
}
