*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #08273a;
  --ink-deep: #031928;
  --cream: #ffe7ad;
  --gold: #e6a338;
  --red: #b6381f;
  --sea: #0a4b66;
  --paper: #f2c979;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  background: var(--paper);
}

body {
  color: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.scene {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  --poster-width: min(100vw, calc(100dvh * 1.6));
  --poster-left: calc((100vw - var(--poster-width)) / 2);
  --horizon-y: 60%;
  --harbour-width: min(calc(var(--poster-width) * 0.46), 690px);
  --boat-width: clamp(120px, 14vw, 220px);
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 225, 131, 0.58), transparent 24%),
    linear-gradient(180deg, #e7b86a 0%, #d58b35 100%);
}

.scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 49;
  pointer-events: none;
  background: #051d2d;
}

.layer {
  position: absolute;
  display: block;
  user-select: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.bg-sky {
  inset: -9% -2% auto;
  width: 104%;
  height: 108%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  animation: skyBreathe 24s ease-in-out infinite alternate;
}

.sky-drift {
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 20%, rgba(255, 242, 202, 0.16), transparent 17%),
    radial-gradient(ellipse at 72% 24%, rgba(255, 235, 190, 0.14), transparent 20%),
    linear-gradient(90deg, transparent, rgba(255, 244, 205, 0.09), transparent);
  mix-blend-mode: screen;
  animation: cloudDrift 38s linear infinite alternate;
}

.sun-haze {
  left: 50%;
  top: 25%;
  width: min(48vw, 680px);
  height: clamp(56px, 8vw, 112px);
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 18% 62%, rgba(255, 240, 196, 0.56) 0 13%, transparent 14%),
    radial-gradient(ellipse at 31% 48%, rgba(255, 236, 188, 0.44) 0 17%, transparent 18%),
    radial-gradient(ellipse at 52% 56%, rgba(255, 232, 178, 0.42) 0 15%, transparent 16%),
    radial-gradient(ellipse at 72% 45%, rgba(255, 237, 192, 0.38) 0 17%, transparent 18%);
  mix-blend-mode: screen;
  opacity: 0.78;
  filter: blur(0.2px);
  transform: translateX(-50%);
  animation: sunCloudFloat 18s ease-in-out infinite alternate;
}

.water-base {
  left: -6%;
  bottom: 0;
  width: 112%;
  height: 49%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 4;
  opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.7) 38%, #000 64%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, transparent 18%, rgba(0, 0, 0, 0.7) 38%, #000 64%, #000 100%);
  animation: waterSway 16s ease-in-out infinite alternate;
}

.water-shimmer {
  left: 0;
  right: 0;
  bottom: 10%;
  height: 45%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.45;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 206, 80, 0.18) 47%, rgba(255, 237, 165, 0.34) 50%, rgba(255, 174, 48, 0.16) 53%, transparent 100%),
    repeating-linear-gradient(175deg, transparent 0 18px, rgba(255, 230, 150, 0.08) 20px 22px, transparent 24px 46px);
  mix-blend-mode: screen;
  filter: blur(0.4px);
  transform-origin: center bottom;
  animation: shimmer 5.8s ease-in-out infinite alternate;
}

.harbour {
  left: calc(var(--poster-left) - var(--poster-width) * 0.14);
  top: clamp(24%, calc(var(--horizon-y) - var(--harbour-width) * 0.47 + 12px), 44%);
  width: var(--harbour-width);
  z-index: 14;
  filter: drop-shadow(0 16px 16px rgba(1, 15, 26, 0.22));
}

.lamp-wrap {
  left: 30.5%;
  top: 18%;
  width: clamp(34px, 3.6vw, 68px);
  z-index: 10;
  transform-origin: center bottom;
  animation: lampSway 5s ease-in-out infinite;
}

.lamp-wrap::after {
  content: "";
  position: absolute;
  left: 31%;
  top: 8%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 204, 103, 0.48);
  filter: blur(12px);
  animation: lanternGlow 2.8s ease-in-out infinite;
}

