
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600;1,700&display=swap');

:root {
  --gold: #ffc83d;
  --cyan: #37d9ff;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: #070b17;
  color: white;
  font-family: 'DM Sans', Arial, sans-serif;
}

body {
  overflow: hidden;
}

.scene {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 3vh, 34px) clamp(16px, 4vw, 56px) 20px;
}

/* BACKGROUND ARTWORK */

.backdrop, .shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.backdrop {
  z-index: 0;
  background-image: url('./assets/installation-background.png');
  background-position: center 54%;
  background-size: cover;
  background-repeat: no-repeat;
  animation: ambience 24s ease-in-out infinite alternate;
}

.shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,7,19,.58), rgba(3,7,19,.23) 45%, rgba(3,7,19,.2)),
    radial-gradient(ellipse at 50% 24%, rgba(4,8,22,.87), rgba(4,8,22,.45) 46%, transparent 80%);
}

/* KEEP CONTENT ABOVE THE BACKGROUND */

.masthead,
.welcome,
.destinations {
  position: relative;
  z-index: 2;
}

/* MASTHEAD */

.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  text-align: center;
  opacity: 0;
  animation: fade .8s .2s forwards;
}

.masthead > span {
  height: 1px;
  width: 65px;
  background: #ffffffa8;
}

.masthead b, .brand-block h2 {
  font-size: clamp(17px, 2.2vw, 29px);
  letter-spacing: .27em;
  white-space: nowrap;
}

.brand-block h2 {
  margin: 0;
}

.brand-block p {
  margin-top: 7px;
  font-size: clamp(9px, 1.1vw, 13px);
  letter-spacing: .38em;
  color: #ffffffd0;
}

/* WELCOME SECTION */

.welcome {
  width: min(760px, 94vw);
  text-align: center;
  margin-top: clamp(14px, 2vh, 24px);
}

.welcome h1 {
  margin: 0;
  font: italic 700 clamp(54px, 8vw, 100px)/1.02 'Playfair Display', Georgia, serif;
  text-shadow: 0 4px 26px #0009;
  opacity: 0;
  transform: translateY(38px);
  animation: rise 1s .55s forwards;
}

.gold-line {
  width: min(310px, 55vw);
  height: 2px;
  margin: 12px auto 17px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 15px var(--gold);
  opacity: 0;
  animation: fade .7s 1.25s forwards;
}

.intro {
  opacity: 0;
  transform: translateY(16px);
  animation: intro .9s 1.5s forwards;
}

.intro p {
  margin: 8px 0;
  font-size: clamp(13px, 1.45vw, 18px);
  line-height: 1.42;
  text-shadow: 0 2px 12px #000;
}

.intro .lead {
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 22px);
  margin-bottom: 12px;
}

.hop {
  color: var(--gold);
  font: italic 700 clamp(25px, 3vw, 38px)/1.1 'Playfair Display', Georgia, serif;
  margin: 8px 0 2px !important;
  text-shadow: 0 0 18px #ffb71e7a;
}

.motto {
  color: #ffd45e;
  font: italic 700 clamp(17px, 2vw, 25px)/1.2 'Playfair Display', Georgia, serif;
  margin-top: 7px !important;
}

/* PLATFORM LINKS */

.destinations {
  width: min(1120px, 100%);
  margin: auto auto 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 3vw, 38px);
  align-items: end;
}

