/*stop being judgemental of my css, it's all over the place I know...
Is YOUR house clean all the time when no one is there?*/
/*
.preloader {
  align-items: center;
  background: rgb(2, 0, 36);
  background: linear-gradient(180deg, rgba(2, 0, 36, 1) 0%, rgba(58, 41, 58, 1) 38%, rgba(232, 128, 135, 1) 100%);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  position: fixed;
  top: 0;
  transition: opacity 0.2s linear;
  width: 100%;
  z-index: 9998;
  transform: opacity 1s linear;
}
*/
/* page onload */
body {
  opacity: 0;
  transition: opacity 3s;
}

a:link {
  color: #FFDABF;
}

a:hover {
  color: #FA9B9B;
}

a:visited {
  color: #FFDABF;
}

@keyframes spin {
  from {
    transform: rotate(180deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes glitter {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }

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

  50% {
    transform: scale(0.8);
    opacity: 0;
  }

  75% {
    transform: scale(1.6);
    opacity: 1;
  }

  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

html,
body {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-image: url("./images/2025-background.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  font-family: "Inria Sans", sans-serif;
  font-weight: 400;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Caveat", cursive;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

#space {
  position: absolute;
  height: 240vh;
  width: 240vw;
  left: -70vw;
  top: -70vh;
  overflow: hidden;
  transform-origin: 50% 50%;
  animation: spin 500s linear 0s infinite normal;
  -moz-animation: spin 500s linear 0s infinite normal;
  -ms-animation: spin 500s linear 0s infinite normal;
  -o-animation: spin 500s linear 0s infinite normal;
  -webkit-animation: spin 500s linear 0s infinite normal;
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  background: #FFF;
  opacity: 0;
  animation: glitter 8s ease-in 0s infinite normal;
  -moz-animation: glitter 8s ease-in 0s infinite normal;
  -ms-animation: glitter 8s ease-in 0s infinite normal;
  -o-animation: glitter 8s ease-in 0s infinite normal;
  -webkit-animation: glitter 8s ease-in 0s infinite normal;
}

.front-iceberg {
  position: absolute;
  top: 5%;
  left: 15%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 60%;
  padding: 2em;
  z-index: 3;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

.bounce-2 {
  animation-name: bounce-2;
  animation-timing-function: ease;
}

@keyframes bounce-2 {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0);
  }
}

.back-iceberg {
  position: absolute;
  top: 2%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  max-width: 60%;
  padding: 2em;
  z-index: 2;
  animation-duration: 8s;
  animation-iteration-count: infinite;
}

.bounce-3 {
  animation-name: bounce-3;
  animation-timing-function: ease;
}

@keyframes bounce-3 {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}


/*fishy */

#whale,
#canvas {
  top: 50%;
  left: 15%;
}

/* Fish Animation */
.whale {
  overflow: visible;
}

@-webkit-keyframes swim {
  0% {
    margin-left: 100%
  }

  90% {
    margin-left: -200px;
  }

  100% {
    margin-left: -200px;
  }
}

@keyframes swim {
  0% {
    margin-left: 100%
  }

  70% {
    margin-left: -200px;
  }

  100% {
    margin-left: -200px;
  }
}

.whale {
  max-width: 100px;
  max-height: 30.88px;
  margin-left: -100;
  position: absolute;
  animation: swim 30s;
  -webkit-animation: swim 30s;
  animation-iteration-count: infinite;
  -webkit-animation-iteration-count: infinite;
  animation-timing-function: linear;
  -webkit-animation-timing-function: linear;
}

/**/
@-moz-keyframes bounce {

  0%,
  50%,
  100% {
    -moz-transform: translateY(0);
    transform: translateY(0);
  }

  25% {
    -moz-transform: translateY(-5px);
    transform: translateY(-5px);
  }

  75% {
    -moz-transform: translateY(-3px);
    transform: translateY(-3px);
  }
}

@-webkit-keyframes bounce {

  0%,
  50%,
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  25% {
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }

  75% {
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
  }
}

@keyframes bounce {

  0%,
  50%,
  100% {
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  25% {
    -moz-transform: translateY(-5px);
    -ms-transform: translateY(-5px);
    -webkit-transform: translateY(-5px);
    transform: translateY(-5px);
  }

  75% {
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -webkit-transform: translateY(-3px);
    transform: translateY(-3px);
  }
}

/*END Fish Animation*/

#animation_container {
  margin: 25%;

}

#animation_container>* {
  max-width: 100px;
  max-height: 33.8px;
}

#animation_container .whale-fallback {
  display: none;
  width: 100px;
  height: auto;
}

