/*
Theme Name: Subblock
Author: Subatomic
Author URI: sosubatomic.com
Description: The 2026 block theme.
Version: 1
©2026 Subatomic, LLC
*/

@import url('https://use.typekit.net/bae6mxm.css');

:root {
  --header-desktop-offset: 70px; /* set this to your desktop header height */
  --header-mobile-offset: 70px; /* set this to your mobile header height */
  --tertiary-nav-mobile-background: var(--wp--preset--color--background);
  --form-border-width: 1px;
  --form-border-color: var(--wp--preset--color--neutral);
  --form-border-radius: 0.375rem;
  --form-focus: 0.375rem;
  --form-placeholder-color: #00000073;
  --form-disabled-bg: var(--wp--preset--color--neutral);
  --form-file-bg: var(--wp--preset--color--neutral);
  --form-check-bg: var(--wp--preset--color--primary);
}

/*
HEADER
*/

/*Submenu: decrease spacing*/
@media (min-width: 991px) {
  header :where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:not(.wp-element-button)),
  header :where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu a:not(.wp-element-button)),
  header :where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-submenu button.wp-block-navigation-item__content),
  header :where(.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-pages-list__item button.wp-block-navigation-item__content) {
    line-height: 1.25;
    padding: .25em 1em;
  }
  header .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,
  header .wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,
  header .wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
    padding: .5em 0;
  }
  /* To prevent submenu from going off page */
  header .wp-block-navigation > .wp-block-navigation-item
  > .wp-block-navigation__submenu-container {
    left: auto !important;
    right: 0 !important;
    text-align: left;
  }
  /* Nested flyout menus */
  header .wp-block-navigation .wp-block-navigation__submenu-container
  .wp-block-navigation__submenu-container {
    left: auto !important;
    right: 100% !important;
    top: 0;
  }
}
#site-header nav ul.wp-block-navigation__container > li > a:before {
  background: var(--wp--preset--color--seafloor);
  border: solid 1px var(--wp--preset--color--seafloor);
  border-radius: 50%;
  content: '';
  display: inline-block;
  margin-right: 7px;
  height: 22px;
  width: 22px;
  vertical-align: text-bottom;
}
#site-header nav ul.wp-block-navigation__container > li:nth-child(1) > a:before {
  background: var(--wp--preset--color--shallows);
}
#site-header nav ul.wp-block-navigation__container > li:nth-child(2) > a:before {
  background: var(--wp--preset--color--current);
}
#site-header nav ul.wp-block-navigation__container > li:nth-child(3) > a:before {
  background: var(--wp--preset--color--dive);
}
#site-header nav ul.wp-block-navigation__container > li:nth-child(4) > a:before {
  background: var(--wp--preset--color--deep);
}
#site-header nav ul.wp-block-navigation__container > li:nth-child(5) > a:before {
  background: var(--wp--preset--color--abyss);
}
#site-header nav ul.wp-block-navigation__container > li:nth-child(6) > a:before {
  background: var(--wp--preset--color--seafloor);
}
#site-header nav ul.wp-block-navigation__container > li > a {
  position: relative;
}
#site-header nav ul.wp-block-navigation__container > li > a:after {
  background: transparent;
  background-image: url("data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%226.65%22%20height%3D%224.93%22%20viewBox%3D%220%200%206.65%204.93%22%3E%3Cpath%20d%3D%22M6.49.29c.05%2C0%2C.1%2C0%2C.16%2C0-.53-.19-1.1-.3-1.69-.3C2.23%2C0%2C.02%2C2.2%2C0%2C4.93.93%2C2.23%2C3.48.29%2C6.49.29Z%22%20style%3D%22fill%3A%23fff%3B%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: -10px -10px;
  border: solid 1px var(--wp--preset--color--base);
  border-radius: 50%;
  content: '';
  height: 20px;
  width: 20px;
  position: absolute;
  margin-left: 1px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: background-position 0.5s ease-out;
}
#site-header nav ul.wp-block-navigation__container > li > a:hover:after {
  background-position: 3px 3px;
}
/*
MAIN
*/
h1 a,h2 a,h3 a,h4 a,h5 a,h6 a,
.h1 a,.h2 a,.h3 a,.h4 a,.h5 a,.h6 a {
  color: var(--wp--preset--color--primary);
}
.h1,.h2,.h3,.h4,.h5,.h6 {
  color: var(--wp--preset--color--primary);
  font-family: var(--wp--preset--font-family--secondary);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: none;
}
@media (min-width: 600px) {
  #sonar,
  #target,
  #bathymetric {
    padding-left: 130px!important;
    padding-right: 130px!important;
  }
}
#sonar {
  background-image: url(assets/images/background-sonar-vertical.svg);
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}
@media (min-width: 992px) {
  #sonar {
    background-image: url("assets/images/background-sonar.svg");
  }
}
.sonar-pings {
  position: relative;
}
.sonar-pings:before {
  content: "";
  background-image: url("assets/images/background-concentric-circles.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  position: absolute;
  inset: 0;
  transform-origin: center;
  animation: sonar-rotate 90s linear infinite;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 992px) {
  .sonar-pings:before {
    margin-top: -20px;
    margin-left: -80px;
  }
}
.sonar-pings > * {
  position: relative;
  z-index: 1;
}
@keyframes sonar-rotate {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sonar-pings:before {
    animation: none;
  }
}
.sonar-ping {
  position: relative;
}
.sonar-ping:before {
  content: "";
  background: var(--wp--preset--color--dive);
  border-radius: 50%;
  position: absolute;
  left: -35px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
}
.sonar-ping:after {
  content: "";
  box-sizing: border-box;
  border: 2px solid var(--wp--preset--color--secondary);
  border-radius: 50%;
  position: absolute;
  left: -35px;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  transform-origin: center;
  opacity: 0;
}
#sonar.is-pinged .sonar-ping:before,
#sonar.is-pinged .sonar-ping:after {
  animation-name: none;
}
#sonar.is-pinged .wp-block-column.is-visible .sonar-ping:before {
  animation-name: sonar-dot;
  animation-duration: 2s;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}