.destination {
  --glow: var(--cyan);
  color: white;
  text-decoration: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 10px 7px 13px;
  border-radius: 18px;
  background: linear-gradient(180deg, #050a1b14, #050a1b80);
  text-shadow: 0 2px 9px #000;
  opacity: 0;
  transform: translateY(28px) scale(.96);
  animation: figure .85s forwards;
  transition: transform .25s, background .25s, border-color .25s;
}

.destination:nth-child(1) {
  animation-delay: 2.15s;
}

.destination:nth-child(2) {
  animation-delay: 2.45s;
  --glow: #ff4267;
}

.destination:nth-child(3) {
  animation-delay: 2.75s;
  --glow: #ff59d1;
}

.destination:nth-child(4) {
  animation-delay: 3.05s;
  --glow: #36baff;
}

/* CHARACTER-BASED POSITIONING */

@media (min-width: 701px) {
  /* Website: towards the standing character */
  .destination:nth-child(1) {
    position: relative;
    left: -75px;
  }

  /* YouTube: towards the seated character */
  .destination:nth-child(2) {
    position: relative;
    left: -65px;
  }

  /* Instagram: slight left adjustment */
  .destination:nth-child(3) {
    position: relative;
    left: -12px;
  }
  /* LinkedIn remains unchanged */
}

.destination:hover,
.destination:focus-visible {
  transform: translateY(-8px) scale(1.035);
  background: #050a1bbd;
  outline: 1px solid var(--glow);
  box-shadow: 0 0 28px #37d9ff55;
}

.platform-icon {
  width: clamp(48px, 6vw, 76px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid var(--glow);
  border-radius: 50%;
  color: white;
  box-shadow: 0 0 10px var(--glow), inset 0 0 13px #37d9ff45, 0 0 28px #37d9ff55;
  background: #040a1d6b;
  margin-bottom: 8px;
}

.platform-icon svg {
  width: 66%;
  height: 66%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-icon svg .solid {
  fill: currentColor;
  stroke: none;
}

.linkedin-mark {
  font: 700 clamp(25px, 3vw, 38px)/1 Arial;
  letter-spacing: -.08em;
}

.destination strong {
  font-size: clamp(14px, 1.5vw, 19px);
}

.destination small {
  margin-top: 5px;
  max-width: 160px;
  font-size: clamp(11px, 1.1vw, 14px);
  line-height: 1.3;
  color: #fffffff0;
}

/* REPLAY BUTTON */

.replay {
  position: absolute;
  z-index: 2;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #ffffffe8;
  cursor: pointer;
  font: 600 10px 'DM Sans';
  letter-spacing: .32em;
  padding: 8px 14px;
  opacity: 0;
  animation: fade .7s 3.6s forwards;
}

.replay:hover {
  color: var(--gold);
}

/* ANIMATIONS */

@keyframes fade {
  to { opacity: 1; }
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes intro {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes figure {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ambience {
  to { transform: scale(1.06) translateY(-.4%); }
}

/* MOBILE LAYOUT */

@media (max-width: 700px) {
  body {
    overflow: auto;
  }

  .scene {
    padding: 18px 14px 58px;
  }

  .backdrop {
    background-position: 52% center;
  }

  .masthead {
    gap: 10px;
  }

  .masthead > span {
    width: 25px;
  }

  .brand-block h2 {
    letter-spacing: .16em;
    font-size: clamp(15px, 4vw, 21px);
  }

  .brand-block p {
    letter-spacing: .24em;
    font-size: 9px;
  }

  .welcome {
    margin-top: 25px;
  }

  .welcome h1 {
    font-size: clamp(54px, 15vw, 76px);
  }

  .intro p {
    font-size: 14px;
  }

  .intro .lead {
    font-size: 16px;
  }

  .motto {
    font-size: 18px;
  }

  .destinations {
    margin: 34px auto 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .destination {
    min-height: 145px;
    padding: 12px 8px;
    background: #050a1b70;
    border: 1px solid #ffffff20;
  }

  .platform-icon {
    width: 54px;
  }

  .destination strong {
    font-size: 16px;
  }

  .destination small {
    font-size: 12px;
  }

  .replay {
    bottom: 8px;
  }
}

/* ACCESSIBILITY: REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
  }

  .masthead, .welcome h1, .gold-line, .intro,
  .destination, .replay {
    opacity: 1 !important;
    transform: none !important;
  }
}