#animation_container.no-canvas canvas {
  display: none;
}

#animation_container.no-canvas .whale-fallback {
  display: block;
}

@keyframes boxAnimation {
  50% {
    transform: translateY(-150px);
  }
}

@keyframes spanAnimation {
  50% {
    transform: translateX(-150px)
  }
}

#heaven {
  width: 100%;
  height: 45%;
  mix-blend-mode: multiply;
}

.heaven {
  background-image: url(./images/heaven.svg);
  background-position: top left;
  background-repeat: repeat-y;
  background-size: cover;
  filter: blur(4px);
  mix-blend-mode: multiply;
  opacity: .25;
  background-color: #202021a1;
  height: 100%;
}

.heaven-text {
  position: absolute;
  z-index: 9996;
  font-family: "Inria Sans", sans-serif;
  text-align: left;
  color: #FFF;
  font-size: 1.2em;
  line-height: 1.5em;
  width: 100%;
  text-shadow: 0px 1px 1px rgba(4, 18, 43, 0.8);
  padding: 0 50px;
}

.heaven-wrapper {
  position: absolute;
  top: 20%;
  width: 100%;
  height: 80%;
}

.family {
  position: absolute;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  z-index: var(--z-family);
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: inset 5px 5px 10px rgba(255, 237, 224, 0.7);
  background-color: #ffffff30;
  overflow: hidden;
}

/* Glow pulse on hover */
.family:hover {
  box-shadow: inset 5px 5px 10px rgba(255, 255, 255, 0.9);

}

/* bubble shine spec */
.family::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(22px 22px at 22% 18%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 60%);
  mix-blend-mode: screen;
  animation: bubbleShine 4.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes bubbleShine {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: .85;
  }

  50% {
    transform: translate(6px, -6px) scale(1.05);
    opacity: 1;
  }
}

.family>img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
  pointer-events: none;
}

.bounce-family {
  animation-name: bounce-family;
  animation-timing-function: ease-out;
}

@keyframes bounce-family {
  0% {
    transform: translateX(0);
    transform: translateY(0);
  }

  50% {
    transform: translateX(-100px);
    transform: translateY(-40px);
  }

  100% {
    transform: translateX(0);
    transform: translateY(0);
  }
}

@media (max-width: 799px) {
  p {
    font-size: .5em;
  }
}

@media (min-width: 800px) {
  p {
    font-size: 1;
  }
}

/* amache */

#amache-wrapper {
  position: absolute;
  width: 50%;
  padding: 30px;
  left: 40%;
  height: 100%;
}

.amache-background {
  background-image: url(./images/lecture.svg);
  background-repeat: repeat-y;
  background-size: 100%;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  background-position: top left;
  filter: blur(4px);
  opacity: .5;
  mix-blend-mode: multiply;
  background-color: #202021a1;
}

.water-tower {
  position: absolute;
  z-index: 9996;
  width: 90%;
  height: 100%;
  color: #FFF;
  padding: 25px 10px;
  font-family: "Inria Sans", sans-serif;
  text-shadow: 0px 1px 1px rgba(4, 18, 43, 0.8);
  text-align: left;
  font-size: 1.2em;
  line-height: 1.5em;
}

.wrappers {
  position: absolute;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 100% 100% 0 round 8px);
  transform-origin: 50% 50%;
}

