@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&display=swap');

/* Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange: #d44a1a;
  --cream: #f2e8d5;
  --water-light: #a8c8e0;
  --water-mid: #5b9dbf;
  --sand: #c4a882;
  --ink: #1a1a1a;
}

html,
body {
  cursor: none;
  font-family: 'Syne', sans-serif;
  color: var(--ink);
  background: var(--orange);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--cream);
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--cream);
  background: transparent;
  transition: width 0.22s ease, height 0.22s ease, border-width 0.22s ease;
}

.cursor-ring.is-hovering {
  width: 48px;
  height: 48px;
  border-width: 2px;
}

/* Nav */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--orange);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--sand);
}

.main-nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.main-nav a:not(.abandon-link):hover {
  opacity: 0.8;
}

.main-nav .abandon-link {
  display: inline-block;
  padding: 12px 16px;
  margin: -12px -16px;
  transform-origin: left center;
  transform: rotate(0deg);
}

.main-nav .abandon-link.slanted {
  opacity: 1;
  transform: rotate(12deg);
}

.nav-status-message {
  position: relative;
  z-index: 5;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgb(242 232 213 / 82%);
  text-align: center;
  margin-top: -8px;
  opacity: 0;
  transform: translateY(-30px);
  pointer-events: none;
}

.nav-status-message.show {
  animation: nav-status-pop 1.4s ease forwards;
}

/* Hero */
.hero-section {
  min-height: 100vh;
  background: var(--orange);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-logo {
  width: 500px;
  height: auto;
  position: relative;
  z-index: 14;
  transition: transform 0.35s ease-in-out;
  cursor: pointer;
}

.hero-logo:hover {
  transform: scale(1.12);
}

.hero-logo.hover-cooldown:hover {
  transform: scale(1);
}

.hero-logo.bursting {
  animation: logo-burst 0.95s forwards;
}

.logo-star {
  position: fixed;
  width: 38px;
  height: auto;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
  animation: star-shoot 1.2s cubic-bezier(0.19, 0.73, 0.29, 0.99) forwards;
}

.logo-role-burst {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  font-size: clamp(30px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d768;
  pointer-events: none;
  z-index: 8;
  white-space: nowrap;
  animation: role-drop-bounce 1.5s cubic-bezier(0.2, 0.75, 0.35, 1) forwards;
}

.hero-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.shipyard-anchor {
  margin-top: 80px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.shipyard-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--cream);
}

.anchor-icon {
  width: 48px;
  height: auto;
  animation: bob-anchor 3.8s ease-in-out infinite alternate;
}

.anchor-icon.dropping {
  animation: anchor-drop 1.1s ease-in forwards;
}

.anchor-icon.respawn {
  animation: anchor-respawn 0.7s ease-out forwards, bob-anchor 3.8s ease-in-out 0.7s infinite alternate;
}

/* Shipyard */
.shipyard-section {
  background: var(--water-light);
  padding: 80px 0 0;
}

.shipyard-header {
  text-align: center;
  padding: 0 48px;
}

.established {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgb(26 26 26 / 50%);
}

.shipyard-header h1 {
  margin-top: 10px;
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
}

.caption {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 400;
  color: rgb(26 26 26 / 60%);
  font-style: italic;
}

.water-area {
  position: relative;
  min-height: 220px;
  margin-top: 44px;
  overflow: hidden;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.water-area::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 168px;
  width: 10px;
  height: 10px;
  border: 2px solid rgb(242 232 213 / 75%);
  border-radius: 50%;
  transform: translateX(-50%) scale(0);
  opacity: 0;
}

.water-area.splashing::after {
  animation: splash-ring 0.72s ease-out;
}

.water-area::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 172px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgb(242 232 213 / 85%);
  transform: translateX(-50%) scale(0);
  opacity: 0;
}

.water-area.splashing::before {
  animation: splash-drop 0.58s ease-out;
}

.wave {
  position: absolute;
  left: 0;
  width: 200%;
  height: 220px;
}

.wave-back {
  bottom: 0;
  opacity: 0.6;
  animation: move-wave 12s linear infinite;
}

.wave-front {
  bottom: 0;
  opacity: 0.9;
  animation: move-wave 8s linear infinite;
}

.wave path {
  fill: var(--water-mid);
}

/* Footer */
.below-deck {
  background: var(--sand);
  padding: 60px 48px;
}

.below-deck-label {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgb(26 26 26 / 40%);
}

.below-deck-columns {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.footer-logo {
  width: 230px;
  height: auto;
  filter: brightness(0.9) sepia(0.1);
}

.footer-logo-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transform: translateX(18%);
}

.footer-credit {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: rgb(26 26 26 / 70%);
}

.contact-wrap h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-row {
  font-size: 13px;
  font-weight: 400;
  color: rgb(26 26 26 / 70%);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 0;
}

.contact-row a {
  display: inline-block;
  background-image: linear-gradient(currentcolor, currentcolor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1px;
  transition: background-size 0.28s ease;
}

.contact-row a:hover {
  background-size: 100% 1px;
}

/* Keyframes */
@keyframes bob-anchor {
  0% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(8px);
  }
}

@keyframes anchor-pulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(0) scale(1.2);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes logo-burst {
  0% {
    transform: scale(1);
  }
  48% {
    transform: scale(1.24);
  }
  70% {
    transform: scale(0.82);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes star-shoot {
  0% {
    transform: translate(0, 0) scale(0.7) rotate(0deg);
    opacity: 1;
  }
  72% {
    transform: translate(calc(var(--dx) * 0.72), calc(var(--dy) * 0.72 + 30px)) scale(1.2) rotate(calc(var(--rot) * 0.72));
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx), calc(var(--dy) + 95px)) scale(1.3) rotate(var(--rot));
    opacity: 0;
  }
}

@keyframes role-drop-bounce {
  0% {
    transform: translate(-50%, -10px) scale(0.9);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  72% {
    transform: translate(-50%, 170px);
    opacity: 1;
  }
  84% {
    transform: translate(-50%, 130px);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, 150px);
    opacity: 0;
  }
}

@keyframes anchor-drop {
  0% {
    transform: translateY(-8px) scale(1);
    opacity: 1;
  }
  90% {
    transform: translateY(425px) scale(0.9);
    opacity: 1;
  }
  100% {
    transform: translateY(460px) scale(0.83);
    opacity: 0;
  }
}

@keyframes anchor-respawn {
  0% {
    transform: translateY(-36px) scale(0.92);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes splash-ring {
  0% {
    transform: translateX(-50%) scale(0.2);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-50%) scale(5.5);
    opacity: 0;
  }
}

@keyframes splash-drop {
  0% {
    transform: translateX(-50%) translateY(0) scale(0.2);
    opacity: 0.9;
  }
  100% {
    transform: translateX(-50%) translateY(-16px) scale(1.2);
    opacity: 0;
  }
}

@keyframes nav-status-pop {
  0% {
    opacity: 0;
    transform: translateY(-30px);
  }
  25% {
    opacity: 1;
    transform: translateY(12px);
  }
  45% {
    opacity: 1;
    transform: translateY(12px) translateX(-1px);
  }
  55% {
    opacity: 1;
    transform: translateY(12px) translateX(1px);
  }
  65% {
    opacity: 1;
    transform: translateY(12px) translateX(-1px);
  }
  100% {
    opacity: 0;
    transform: translateY(12px) translateX(0);
  }
}

@keyframes move-wave {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
    padding: 20px 20px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .below-deck-columns {
    grid-template-columns: 1fr;
  }
}
