:root {
  --gold: #daa520;
  --gold-light: #f8dd87;
  --rain: #9fd6ff;
  --leaf: #0f6f5f;
  --leaf-bright: #2fb88f;
  --peacock: #126b78;
  --sky: #172f3d;
  --night: #07151c;
  --cream: #fff8df;
  --muted: rgba(255, 248, 223, 0.74);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-strong: rgba(255, 255, 255, 0.2);
  --stroke: rgba(255, 255, 255, 0.28);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --flute-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg transform='rotate(-18 24 24)'%3E%3Crect x='7' y='22' width='34' height='5' rx='2.5' fill='%23DAA520'/%3E%3Crect x='5' y='23' width='13' height='3' rx='1.5' fill='%23fff0a8'/%3E%3Ccircle cx='23' cy='24.5' r='1.3' fill='%23101f1b'/%3E%3Ccircle cx='29' cy='24.5' r='1.3' fill='%23101f1b'/%3E%3Cpath d='M39 11c6 6 3 14-3 18-5-5-3-14 3-18z' fill='%232fb88f'/%3E%3Cpath d='M40 16c3 3 2 7-1 9-3-3-2-7 1-9z' fill='%23126b78'/%3E%3Ccircle cx='40' cy='20' r='2.6' fill='%23DAA520'/%3E%3C/g%3E%3C/svg%3E") 7 25, auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #07151c;
  cursor: var(--flute-cursor);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--cream);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 15%, rgba(218, 165, 32, 0.18), transparent 26rem),
    radial-gradient(circle at 82% 5%, rgba(47, 184, 143, 0.22), transparent 22rem),
    linear-gradient(160deg, #102c38 0%, #07151c 50%, #0c241f 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: var(--flute-cursor);
}

button {
  cursor: var(--flute-cursor);
}

.rain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    repeating-linear-gradient(105deg, transparent 0 22px, rgba(159, 214, 255, 0.45) 23px 25px, transparent 26px 60px);
  animation: rainFall 1.8s linear infinite;
}