.wrappers.is-opening,
.wrappers.is-open {
  visibility: visible;
  pointer-events: auto;
}


#work-wrapper {
  position: absolute;
  width: 50%;
  padding: 20px;
  left: 10%;
  height: 90%;
}

.work-background {
  background-image: url(./images/sofaraway.svg);
  background-repeat: repeat-y;
  background-size: 100%;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  background-position: top left;
  filter: blur(4px);
  opacity: .5;
  mix-blend-mode: multiply;
  background-color: #14141682;
}

.work-text {
  position: absolute;
  z-index: 9996;
  width: 92%;
  height: 100%;
  color: #FFF;
  padding: 20px;
  font-family: "Inria Sans", sans-serif;
  text-shadow: 0px 1px 1px rgba(4, 18, 43, 0.8);
  text-align: left;
  font-size: 1em;
}

#family-wrapper {
  position: absolute;
  width: 100%;
  padding: 20px;
  top: 20%;
  left: 0;
  height: 50%;
}

.family-background {
  background-image: url(./images/fixyou.svg);
  background-position: top left;
  background-repeat: repeat-x;
  background-size: cover;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  background-position: top left;
  filter: blur(4px);
  opacity: .5;
  mix-blend-mode: multiply;
}

.family-text {
  width: 90%;
  top: 30%;
  position: absolute;
  z-index: 9996;
  color: #FFF;
  padding: 20px 20px 20px 20px;
  font-family: "Inria Sans", sans-serif;
  text-shadow: 0px 1px 1px rgba(4, 18, 43, 0.8);
  text-align: left;
  font-size: 1.25em;
  line-height: 1.4em;
}

/* Loader Styles start here */
.loader-wrapper {
  --line-width: 5px;
  --curtain-color: linear-gradient(180deg, rgba(2, 0, 36, 1) 0%, rgba(58, 41, 58, 1) 38%, rgba(232, 128, 135, 1) 100%);
  --outer-line-color: #000;
  --middle-line-color: rgb(2, 0, 36);
  --inner-line-color: rgb(2, 0, 36);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
}

.loader {
  display: block;
  position: relative;
  top: 50%;
  left: 50%;
  /*   transform: translate(-50%, -50%); */
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: var(--line-width) solid transparent;
  border-top-color: var(--outer-line-color);
  border-radius: 100%;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  z-index: 9999;
}

.loader .loader-icon {
  -webkit-animation: spin 2s linear infinite reverse;
  animation: spin 2s linear infinite reverse;
  transform-origin: 50% 50%;
}

.loader-message {
  position: fixed;
  top: calc(50% + 110px);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: "Inria Sans", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  z-index: 9999;
}

.loader:before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border: var(--line-width) solid transparent;
  border-top-color: var(--inner-line-color);
  border-radius: 100%;
  -webkit-animation: spin 3s linear infinite;
  animation: spin 3s linear infinite;
}

