@import url('/fonts.css');

:root {
  --ink: #0a0b0e;
  --cream: #eee9bc;
  --orange: #eb4400;
  --orange-light: #ff6a26;
  --muted: #c2bfaa;
  --line: rgba(242, 230, 189, 0.14);
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --nunito: 'Nunito Sans', sans-serif;
  --reveal: 0;
  --hint: 1;
  --glow-x: 0px;
  --glow-y: 0px;
  color-scheme: dark;
  font-family: var(--sans);
  font-size: 16px;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}

::selection {
  background: var(--orange);
  color: #000;
}

html {
  scrollbar-color: #555 #0a0b0e;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-weight: 400;
}

em {
  font-style: italic;
}

[hidden] {
  display: none !important;
}

/* Accessibility skip */
.skip {
  position: fixed;
  top: -80px;
  left: 24px;
  padding: 12px 20px;
  background: var(--cream);
  color: #000;
  z-index: 100;
  font-weight: 600;
  border-radius: 6px;
  transition: top 0.2s;
}

.skip:focus {
  top: 20px;
}

/* Scroll track for homepage animation */
.scroll-track {
  height: 320svh;
}

/* Stage container */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #07040e;
  box-shadow: inset 0 0 120px rgba(5, 3, 10, 0.65), inset 0 0 45px rgba(5, 3, 10, 0.45);
}

.stage::before,
.stage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Subtle diffuse anti-reflective matte bloom */
.stage::before {
  z-index: 7;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 245, 225, 0.065) 0%, transparent 64%),
    radial-gradient(circle at 50% 50%, transparent 35%, rgba(7, 4, 14, 0.28) 100%),
    linear-gradient(180deg, rgba(20, 15, 26, 0.05), rgba(236, 186, 118, 0.04));
  mix-blend-mode: screen;
}

/* Tactile micro-fine matte paper/anti-glare tooth texture */
.stage::after {
  z-index: 8;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='matteGrain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0 0.92  0 0 0 0.85 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23matteGrain)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

.scene-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  pointer-events: none;
}

/* Cinematic Scene Canvas with Filmic Matte Finish */
.scene-poster {
  z-index: 0;
  display: block;
  filter: contrast(0.94) saturate(0.93) brightness(1.025);
}

.scene-canvas {
  z-index: 1;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: opacity 180ms ease-out;
  filter: contrast(0.94) saturate(0.93) brightness(1.025);
}

/* Surface Matte Finish Diffuse Tone */
.stage-matte-finish {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(255, 248, 235, 0.02) 0%, rgba(10, 8, 14, 0.12) 100%),
    linear-gradient(180deg, rgba(20, 15, 28, 0.06) 0%, transparent 25%, transparent 75%, rgba(8, 5, 14, 0.2) 100%);
  mix-blend-mode: multiply;
}

.scene-canvas.is-ready {
  opacity: 1;
}

.ripple-canvas {
  z-index: 3;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}

.stage.ripple-active .ripple-canvas {
  opacity: 1;
}

/* Ambient Glowing Particles & Fireflies */
.dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
  z-index: 3;
}

#fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.85;
  z-index: 4;
}