.lamp {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.lamp-wrap {
  display: none;
}

.bird {
  z-index: 15;
  opacity: 0.92;
  filter: drop-shadow(0 5px 4px rgba(1, 15, 26, 0.13));
  transform-origin: center;
}

.bird-1 {
  top: 15%;
  left: -26vw;
  width: clamp(44px, 8vw, 130px);
  animation: birdFlyOne 34s linear infinite, birdFlap 2.1s ease-in-out infinite;
}

.bird-2 {
  top: 20%;
  left: -34vw;
  width: clamp(36px, 6.5vw, 115px);
  animation: birdFlyTwo 46s linear infinite, birdFlap 2.35s ease-in-out infinite;
  animation-delay: 9s, 0.35s;
}

.bird-3 {
  top: 14%;
  right: 14%;
  width: clamp(34px, 5.5vw, 96px);
  animation: birdFloat 8s ease-in-out infinite, birdFlap 2s ease-in-out infinite;
}

.bird-4 {
  top: 30%;
  right: 25%;
  width: clamp(30px, 4vw, 76px);
  opacity: 0.78;
  animation: birdFloat 9.5s ease-in-out infinite reverse, birdFlap 2.2s ease-in-out infinite;
}

.boat {
  top: clamp(34%, calc(var(--horizon-y) - var(--boat-width) * 1.22 + 6px), 46%);
  width: var(--boat-width);
  z-index: 12;
  filter: drop-shadow(0 14px 12px rgba(1, 15, 26, 0.22));
  animation: boatSail 58s ease-in-out infinite, boatBob 4.6s ease-in-out infinite;
}

.wave {
  pointer-events: none;
  filter: drop-shadow(0 -6px 5px rgba(0, 16, 28, 0.16));
}

.wave-mid {
  left: -7%;
  bottom: 18%;
  width: 114%;
  z-index: 7;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 24%, #000 52%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.45) 24%, #000 52%, #000 100%);
  animation: waveSlideMid 16s ease-in-out infinite alternate;
}

.logo {
  left: 50%;
  top: 58.4%;
  width: min(calc(var(--poster-width) * 0.64), 940px);
  z-index: 26;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter:
    drop-shadow(0 10px 0 rgba(1, 22, 35, 0.2))
    drop-shadow(0 18px 18px rgba(1, 15, 26, 0.28));
}

.instrument {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.instrument img {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 12px 10px rgba(1, 15, 26, 0.22));
}

.instrument:focus-visible,
.beer-wrap:focus-visible,
.social:focus-visible,
.sound-toggle:focus-visible,
.seo-content a:focus-visible {
  outline: 3px solid rgba(255, 236, 177, 0.9);
  outline-offset: 5px;
}

.accordion {
  left: calc(var(--poster-left) + var(--poster-width) * 0.255);
  bottom: 5.6%;
  width: min(calc(var(--poster-width) * 0.3), 455px);
  aspect-ratio: 1351 / 930;
  height: auto;
  z-index: 18;
  transform-origin: center bottom;
}

.accordion-complete {
  left: 0;
  bottom: 0;
  width: 100%;
  z-index: 4;
  transform-origin: center;
}

.note {
  width: clamp(30px, 4vw, 58px);
  opacity: 0;
  z-index: 12;
}

.note-a {
  left: 9%;
  top: 8%;
}

.note-b {
  right: 14%;
  top: 0%;
}

.accordion:hover .accordion-complete,
.accordion:focus-visible .accordion-complete,
.accordion.is-active .accordion-complete {
  animation: accordionPlay 0.68s ease-in-out infinite;
}

.accordion:hover .note,
.accordion:focus-visible .note,
.accordion.is-active .note,
.guitar:hover .note,
.guitar:focus-visible .note,
.guitar.is-active .note {
  animation: noteFloat 1.35s ease-out infinite;
}

.guitar {
  right: calc(var(--poster-left) + var(--poster-width) * 0.155);
  bottom: 5.7%;
  width: min(calc(var(--poster-width) * 0.2), 310px);
  aspect-ratio: 660 / 1062;
  height: auto;
  z-index: 19;
  transform-origin: center bottom;
}

.guitar-complete {
  right: 0;
  bottom: 0;
  height: 100%;
  z-index: 4;
  transform-origin: 50% 88%;
}

.note-c {
  left: 8%;
  top: 7%;
}

.note-d {
  right: 8%;
  top: 12%;
}

.guitar:hover .guitar-complete,
.guitar:focus-visible .guitar-complete,
.guitar.is-active .guitar-complete {
  animation: guitarPlay 0.7s ease-in-out infinite;
}

.beer-wrap {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  left: 56%;
  bottom: 4.6%;
  width: min(calc(var(--poster-width) * 0.12), 185px);
  z-index: 20;
  animation: beerBob 5.4s ease-in-out infinite;
}

.beer {
  position: relative;
  width: 100%;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 12px 9px rgba(1, 15, 26, 0.22));
}

