html {
  padding: 0;
  margin: 0;
  cursor: url('cursor.svg') 12 12, auto;
}

a {
  color: gray;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: rgb(190, 190, 190);
  margin: 0;
  padding: 0;
  font-family: 'EB Garamond', 'Times New Roman', serif;
}

[data-home-el] {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.view-page [data-home-el] {
  pointer-events: none;
}

* {
  cursor: inherit;
}

a { 
  cursor: url('cursor-hover.svg') 17 17, auto!important;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.fullscreen-bg {
  position: fixed;
  top: 50%;
  left: 50%;
  width: calc(100vw + 80px);
  height: calc(100vh + 80px);
  background-image: url("/ocean-progressive.jpg");
  background-size: cover;
  background-position: 50% 15%;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 1;
  transition: background-image 0.5s ease-in-out, opacity 0.6s ease;
}

.ripple-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(230, 230, 230, 0.095) 20%, rgba(230, 230, 230, 0.025) 40%, rgba(230, 230, 230, 0) 70%);
  mix-blend-mode: lighter;
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-grow 3.6s ease-out forwards;
  will-change: transform, opacity;
}

.cursor-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(230, 230, 230, 0.19) 20%, rgba(230, 230, 230, 0.08) 45%, rgba(230, 230, 230, 0) 70%);
  mix-blend-mode: lighter;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  will-change: opacity;
}

@keyframes ripple-grow {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(30);
    opacity: 0;
  }
}

.main-image {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 300px;
  max-width: 65vw;
  object-fit: contain;
  object-position: center;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 1;
}

.main-image {
  font-size: 0;
  color: transparent;
}

.main-image::before {
  content: none;
}

.main-image::after {
  content: none;
}

.nav-links {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  opacity: 0;
  width: calc(300px - 51px);
  max-width: calc(65vw - 51px);
  align-items: center;
  align-self: stretch;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.nav-links a {
  font-family: 'EB Garamond', 'Times New Roman', serif;
  font-weight: 500;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: rgba(255, 255, 255, 1);
}

@media (prefers-reduced-motion: reduce) {
  .fullscreen-bg { will-change: auto; }
}

@media (max-width: 800px) {
  /* Tweak nav for small screens */
  .nav-links {
    top: calc(50% + 150px);
    gap: 15px;
    bottom: initial;
    text-align: center;
    transform: translate(-50%, 0);
  }
  .nav-links a { font-size: 22px; }
}

@media (max-width: 800px) and (max-height: 700px) {
  .nav-links {
    top: 5vh;
    bottom: initial;
    transform: translate(-50%, 0);
  }
}

/* Page-specific styles (memo, join-us, etc.) */
.page-layer {
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.page-layer.visible {
  opacity: 1;
  pointer-events: auto;
}

.page-bg {
  opacity: 0.4;
  background-position: 50% 15% !important; /* No movement on page */
}

.page-container {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 120px;
  box-sizing: border-box;
}

.page-content {
  color: #2b2b2b;
  font-size: 20px;
  line-height: 1.6;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

.page-content h1 {
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 1.5em;
  color: #1a1a1a;
}

.page-content h2 {
  font-size: 32px;
  font-weight: 500;
  margin-top: 1.5em;
  margin-bottom: 1em;
  color: #1a1a1a;
}

.page-content p {
  margin-bottom: 1em;
}

.page-content a {
  color: #2b2b2b;
  text-decoration: underline;
}

.page-content a:hover {
  color: #1a1a1a;
}

.page-content a.cta-email {
  font-weight: 600;
  text-decoration: none;
}

.page-content a.cta-email:hover {
  text-decoration: underline;
}

.page-home-link {
  text-align: center;
}

.home-icon {
  width: 80px;
  height: 80px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.home-icon:hover {
  opacity: 1;
}

@media (max-width: 800px) {
  .page-content {
    font-size: 18px;
  }

  .page-content h1 {
    font-size: 36px;
  }

  .page-content h2 {
    font-size: 28px;
  }

  .page-container {
    padding: 30px 30px 70px;
  }
}