#sonar.is-pinged .wp-block-column.is-visible .sonar-ping:after {
  animation-name: sonar-ring;
  animation-duration: 2s;
  animation-delay: 1s;
}
@media (min-width: 992px) {
  /* First row, second column */
  #sonar.is-pinged .wp-block-columns:nth-of-type(1)
  .wp-block-column:nth-child(2) .sonar-ping:before,
  #sonar.is-pinged .wp-block-columns:nth-of-type(1)
  .wp-block-column:nth-child(2) .sonar-ping:after {
    animation-delay: 2s;
  }
  /* Second row, first column */
  #sonar.is-pinged .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(1) .sonar-ping:before,
  #sonar.is-pinged .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(1) .sonar-ping:after {
    animation-delay: 3s;
  }
  /* Second row, second column */
  #sonar.is-pinged .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(2) .sonar-ping:before,
  #sonar.is-pinged .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(2) .sonar-ping:after {
    animation-delay: 4s;
  }
  /* Third row, first column */
  #sonar.is-pinged .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(1) .sonar-ping:before,
  #sonar.is-pinged .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(1) .sonar-ping:after {
    animation-delay: 5s;
  }
  /* Third row, second column */
  #sonar.is-pinged .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(2) .sonar-ping:before,
  #sonar.is-pinged .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(2) .sonar-ping:after {
    animation-delay: 6s;
  }
}
@keyframes sonar-dot {
  0% {
    background-color: var(--wp--preset--color--dive);
  }
  20%, 100% {
    background-color: var(--wp--preset--color--secondary);
  }
}
@keyframes sonar-ring {
  0% {
    transform: translateY(-50%) scale(1);
    opacity: 1;
  }
  70%, 100% {
    transform: translateY(-50%) scale(2.15);
    opacity: 0;
  }
}
#target {
  position: relative;
}
#target:before {
  content: "";
  background-image: url("assets/images/background-target.svg");
  background-position: -25px 50px;
  background-repeat: no-repeat;
  background-size: 250px;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
#target:after {
  content: "";
  background-image: url("assets/images/background-target-heart.svg");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: 250px auto;
  position: absolute;
  left: -25px;
  top: 50px;
  width: 250px;
  height: 250px;
  opacity: 0;
  transform: scale(.85);
  transform-origin: center;
  pointer-events: none;
  z-index: 0;
}
@media (min-width: 600px) {
  #target:before {
    background-position: -25px 0px;
  }
  #target:after {
    left: -25px;
    top: 0px;
  }
}
#target.is-hit:after {
  animation: target-is-hit 1000ms ease-out forwards;
  animation-delay: 1000ms;
}
#target > * {
  position: relative;
  z-index: 1;
}
@keyframes target-is-hit {
  0% {
    transform: scale(.85);
    opacity: 0;
  }

  25% {
    transform: scale(1.2);
    opacity: 1;
  }

  40% {
    transform: scale(1);
  }

  60% {
    transform: scale(1.1);
  }

  75% {
    transform: scale(1);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #target:after {
    animation: none !important;
    transform: none;
    opacity: 1;
  }
}
#bathymetric {
  background-image: url("assets/images/background-bathymetric-vertical.svg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}
@media (min-width: 600px) {
  #bathymetric {
    background-image: url("assets/images/background-bathymetric.svg");
  }
}
#bathymetric .bathymetric-mark {
  position: relative;
}
#bathymetric .bathymetric-mark:before {
  content: "+";
  color: var(--wp--preset--color--secondary);
  font-size: 28px;
  font-weight: 300;
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%) scale(.5);
  line-height: 1;
  opacity: 0;
}
#bathymetric.is-mapped .wp-block-column.is-visible .bathymetric-mark:before {
  animation-name: mark-is-mapped;
  animation-duration: 1s;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}