.bubble {
  position: absolute;
  left: 50%;
  bottom: 76%;
  width: 9px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 235, 179, 0.82);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  animation: beerBubble 3.2s ease-in-out infinite;
}

.bubble-1 {
  left: 38%;
}

.bubble-2 {
  left: 55%;
  animation-delay: 0.8s;
}

.bubble-3 {
  left: 68%;
  width: 7px;
  animation-delay: 1.5s;
}

.social {
  z-index: 30;
  pointer-events: auto;
  aspect-ratio: 373 / 150;
  overflow: visible;
  transition: transform 180ms ease, filter 180ms ease;
  transform-origin: center top;
}

.social img {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 8px rgba(1, 15, 26, 0.24));
  transform-origin: center top;
  animation: signSway 4.8s ease-in-out infinite;
}

.social:hover,
.social:focus-visible {
  transform: scale(1.055) rotate(-1deg);
  filter: drop-shadow(0 0 14px rgba(255, 225, 150, 0.9));
}

.social-facebook {
  left: calc(var(--poster-left) + var(--poster-width) * 0.052);
  bottom: 26%;
  width: min(calc(var(--poster-width) * 0.132), 205px);
}

.social-instagram {
  left: calc(var(--poster-left) + var(--poster-width) * 0.052);
  bottom: 17.6%;
  width: min(calc(var(--poster-width) * 0.132), 205px);
}

.social-instagram img {
  animation-delay: 0.6s;
}