.mist {
  position: fixed;
  inset: auto -10% 0;
  z-index: -2;
  height: 38vh;
  pointer-events: none;
  background: linear-gradient(to top, rgba(183, 229, 207, 0.2), transparent);
  filter: blur(20px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(to bottom, rgba(7, 21, 28, 0.86), rgba(7, 21, 28, 0.35));
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.brand,
.main-nav,
.hero-actions,
.contact-links,
.journey-controls {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgba(218, 165, 32, 0.7);
  border-radius: 50%;
  color: #13201b;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 26px rgba(218, 165, 32, 0.45);
}

.main-nav {
  gap: clamp(0.65rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--gold-light);
}

.section-band {
  position: relative;
  width: 100%;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 5vw, 4rem);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 7rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(20rem, 1.08fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
  width: min(980px, 100%);
}

.glass-panel,
.project-tile {
  border: 1px solid var(--stroke);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(135%);
}

.hero-copy {
  align-self: center;
  padding: clamp(1.35rem, 4vw, 2.6rem);
  border-radius: 8px;
}

.hero-grid-single .hero-copy {
  text-align: center;
}

.hero-grid-single h1 {
  max-width: 13ch;
  margin: 0 auto;
}

.hero-grid-single .hero-copy > p:not(.eyebrow) {
  margin-left: auto;
  margin-right: auto;
}

.hero-grid-single .hero-actions {
  justify-content: center;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: 0.92;
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.05;
}

p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1.2rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.button,
.journey-controls button {
  min-height: 2.75rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-weight: 800;
  cursor: var(--flute-cursor);
  background: rgba(255, 255, 255, 0.12);
}

.button.primary,
.journey-controls button:hover {
  color: #13201b;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: rgba(218, 165, 32, 0.9);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 14rem;
  height: 4.5rem;
  border-radius: 999px;
  background: rgba(223, 239, 240, 0.22);
  filter: blur(1px);
  animation: drift 17s ease-in-out infinite;
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.cloud::before {
  width: 6rem;
  height: 6rem;
  left: 2rem;
  bottom: 1rem;
}

.cloud::after {
  width: 8rem;
  height: 8rem;
  right: 1rem;
  bottom: 0.2rem;
}

.cloud-one {
  top: 8rem;
  left: 6%;
}

.cloud-two {
  top: 12rem;
  right: 16%;
  animation-duration: 21s;
  transform: scale(0.82);
}

.cloud-three {
  top: 21rem;
  left: 56%;
  animation-duration: 24s;
  transform: scale(0.62);
}

.section-heading {
  width: min(900px, 100%);
  margin: 0 auto 2rem;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  max-width: 48rem;
  margin: 1rem auto 0;
}

.journey-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 8px;
}

.game-hud {
  display: grid;
  grid-template-columns: minmax(11rem, max-content) minmax(10rem, 1fr);
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--gold-light);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-track {
  height: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

#journeyProgress {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #80d9ba);
  box-shadow: 0 0 18px rgba(218, 165, 32, 0.7);
  transition: width 700ms ease;
}

.path-stage {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 12%, rgba(218, 165, 32, 0.24), transparent 12rem),
    radial-gradient(circle at 12% 22%, rgba(128, 217, 186, 0.18), transparent 10rem),
    linear-gradient(180deg, rgba(51, 111, 118, 0.38), rgba(8, 34, 35, 0.86));
}

.path-stage::before {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background:
    radial-gradient(ellipse at 30% 100%, rgba(47, 184, 143, 0.36), transparent 46%),
    radial-gradient(ellipse at 74% 100%, rgba(218, 165, 32, 0.14), transparent 46%),
    linear-gradient(to top, rgba(8, 54, 42, 0.88), transparent);
}

.stage-hills {
  position: absolute;
  inset: auto -6% 0;
  height: 44%;
  background:
    linear-gradient(138deg, transparent 0 18%, rgba(18, 84, 65, 0.78) 18% 48%, transparent 49%),
    linear-gradient(220deg, transparent 0 22%, rgba(15, 111, 95, 0.72) 22% 54%, transparent 55%);
  background-size: 55% 100%, 62% 92%;
  background-position: left bottom, right bottom;
  background-repeat: no-repeat;
}

.game-sky-label {
  position: absolute;
  right: 1rem;
  top: 1rem;
  z-index: 3;
  border: 1px solid rgba(218, 165, 32, 0.35);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: var(--gold-light);
  background: rgba(5, 24, 27, 0.34);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stage-cloud {
  position: absolute;
  width: 10rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(220, 241, 236, 0.2);
  filter: blur(1px);
  animation: drift 18s ease-in-out infinite;
}

.stage-cloud::before,
.stage-cloud::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  background: inherit;
}

.stage-cloud::before {
  width: 4rem;
  height: 4rem;
  left: 1.5rem;
  bottom: 0.8rem;
}

.stage-cloud::after {
  width: 5rem;
  height: 5rem;
  right: 1rem;
  bottom: 0.2rem;
}

.stage-cloud-one {
  top: 2rem;
  left: 8%;
}

.stage-cloud-two {
  top: 4rem;
  right: 9%;
  transform: scale(0.74);
  animation-duration: 24s;
}

.route-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#ridePath {
  fill: none;
  stroke: rgba(5, 18, 20, 0.48);
  stroke-width: 30;
  stroke-linecap: round;
}

.route-glow {
  fill: none;
  stroke: url("#pathGold");
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 16 18;
  animation: pathPulse 3s linear infinite;
}

.stop-dot {
  cursor: pointer;
}

.stop-dot circle {
  fill: rgba(255, 255, 255, 0.88);
  stroke: var(--gold);
  stroke-width: 6;
  filter: drop-shadow(0 0 14px rgba(218, 165, 32, 0.75));
  transition: transform 220ms ease;
}

.stop-dot:not(.active) circle {
  opacity: 0.78;
}

.stop-dot.active circle {
  fill: var(--gold);
  stroke: var(--gold-light);
  transform: scale(1.25);
}

.stop-dot text {
  fill: var(--cream);
  font-size: 25px;
  font-weight: 800;
  text-anchor: middle;
}