@media (min-width: 992px) {
  /* First row, second column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(1)
  .wp-block-column:nth-child(2) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(1)
  .wp-block-column:nth-child(2) .bathymetric-mark:after {
    animation-delay: 1.5s;
  }
  /* Second row, first column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(1) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(1) .bathymetric-mark:after {
    animation-delay: 2s;
  }
  /* Second row, second column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(2) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(2)
  .wp-block-column:nth-child(2) .bathymetric-mark:after {
    animation-delay: 2.5s;
  }
  /* Third row, first column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(1) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(1) .bathymetric-mark:after {
    animation-delay: 3s;
  }
  /* Third row, second column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(2) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(3)
  .wp-block-column:nth-child(2) .bathymetric-mark:after {
    animation-delay: 3.5s;
  }
  /* Forth row, first column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(4)
  .wp-block-column:nth-child(1) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(4)
  .wp-block-column:nth-child(1) .bathymetric-mark:after {
    animation-delay: 4s;
  }
  /* Forth row, second column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(4)
  .wp-block-column:nth-child(2) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(4)
  .wp-block-column:nth-child(2) .bathymetric-mark:after {
    animation-delay: 44.5s;
  }
  /* Fifth row, first column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(5)
  .wp-block-column:nth-child(1) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(5)
  .wp-block-column:nth-child(1) .bathymetric-mark:after {
    animation-delay: 4.5s;
  }
  /* Fifth row, second column */
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(5)
  .wp-block-column:nth-child(2) .bathymetric-mark:before,
  #bathymetric.is-mapped .wp-block-columns:nth-of-type(5)
  .wp-block-column:nth-child(2) .bathymetric-mark:after {
    animation-delay: 5s;
  }
}
@keyframes mark-is-mapped {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(.5);
  }

  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}
#bathymetric.is-unmapping .bathymetric-mark::before {
  animation: mark-fade-out 2s ease forwards;
}
@keyframes mark-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}
.tabbar-testimonials {
  color: var(--wp--preset--color--shallows);
  font-family: var(--wp--preset--font-family--tertiary);
  font-size: var(--wp--custom--heading--4);
  font-style: italic;
  margin-top: 0;
}
@media (min-width: 991px) {
  .tabbar-panels {
    padding: 2rem 5rem;
  }
}
.tabbar-panels {
  position: relative;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.tabbar-panels:before,
.tabbar-panels:after {
  color: var(--wp--preset--color--dive);
  font-family: rokkitt, serif;
  font-size: clamp(3rem, 2rem + 4vw, 10rem);
  font-style: normal;
  line-height: .7;
  position: absolute;
}
.tabbar-panels:before {
  content: '“';
  top: 2rem;
  left: 0;
}
.tabbar-panels:after {
  content: '”';
  bottom: 3rem;
  right: .25rem;
}
#submarine-stage {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
#submarine-actor {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  transform: translate3d(-100px, -100px, 0px);
  will-change: transform;
}
@media (min-width: 600px) {
  #submarine-actor {
    width: 74px;
  }
}
.submarine {
  display: block;
  width: 100%;
  height: auto;
}
.submarine-bob {
  animation: submarine-bob 3.5s ease-in-out infinite;
}
@keyframes submarine-bob {
  0%,
  100% {
    transform: translateY(-2px) rotate(-1deg);
  }

  50% {
    transform: translateY(2px) rotate(1deg);
  }
}
.submarine-flip {
  position: relative;
  transform: scaleX(1);
  transform-origin: center;
}
.submarine-flip.faces-left {
  transform: scaleX(-1);
}
.sonar-effect {
  fill: var(--wp--preset--color--shallows);
  position: absolute;
  left: 115%;
  top: 25%;
  width: 16px;
  opacity: 0;
  transform-origin: left;
}
@media (min-width: 600px) {
  .sonar-effect {
    width: 23px;
  }
}
#submarine-actor.is-sonar .sonar-effect {
  animation: sonar-show 1.8s ease-out 2;
}
@keyframes sonar-show {
  0% {
    opacity: 0;
    transform: scale(.75);
  }

  20% {
    opacity: .9;
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}
.torpedo-effect {
  fill: var(--wp--preset--color--brass);
  position: absolute;
  left: 88%;
  top: 36%;
  width: 26px;
  opacity: 0;
}
@media (min-width: 600px) {
  .torpedo-effect {
    width: 40px;
  }
}
#submarine-actor.is-torpedo .torpedo-effect {
  animation: fire-torpedoes 1.25s ease-out 1;
}
@keyframes fire-torpedoes {
  0% {
    opacity: 0;
    transform: translateX(0);
  }

  12% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(60px);
  }
}
.bubble-effect {
  fill: var(--wp--preset--color--shallows);
  position: absolute;
  right: 70%;
  top: -50px;
  width: 15px;
  opacity: 0;
}
@media (min-width: 600px) {
  .bubble-effect {
    width: 22px;
  }
}
#submarine-actor.is-bubbles .bubble-effect {
  animation: bubble-trail 2.2s ease-out 2;
}
@keyframes bubble-trail {
  0% {
    opacity: 0;
    transform: translate(0, 10px) scale(.8);
  }

  20% {
    opacity: .9;
  }

  100% {
    opacity: 0;
    transform: translate(-10px, -60px) scale(1.15);
  }
}