.loader:after {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border: var(--line-width) solid transparent;
  border-top-color: var(--middle-line-color);
  border-radius: 100%;
  -webkit-animation: spin 1.5s linear infinite;
  animation: spin 1.5s linear infinite;
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-wrapper .loader-section {
  position: fixed;
  top: 0;
  background: var(--curtain-color);
  width: 51%;
  height: 100%;
  z-index: 9998;
}

.loader-wrapper .loader-section.section-left {
  left: 0
}

.loader-wrapper .loader-section.section-right {
  right: 0;
}

/* Loaded Styles */
.loaded .loader-wrapper .loader-section.section-left {
  transform: translateX(-100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded .loader-wrapper .loader-section.section-right {
  transform: translateX(100%);
  transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

.loaded .loader {
  opacity: 0;
  transition: all 0.3s ease-out;
}

.loaded .loader-wrapper {
  visibility: hidden;
  transform: translateY(-100%);
  transition: all .3s 1s ease-out;
}


.comet {
  position: fixed;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 18px 6px rgba(255, 255, 255, .85), 0 0 3px 1px rgba(255, 218, 191, .8) inset;
  z-index: 10000;
  pointer-events: none;
}

/* cranes */

#large-crane::after,
#small-crane::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 100%;
  animation: spanAnimation 5s cubic-bezier(0.3, 0.27, 0.07, 1.64) infinite;
  box-shadow: rgba(255, 255, 255, 1) 0 0 20px 2px;
}

#large-crane {
  position: absolute;
  top: 0;
  left: 0;
  width: 100px;
  height: auto;
  will-change: transform;
  animation: none !important;
  z-index: var(--z-front-crane);
}

#small-crane {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: auto;
  will-change: transform;
  animation: none !important;
  z-index: var(--z-back-crane);
}

:root {
  --z-overlay: 9990;
  --z-front-crane: 9996;
  --z-back-crane: 1;
  --z-family: 10002;
  --z-wrappers: 10003;
  --z-comet: 10005;
}

.wrappers,
#amache-wrapper,
#heaven-wrapper,
#work-wrapper,
#family-wrapper {
  position: absolute;
  z-index: var(--z-wrappers);
}

.comet {
  z-index: var(--z-comet);
}

.overlay {
  position: fixed;
  inset: 0;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  mix-blend-mode: multiply;
  z-index: var(--z-overlay);
  pointer-events: none;
  opacity: 0.75;
  background:
    /*linear-gradient(rgba(188, 0, 0), rgba(255, 0, 0, 0.95)),*/
    url(images/overlay.jpg) center/cover no-repeat;
}

/* Show a basic blocker on very small screens even without JS */
@media (max-width: 640px) {
  .mobile-blocker {
    display: flex;
  }
}

:root {
  --z-mobile-blocker: 20000;
}

html.blocker-active,
html.blocker-active body {
  overflow: hidden !important;
  /* no scrollbars */
  height: 100% !important;
}

html.blocker-active * {
  animation-play-state: paused !important;
}

.mobile-blocker {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: var(--z-mobile-blocker);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 100% at 50% 0%, #0b1022 0%, #1a0e1a 35%, #26121a 100%);
  color: #fff;
  padding: 32px;
  text-align: center;
  overscroll-behavior: contain;
}

.mobile-card {
  max-width: 600px;
  max-height: calc(100dvh - 64px);
  overflow: auto;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
  font-family: "Inria Sans", sans-serif;
}

.mobile-card h1 {
  font-size: clamp(20px, 4vw, 28px);
  margin: 0 0 8px;
}

.mobile-card p {
  font-size: clamp(14px, 3.2vw, 18px);
  line-height: 1.5;
  opacity: .92;
}

.mobile-actions {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.mobile-btn {
  padding: 10px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  cursor: pointer;
}

.mobile-btn.primary {
  background: rgba(255, 255, 255, .18);
}

.work-items {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  width: 90%;
  padding: 20px;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
}

.work-items li {
  list-style-type: none;
  padding: 10px;
}

.work-items li > img {
  width: 100px;
}

.anime-family {
  float:left;
  margin-bottom:10px;
  margin-right:20px;
  width: 150px;  
  height: 150px; 
  border-radius: 50%; 
  overflow: hidden; 
}

.anime-family img {
  width: 100%; 
  height: 100%;  
  object-fit: cover; 
}

@media (prefers-reduced-motion: reduce) {
  #space,
  .bounce-2,
  .bounce-3,
  .loader,
  .loader:before,
  .loader:after,
  .family::after,
  #large-crane::after,
  #small-crane::after {
    animation: none !important;
  }

  .star {
    animation: none !important;
    opacity: 0.6;
  }
}

.anime-family {
  float:left;
  margin-bottom:10px;
  margin-right:20px;
  width: 150px;  
  height: 150px; 
  border-radius: 50%; 
  overflow: hidden; 
}

.anime-family img {
  width: 100%; 
  height: 100%;  
  object-fit: cover; 
}