.rider {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  width: 6rem;
  height: 4.5rem;
  transform: translate(-50%, -50%);
  transition:
    left 900ms cubic-bezier(0.22, 1, 0.36, 1),
    top 900ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.rider::after {
  position: absolute;
  left: 0.2rem;
  top: 3.55rem;
  z-index: -1;
  width: 5.4rem;
  height: 1rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(5px);
  content: "";
}

body:not(.journey-started) .rider {
  animation: idleBounce 1.8s ease-in-out infinite;
}

.rider-head {
  position: absolute;
  left: 2.6rem;
  top: 0.45rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #ffd9b5;
}

.rider-body {
  position: absolute;
  left: 2.35rem;
  top: 1.28rem;
  width: 1.25rem;
  height: 1.55rem;
  border-radius: 999px 999px 0.3rem 0.3rem;
  background: linear-gradient(135deg, var(--gold), #2fb88f);
  transform: rotate(-14deg);
}

.bike-frame {
  position: absolute;
  left: 1.15rem;
  top: 2.35rem;
  width: 3.9rem;
  height: 1.4rem;
  border: 0.22rem solid var(--gold-light);
  border-top: 0;
  transform: skewX(-18deg);
}

.wheel {
  position: absolute;
  bottom: 0.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 0.22rem solid #dff8f2;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.15rem rgba(218, 165, 32, 0.35);
  animation: spin 0.7s linear infinite;
}

body:not(.journey-started) .wheel {
  animation-play-state: paused;
}

.wheel-left {
  left: 0.8rem;
}

.wheel-right {
  right: 0.6rem;
}

.stop-card {
  margin: 1rem auto 0;
  padding: clamp(1rem, 3vw, 1.7rem);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(5, 24, 27, 0.35);
}

body:not(.journey-started) .stop-card,
body:not(.journey-started) .journey-controls {
  opacity: 0.58;
}

.start-prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 8;
  width: min(25rem, calc(100% - 2rem));
  padding: 1.35rem;
  border-radius: 8px;
  text-align: center;
  transform: translate(-50%, -50%);
  transition: opacity 260ms ease, scale 260ms ease, visibility 260ms ease;
}

.start-prompt h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.start-prompt p:not(.eyebrow) {
  margin: 0.8rem 0 0;
}

.start-prompt.hidden {
  visibility: hidden;
  opacity: 0;
  scale: 0.96;
  pointer-events: none;
}

.prompt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.prompt-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stop-card p {
  margin: 0.9rem 0 0;
}

.stop-card ul,
.project-tile ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding-left: 1.15rem;
  color: rgba(255, 248, 223, 0.86);
  line-height: 1.6;
}

.journey-controls {
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.stop-tabs {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.stop-tab {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: var(--flute-cursor);
}

.stop-tab.active {
  color: #142018;
  background: var(--gold);
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.project-tile {
  min-height: 20rem;
  padding: 1.35rem;
  border-radius: 8px;
  transition: transform 220ms ease, background 220ms ease;
}

.project-tile:hover {
  transform: translateY(-6px);
  background:
    linear-gradient(145deg, rgba(218, 165, 32, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.1);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.pill,
.skill-pill {
  border: 1px solid rgba(218, 165, 32, 0.42);
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(218, 165, 32, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.38rem 0.58rem;
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 1.5rem;
  border-radius: 8px;
}

.skill-pill {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.95rem;
}

.contact-card {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  border-radius: 8px;
  text-align: center;
}

.contact-card p:not(.eyebrow) {
  max-width: 42rem;
  margin: 1rem auto 0;
}

.contact-links {
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.contact-links a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.contact-links a:hover {
  color: #13201b;
  background: var(--gold);
}

.site-footer {
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

@keyframes rainFall {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -80px 160px;
  }
}

@keyframes drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 2.4rem 0.5rem;
  }
}

@keyframes pathPulse {
  to {
    stroke-dashoffset: -68;
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes idleBounce {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -0.35rem;
  }
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .tile-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 12ch;
  }

  .path-stage {
    min-height: 17rem;
  }

  .game-hud {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 1rem;
  }

}

@media (max-width: 640px) {
  .main-nav {
    width: 100%;
    justify-content: space-between;
    font-size: 0.82rem;
  }

  .section-band {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .hero {
    padding-top: 8.5rem;
  }

  .journey-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .journey-controls button {
    width: 100%;
  }

  .stop-tabs {
    order: -1;
  }

  .rider {
    width: 4.8rem;
    height: 3.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