.sound-toggle {
  right: 1.6%;
  bottom: 2%;
  width: 36px;
  height: 36px;
  z-index: 45;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 224, 160, 0.72);
  border-radius: 50%;
  color: #ffeab8;
  background: rgba(4, 28, 45, 0.72);
  opacity: 0.72;
  box-shadow: 0 8px 16px rgba(1, 15, 26, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.sound-toggle:hover {
  transform: scale(1.06);
  background: rgba(6, 47, 70, 0.82);
  opacity: 1;
}

.sound-toggle svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-toggle[aria-pressed="false"] {
  opacity: 0.66;
}

.sound-toggle[aria-pressed="false"] .sound-wave {
  display: none;
}

.sound-toggle[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background: currentColor;
  transform: rotate(-42deg);
}

.wave-front {
  left: -7%;
  bottom: -2.8%;
  width: 114%;
  height: 31%;
  object-fit: fill;
  z-index: 40;
  animation: waveSlideFront 11s ease-in-out infinite alternate;
}

.rope-rail,
.rope {
  display: none;
}

.rope-rail {
  left: -2%;
  right: -2%;
  bottom: 1.1%;
  height: clamp(18px, 2.1vw, 30px);
  z-index: 36;
  border-top: 3px solid rgba(255, 199, 92, 0.9);
  border-bottom: 3px solid rgba(6, 35, 49, 0.85);
  border-radius: 999px;
  background:
    repeating-linear-gradient(58deg, #d89125 0 10px, #6b3b14 10px 15px, #f0b24a 15px 24px, #4c2c14 24px 30px);
  box-shadow: 0 -5px 12px rgba(1, 15, 26, 0.18);
}

.rope {
  left: 50%;
  bottom: 0.3%;
  width: clamp(210px, 26vw, 420px);
  z-index: 37;
  transform: translateX(-50%);
  filter: drop-shadow(0 5px 5px rgba(1, 15, 26, 0.25));
}

.texture-overlay {
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background:
    radial-gradient(circle at 50% 45%, transparent 45%, rgba(3, 17, 25, 0.58) 100%),
    repeating-radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px);
}

.seo-content {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes skyBreathe {
  from {
    transform: scale(1) translateY(0);
  }
  to {
    transform: scale(1.025) translateY(-0.7%);
  }
}

@keyframes cloudDrift {
  from {
    transform: translateX(-2%);
  }
  to {
    transform: translateX(2%);
  }
}

@keyframes sunCloudFloat {
  from {
    opacity: 0.62;
    transform: translateX(-53%) translateY(0) scaleX(1);
  }
  to {
    opacity: 0.86;
    transform: translateX(-46%) translateY(-4px) scaleX(1.05);
  }
}

@keyframes waterSway {
  from {
    transform: translateX(-0.8%) translateY(0);
  }
  to {
    transform: translateX(0.8%) translateY(4px);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-1.6%) scaleY(0.98);
    opacity: 0.36;
  }
  to {
    transform: translateX(1.6%) scaleY(1.03);
    opacity: 0.55;
  }
}

@keyframes lampSway {
  0%,
  100% {
    transform: rotate(-0.8deg);
  }
  50% {
    transform: rotate(0.9deg);
  }
}

@keyframes lanternGlow {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.78;
    transform: scale(1.12);
  }
}

@keyframes birdFlyOne {
  0% {
    transform: translateX(0) translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateX(75vw) translateY(-14px) rotate(1.5deg);
  }
  100% {
    transform: translateX(140vw) translateY(6px) rotate(-2deg);
  }
}

@keyframes birdFlyTwo {
  0% {
    transform: translateX(0) translateY(0) rotate(2deg);
  }
  50% {
    transform: translateX(78vw) translateY(12px) rotate(-2deg);
  }
  100% {
    transform: translateX(148vw) translateY(-5px) rotate(1deg);
  }
}

@keyframes birdFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(1.7deg);
  }
}

@keyframes birdFlap {
  0%,
  100% {
    scale: 1 1;
  }
  50% {
    scale: 1.035 0.92;
  }
}

@keyframes boatSail {
  0%,
  100% {
    left: 72%;
  }
  50% {
    left: 62%;
  }
}

@keyframes boatBob {
  0%,
  100% {
    transform: translateY(0) rotate(-1.2deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.1deg);
  }
}

@keyframes waveSlideMid {
  from {
    transform: translateX(-1.6%) translateY(0);
  }
  to {
    transform: translateX(1.6%) translateY(4px);
  }
}

@keyframes waveSlideFront {
  from {
    transform: translateX(1.4%) translateY(0);
  }
  to {
    transform: translateX(-1.4%) translateY(7px);
  }
}

@keyframes accordionPlay {
  0%,
  100% {
    transform: scaleX(0.985) translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: scaleX(1.035) translateY(-2px) rotate(0.6deg);
  }
}

@keyframes noteFloat {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.78) rotate(-4deg);
  }
  24% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-44px) scale(1.08) rotate(6deg);
  }
}

@keyframes guitarPlay {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-1.8deg) translateY(-2px);
  }
}

@keyframes beerBob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-0.6deg);
  }
  50% {
    transform: translateX(-50%) translateY(-5px) rotate(0.7deg);
  }
}