.firefly {
  position: absolute;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 20%, #ffbb44 65%, rgba(235, 68, 0, 0) 100%);
  box-shadow: 0 0 8px 2px rgba(255, 195, 75, 0.85),
              0 0 18px 5px rgba(235, 68, 0, 0.4);
  pointer-events: none;
  animation: float-spark 8s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.firefly:nth-child(2n) {
  width: 2.5px;
  height: 2.5px;
  background: radial-gradient(circle, #fffaf0 25%, #ffd275 70%, rgba(255, 116, 53, 0) 100%);
  box-shadow: 0 0 6px 2px rgba(255, 205, 90, 0.8),
              0 0 14px 4px rgba(255, 130, 45, 0.45);
  animation-duration: 10.5s;
}

.firefly:nth-child(3n) {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 10px 3px rgba(255, 185, 60, 0.9),
              0 0 22px 7px rgba(235, 68, 0, 0.35);
  animation-duration: 13s;
}

@keyframes float-spark {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0.25;
  }
  45% {
    opacity: 0.95;
    transform: translate3d(16px, -40px, 0) scale(1.15);
  }
  80% {
    opacity: 0.75;
    transform: translate3d(-12px, -85px, 0) scale(0.9);
  }
  100% {
    transform: translate3d(20px, -135px, 0) scale(0.5);
    opacity: 0.15;
  }
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 80px;
  padding: 0 max(24px, 3.5%);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-header {
  opacity: var(--reveal);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s;
}

.home-header.available {
  visibility: visible;
  pointer-events: auto;
}

.wordmark {
  font-family: var(--serif);
  color: #fff0bd;
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.32);
}

.wordmark-lettering {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.wordmark-lettering i {
  width: 0.28em;
}

.wordmark-lettering span {
  display: inline-block;
  transform-origin: 50% 80%;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.wordmark-lettering span:nth-of-type(1) { transform: translateY(0.04em) rotate(-3deg); }
.wordmark-lettering span:nth-of-type(2) { transform: translateY(-0.03em) rotate(2deg); }
.wordmark-lettering span:nth-of-type(3) { transform: translateY(0.02em) rotate(-1deg); }
.wordmark-lettering span:nth-of-type(4) { transform: translateY(-0.05em) rotate(3deg); }
.wordmark-lettering span:nth-of-type(5) { transform: translateY(0.04em) rotate(-2deg); }
.wordmark-lettering span:nth-of-type(6) { transform: translateY(-0.01em) rotate(1deg); }
.wordmark-lettering span:nth-of-type(7) { transform: translateY(0.02em) rotate(-2deg); }
.wordmark-lettering span:nth-of-type(8) { transform: translateY(-0.04em) rotate(2deg); }
.wordmark-lettering span:nth-of-type(9) { transform: translateY(0.03em) rotate(-1deg); }
.wordmark-lettering span:nth-of-type(10) { transform: translateY(-0.02em) rotate(3deg); }
.wordmark-lettering span:nth-of-type(11) { transform: translateY(0.04em) rotate(-2deg); }

.wordmark:hover .wordmark-lettering span:nth-of-type(odd) {
  transform: translateY(-0.07em) rotate(2deg);
}

.wordmark:hover .wordmark-lettering span:nth-of-type(even) {
  transform: translateY(0.05em) rotate(-2deg);
}

.compass-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(16, 17, 15, 0.55);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 230, 189, 0.12);
  color: var(--cream);
  font-family: var(--nunito);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.compass-btn:hover {
  background: rgba(32, 33, 31, 0.85);
  border-color: rgba(242, 230, 189, 0.28);
}

.compass-icon {
  stroke: var(--cream);
  transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.compass-btn:hover .compass-icon {
  transform: rotate(360deg);
}

/* Mountain Trail SVG */
.trail-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: var(--reveal);
  visibility: hidden;
  transition: opacity 0.35s;
  z-index: 15;
}

.trail-container.available {
  visibility: visible;
}

.mountain-trail {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trail-line {
  stroke-dashoffset: 0;
  animation: trailPulse 4s ease-in-out infinite alternate;
}

@keyframes trailPulse {
  0% { stroke-opacity: 0.7; }
  100% { stroke-opacity: 1; }
}

/* Waypoints along mountain trail */
.waypoint {
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

.hand-star {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.hand-star path {
  fill: none;
  stroke: #f2e6bd;
  transition: stroke 0.3s ease, filter 0.3s ease;
}

.hand-star.picked path,
.waypoint:hover path,
.waypoint.active path {
  stroke: #ff7435;
}

.star-spin {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: 14s linear infinite starSpin;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.waypoint:hover .star-spin,
.waypoint.active .star-spin {
  animation-duration: 4s;
}

.waypoint:hover .hand-star,
.waypoint.active .hand-star {
  filter: drop-shadow(0 0 10px rgba(255, 116, 53, 0.85));
}

@keyframes starSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Glowing Trail Cubes */
.wp-cube {
  fill: #f2e6bd;
  opacity: 0.85;
  transition: fill 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.waypoint:hover .wp-cube,
.waypoint.active .wp-cube {
  fill: var(--orange);
  opacity: 1;
  transform: scale(1.4) rotate(45deg);
  filter: drop-shadow(0 0 8px rgba(255, 116, 53, 0.9));
}

.wp-ping {
  fill: none;
  stroke: #ff7435;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.waypoint:hover .wp-ping,
.waypoint.active .wp-ping {
  animation: pingPulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingPulse {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Frosted Glass Tooltip Bubbles Floating Beside Waypoints */
.waypoint-bubbles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
}

.waypoint-bubble {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px 8px 14px;
  border-radius: 9999px;
  background: rgba(24, 16, 30, 0.55);
  border: 1.14px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(26px) saturate(180%);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  font-family: var(--nunito);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-decoration: none;
  pointer-events: none;
  visibility: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s, background 0.2s, visibility 0.25s;
  white-space: nowrap;
  user-select: none;
}

.waypoint-bubble::after {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.waypoint-bubble.is-active,
.waypoint-bubble.is-hovered {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
  border-color: rgba(255, 116, 53, 0.65);
  background: rgba(24, 16, 30, 0.72);
}
  background: rgba(24, 16, 30, 0.72);
}

.waypoint-bubble:hover {
  border-color: var(--orange);
  box-shadow: 0 10px 32px rgba(235, 68, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.bubble-arrow {
  display: inline-block;
  font-size: 12px;
  color: var(--cream);
  opacity: 0.8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.waypoint-bubble:hover .bubble-arrow {
  color: var(--orange);
  transform: translate(2px, -2px);
}

.point-card.is-updating .card-content {
  opacity: 0;
  transform: translateY(6px);
}

.point-card .card-content {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

/* Left Hero Copy */
.intro {
  position: absolute;
  left: max(24px, 4%);
  top: 24%;
  max-width: 52%;
  opacity: var(--reveal);
  transform: translateY(calc((1 - var(--reveal)) * 32px));
  visibility: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 20;
}

.intro.available {
  visibility: visible;
}

.intro h1 {
  font-family: var(--serif);
  font-size: clamp(3.8rem, 6.8vw, 6.5rem);
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--cream);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
}

.intro h1 em {
  white-space: nowrap;
  font-style: italic;
  color: #fff6da;
}

.intro-sub {
  font-family: var(--nunito);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 22px;
  max-width: 48ch;
}

.intro-cta {
  margin-top: 36px;
}

.button.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 13px 24px;
  border-radius: 8px;
  background: var(--orange);
  color: #000;
  font-family: var(--nunito);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  min-height: 50px;
  box-shadow: 0 4px 20px rgba(235, 68, 0, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.button.primary-btn:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(235, 68, 0, 0.5);
}

.btn-arrow {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.25s;
}

.button.primary-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}

/* Floating Work Card (#pointCard) */
.point-card {
  position: absolute;
  right: max(24px, 3.5%);
  bottom: 7%;
  width: 34%;
  min-width: 360px;
  max-width: 470px;
  padding: 28px 32px 24px;
  border: 1.2px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(22, 23, 24, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: var(--reveal);
  visibility: hidden;
  transform: translateY(calc((1 - var(--reveal)) * 50px));
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.25s;
  overflow: visible;
  z-index: 20;
  cursor: pointer;
}

/* Realistic 3D Animated Butterfly Canvas Overlay */
.butterfly-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 35;
  opacity: 0;
  transition: opacity 220ms ease-out;
}

.butterfly-canvas.is-active {
  opacity: 1;
}

/* ---------------------------------------------------- */
/* Interactive Butterfly Hitbox & Whimsical Speech Bubble */
/* ---------------------------------------------------- */
.butterfly-hitbox {
  position: fixed;
  width: 90px;
  height: 80px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 45;
  display: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.butterfly-hitbox.is-active {
  display: block;
}

.butterfly-speech-bubble {
  position: absolute;
  left: 28px;
  bottom: 62px;
  padding: 10px 24px;
  background: rgba(46, 36, 48, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: bottom left;
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.butterfly-speech-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.butterfly-speech-bubble .speech-bubble-dot {
  position: absolute;
  left: 14px;
  bottom: -11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(46, 36, 48, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.point-card.available {
  visibility: visible;
}

.point-card:hover {
  border-color: rgba(235, 68, 0, 0.5);
}

/* Mouse-tracking radial orange glow inside card */
.card-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 440px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(235, 68, 0, 0.55) 0%, rgba(235, 68, 0, 0.12) 40%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
  transform: translate(calc(-50% + var(--glow-x, 0px)), calc(-50% + var(--glow-y, 0px))) rotate(-15deg);
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  opacity: 0.7;
}

.point-card:hover .card-glow {
  opacity: 1;
  transform: translate(calc(-50% + var(--glow-x, 0px)), calc(-50% + var(--glow-y, 0px))) scale(1.15) rotate(-15deg);
}

.card-content {
  position: relative;
  z-index: 2;
}

.card-tag {
  font-family: var(--nunito);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

.card-title {
  font-family: var(--serif);
  font-size: 4.6rem;
  line-height: 0.95;
  color: var(--cream);
  font-weight: 400;
}

.work-arrow {
  width: 54px;
  height: 44px;
  color: var(--cream);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1), color 0.3s;
}

.point-card:hover .work-arrow {
  transform: translate(4px, -3px);
  color: var(--orange);
}

.card-caption {
  font-size: 1.05rem;
  color: var(--cream);
  margin-top: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.card-rule {
  display: block;
  height: 1px;
  background: var(--line);
  margin: 18px 0 12px;
}

.card-foot {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 4.5%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--cream);
  opacity: var(--hint);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 25;
}

.scroll-cue:hover {
  transform: translateX(-50%) translateY(3px);
}

.scroll-arrow {
  animation: arrowBob 2s ease-in-out infinite;
}

@keyframes arrowBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Replay / back to close-up button */
.replay-btn {
  position: absolute;
  bottom: 3.5%;
  left: max(24px, 4%);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--nunito);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  opacity: var(--reveal);
  visibility: hidden;
  transition: opacity 0.35s, color 0.2s, transform 0.2s;
  z-index: 25;
}

.replay-btn.available {
  visibility: visible;
}

.replay-btn:hover {
  color: var(--cream);
  transform: translateY(-2px);
}

/* Compass Popover Menu (2-panel layout matching reference) */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.compass-menu {
  position: fixed;
  right: max(20px, 3.5%);
  top: 76px;
  z-index: 60;
  display: grid;
  grid-template-columns: 180px 240px;
  gap: 10px;
  max-width: calc(100vw - 32px);
  animation: menuIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.menu-note, .menu-nav-card {
  background: #20211f;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid rgba(242, 230, 189, 0.08);
}

.menu-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 310px;
  background: #1c1d1b;
}

.note-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--orange);
  line-height: 1.12;
}

.note-title em {
  color: #fff2c4;
}

.polaroid-frame {
  margin-top: 20px;
  background: #2a2a28;
  padding: 8px 8px 12px;
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s;
}

.polaroid-frame:hover {
  transform: rotate(0deg) scale(1.04);
}

.polaroid-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}

.polaroid-caption {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  text-align: center;
  margin-top: 6px;
  font-weight: 500;
}

.menu-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-tag {
  font-family: var(--nunito);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.nav-item {
  font-family: var(--nunito);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--cream);
  border-radius: 6px;
  padding: 3px 6px;
  transition: color 0.15s, background 0.15s, padding-left 0.15s;
}

.nav-item:hover {
  color: var(--orange);
  background: rgba(242, 230, 189, 0.05);
  padding-left: 10px;
}

.nav-item.active-page {
  color: var(--orange);
}

.menu-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(235, 68, 0, 0.4) 0%, transparent 100%);
  margin: 16px 0 12px;
}

.menu-socials {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-socials a {
  font-family: var(--nunito);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.15s;
}

.menu-socials a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.menu-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--orange);
  color: #000;
  font-family: var(--nunito);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.contact-pill-btn:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
}

.contact-pill-btn.whatsapp-pill {
  background: #25D366;
  color: #000;
}

.contact-pill-btn.whatsapp-pill:hover {
  background: #20ba59;
}

.pill-arrow {
  font-size: 1.1rem;
  line-height: 1;
}

/* Inner pages general styles */
.inner {
  background: #111210;
}

.inner .site-header {
  position: sticky;
  top: 0;
  background: rgba(17, 18, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mountain-preview-card {
  position: relative;
  height: 105px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #20211f;
  margin-bottom: 10px;
  display: block;
}

.mountain-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mountain-preview-card:hover .mountain-preview-img {
  transform: scale(1.08);
}

.mountain-preview-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  color: var(--cream);
  font-weight: 600;
}

/* Inner page wrap */
.page-wrap {
  padding: 60px max(24px, 4%) 90px;
  min-height: calc(100svh - 180px);
  max-width: 1540px;
  margin: 0 auto;
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(4rem, 7.5vw, 6.8rem);
  color: var(--orange);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 44px;
}

.page-footer {
  padding: 28px max(24px, 4%);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 1540px;
  margin: 0 auto;
}

.page-footer a {
  color: var(--cream);
  transition: color 0.2s;
}

.page-footer a:hover {
  color: var(--orange);
}

/* Media Queries & Responsive */
@media (max-width: 960px) {
  .intro {
    top: 18%;
    max-width: 65%;
  }

  .intro h1 {
    font-size: clamp(3.2rem, 8vw, 4.8rem);
  }

  .point-card {
    width: 42%;
    min-width: 320px;
    bottom: 6%;
    padding: 22px 24px;
  }

  .card-title {
    font-size: 3.6rem;
  }

  .compass-menu {
    right: 20px;
  }
}

@media (max-width: 680px) {
  .scroll-track {
    height: 280svh;
  }

  .site-header {
    height: 70px;
    padding: 0 20px;
  }

  .wordmark {
    font-size: 1.55rem;
  }

  .intro {
    top: 15%;
    left: 20px;
    right: 20px;
    max-width: none;
  }

  .intro h1 {
    font-size: clamp(2.8rem, 11vw, 3.8rem);
  }

  .intro h1 em {
    white-space: normal;
  }

  .intro-sub {
    font-size: 1rem;
    margin-top: 14px;
  }

  .intro-cta {
    margin-top: 22px;
  }

  .point-card {
    left: 20px;
    right: 20px;
    bottom: 7%;
    width: auto;
    min-width: 0;
    padding: 20px;
  }

  .card-title {
    font-size: 3rem;
  }

  .scroll-cue {
    bottom: 6%;
  }

  .replay-btn {
    bottom: 2.5%;
    left: 20px;
  }

  .compass-menu {
    grid-template-columns: 1fr;
    right: 16px;
    left: 16px;
    top: 72px;
    width: auto;
  }

  .menu-note {
    min-height: auto;
  }

  .polaroid-frame {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-track {
    height: 100svh;
  }

  .firefly {
    animation: none;
    display: none;
  }

  .home-header, .intro, .point-card, .replay-btn, .trail-container {
    transform: none !important;
  }

  .scroll-cue {
    display: none;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001s !important;
  }
}