@keyframes beerBubble {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-42px) scale(1.15);
  }
}

.beer-wrap:hover .beer,
.beer-wrap:focus-visible .beer,
.beer-wrap.is-active .beer {
  animation: beerToast 0.7s ease-in-out infinite;
}

@keyframes signSway {
  0%,
  100% {
    rotate: -0.8deg;
  }
  50% {
    rotate: 0.8deg;
  }
}

@keyframes beerToast {
  0%,
  100% {
    transform: rotate(-0.5deg) translateY(0);
  }
  50% {
    transform: rotate(1deg) translateY(-3px);
  }
}

@media (max-width: 980px) {
  .scene {
    min-height: 620px;
  }
}

@media (orientation: portrait), (max-width: 768px) {
  .scene {
    min-height: 640px;
    --poster-width: min(100vw, calc(100dvh * 0.46));
    --poster-left: calc((100vw - var(--poster-width)) / 2);
    --horizon-y: 55%;
    --harbour-width: clamp(340px, 92vw, 540px);
    --boat-width: clamp(120px, 28vw, 220px);
  }

  .bg-sky {
    height: 104%;
    object-position: center top;
  }

  .sky-drift {
    opacity: 0.7;
  }

  .sun-haze {
    left: 50%;
    top: 22%;
    width: 82vw;
    height: 72px;
  }

  .water-base {
    bottom: 0;
    height: 55%;
  }

  .water-shimmer {
    bottom: 14%;
    height: 43%;
  }

  .harbour {
    left: max(-38%, -260px);
    top: clamp(38%, calc(var(--horizon-y) - var(--harbour-width) * 0.47 + 18px), 46%);
    width: var(--harbour-width);
  }

  .bird-1 {
    width: 18vw;
  }

  .bird-2 {
    width: 15vw;
  }

  .bird-3 {
    top: 18%;
    right: 8%;
    width: 15vw;
  }

  .bird-4 {
    display: none;
  }

  .boat {
    top: clamp(40%, calc(var(--horizon-y) - var(--boat-width) * 1.22 + 8px), 48%);
    width: var(--boat-width);
    animation-duration: 36s, 4.6s;
  }

  .wave-mid {
    bottom: 28%;
    width: 140%;
    left: -20%;
  }

  .logo {
    top: 34%;
    width: clamp(330px, 88vw, 560px);
  }

  .accordion {
    left: -1%;
    bottom: 18.5%;
    width: clamp(210px, 54vw, 360px);
    aspect-ratio: 1351 / 930;
    height: auto;
  }

  .guitar {
    right: 2%;
    bottom: 17.4%;
    width: clamp(200px, 51vw, 330px);
    aspect-ratio: 660 / 1062;
    height: auto;
  }

  .beer-wrap {
    left: 55%;
    bottom: 9.8%;
    width: clamp(92px, 25vw, 150px);
  }

  .social-facebook {
    left: 4%;
    bottom: 16%;
    width: clamp(150px, 39vw, 230px);
  }

  .social-instagram {
    left: 4%;
    right: auto;
    bottom: 8.6%;
    width: clamp(150px, 39vw, 230px);
  }

  .wave-front {
    width: 155%;
    left: -28%;
    bottom: -2.2%;
    height: 27%;
  }

  .sound-toggle {
    right: 3.2%;
    top: 2.7%;
    bottom: auto;
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 460px) {
  .scene {
    min-height: 620px;
  }

  .harbour {
    width: 86vw;
  }

  .boat {
    width: 31vw;
  }

  .logo {
    top: 34%;
    width: 90vw;
  }

  .accordion {
    left: -2%;
    bottom: 18.4%;
    width: 56vw;
  }

  .guitar {
    right: 3%;
    bottom: 17.4%;
    width: 54vw;
  }

  .beer-wrap {
    left: 55%;
    bottom: 9.8%;
    width: 25vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
