/* ═══════════════════════════════════════════
   FEATURES — new interactive layers
   Depth gauge, bubbles, estimator, weather, i18n,
   audio toggle, 404, konami water, visitor map, etc.
   ═══════════════════════════════════════════ */

/* ═══ 1. Depth Gauge ═══════════════════════════════ */
.depth-gauge {
  position: fixed;
  top: 50%;
  right: max(16px, env(safe-area-inset-right));
  transform: translateY(-50%);
  width: 42px;
  height: min(60vh, 420px);
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  color: rgba(255, 255, 255, 0.75);
  user-select: none;
}
.depth-gauge.is-visible { opacity: 1; }
.depth-gauge__rail {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(0, 229, 255, 0.6) 0%,
    rgba(0, 212, 170, 0.5) 25%,
    rgba(168, 85, 247, 0.5) 60%,
    rgba(255, 107, 53, 0.45) 100%
  );
  border-radius: 2px;
}
.depth-gauge__rail::before,
.depth-gauge__rail::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.9);
}
.depth-gauge__rail::before { top: -3px; }
.depth-gauge__rail::after  { bottom: -3px; }

.depth-gauge__pearl {
  position: absolute;
  top: 0;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  margin-top: -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e7, #c084fc 60%, #6b21a8);
  box-shadow: 0 0 20px rgba(192, 132, 252, 0.8), 0 0 40px rgba(0, 229, 255, 0.35);
  will-change: top;
}
.depth-gauge__readout {
  position: absolute;
  right: calc(100% + 10px);
  top: 0;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  pointer-events: none;
}
.depth-gauge__readout-depth {
  display: block;
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}
.depth-gauge__readout-zone {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 9px;
}
/* Mobile: replace the vertical rail with a thin top progress bar that
   still shows the current depth/zone at a glance. */
@media (max-width: 768px) {
  .depth-gauge {
    top: env(safe-area-inset-top, 0);
    right: 0;
    left: 0;
    bottom: auto;
    transform: none;
    width: 100%;
    height: 3px;
    pointer-events: none;
    z-index: 101; /* above nav */
  }
  .depth-gauge__rail {
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(
      90deg,
      rgba(0, 229, 255, 0.6) 0%,
      rgba(0, 212, 170, 0.5) 25%,
      rgba(168, 85, 247, 0.5) 60%,
      rgba(255, 107, 53, 0.45) 100%
    );
    transform: none;
  }
  .depth-gauge__rail::before,
  .depth-gauge__rail::after { display: none; }
  .depth-gauge__pearl {
    top: 50% !important;
    left: 0;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    margin-top: -5px;
    box-shadow: 0 0 10px rgba(192, 132, 252, 0.9);
  }
  .depth-gauge__readout { display: none; }
}

/* ═══ 4. Click ripple ══════════════════════════════ */
.click-ripple {
  position: fixed;
  pointer-events: none;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.9);
  z-index: 9998;
  will-change: transform, opacity;
}

/* ═══ 6. Availability pill ═════════════════════════ */
.availability-pill {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  transform: translate(-50%, -110%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #eaffee;
  background: rgba(10, 8, 28, 0.7);
  border: 1px solid rgba(0, 255, 136, 0.45);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 95;
  cursor: pointer;
  transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1), background 200ms ease;
  text-decoration: none;
}
.availability-pill.is-visible { transform: translate(-50%, 0); }
.availability-pill:hover { background: rgba(0, 255, 136, 0.15); }
.availability-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 10px #00ff88;
  animation: availability-pulse 2.4s ease-in-out infinite;
}
@keyframes availability-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}
@media (max-width: 720px) {
  .availability-pill {
    font-size: 9.5px;
    padding: 6px 12px;
    top: max(12px, env(safe-area-inset-top));
    max-width: calc(100vw - 120px); /* leave room for logo + hamburger */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
@media (max-width: 420px) {
  /* Too cramped on tiny phones — hide entirely; the info is already in
     the contact section copy */
  .availability-pill { display: none; }
}

/* ═══ 3 & 11. Nav toolbar (audio + language) ══════ */
.nav-tools {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(80px, env(safe-area-inset-right));
  display: flex;
  gap: 6px;
  z-index: 96;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.nav-tools.is-visible,
body.is-loaded .nav-tools {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-tools__btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(10, 8, 28, 0.55);
  color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.nav-tools__btn:hover,
.nav-tools__btn:focus-visible {
  color: #fff;
  border-color: rgba(0, 229, 255, 0.7);
  background: rgba(0, 229, 255, 0.15);
  outline: none;
}
.nav-tools__btn svg { width: 16px; height: 16px; }
.nav-tools__btn.is-active {
  color: #00e5ff;
  border-color: rgba(0, 229, 255, 0.9);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.4);
}
.nav-tools__btn-icon-mute { display: none; }
.nav-tools__btn.is-active .nav-tools__btn-icon-on  { display: none; }
.nav-tools__btn.is-active .nav-tools__btn-icon-mute { display: block; }
/* On touch/narrow screens, move tools to bottom-left so they don't clash
   with the hamburger at top-right, and meet 44×44 touch-target minimums. */
@media (max-width: 768px) {
  .nav-tools {
    top: auto;
    right: auto;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(18px, env(safe-area-inset-left));
    transform: translateY(10px);
  }
  .nav-tools.is-visible,
  body.is-loaded .nav-tools {
    transform: translateY(0);
  }
  .nav-tools__btn {
    width: 44px;
    height: 44px;
    font-size: 11px;
  }
  .nav-tools__btn svg { width: 18px; height: 18px; }
}

/* ═══ 5. Estimator (Build-your-pearl) ══════════════ */
.estimator-trigger {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  right: max(24px, env(safe-area-inset-right));
  z-index: 90;
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #00e5ff 0%, #a855f7 55%, #ff6b35 100%);
  color: #0a061a;
  font-family: var(--font-heading, 'Syne', sans-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 500ms ease,
              box-shadow 300ms ease;
}
.estimator-trigger.is-visible { transform: translateY(0); opacity: 1; }
.estimator-trigger:hover { box-shadow: 0 14px 40px rgba(168, 85, 247, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.2) inset; }
.estimator-trigger__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px #fff;
}
@media (max-width: 720px) {
  .estimator-trigger {
    bottom: max(18px, env(safe-area-inset-bottom));
    right: max(18px, env(safe-area-inset-right));
    padding: 11px 16px;
    font-size: 11px;
    min-height: 44px;
  }
}
/* On very narrow screens, compact to icon-only so it doesn't eat the viewport */
@media (max-width: 420px) {
  .estimator-trigger span:not(.estimator-trigger__dot) { display: none; }
  .estimator-trigger {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }
  .estimator-trigger::after {
    content: "✦";
    font-size: 18px;
    color: #0a061a;
  }
  .estimator-trigger__dot { display: none; }
}

.estimator-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 24px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.estimator-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.estimator-modal__box {
  width: min(640px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1a0f33 0%, #0a0618 100%);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 24px;
  padding: clamp(22px, 5vw, 36px) clamp(18px, 5vw, 32px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(168, 85, 247, 0.25);
  color: #f0e9ff;
  font-family: var(--font-body, 'Syne', sans-serif);
  transform: translateY(30px);
  transition: transform 500ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
  position: relative;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .estimator__pearl { width: 90px; height: 90px; margin-bottom: 16px; }
  .estimator__options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .estimator__option { padding: 12px 8px; font-size: 0.85rem; }
  .estimator__nav { gap: 8px; }
  .estimator__nav-btn { padding: 12px 16px; min-height: 44px; font-size: 0.85rem; }
}
.estimator-modal.is-open .estimator-modal__box { transform: translateY(0); }
.estimator-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  appearance: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.estimator-modal__close:hover { color: #fff; border-color: #fff; }
.estimator__pearl {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8e7, #c084fc 55%, #5b1aa8 90%);
  box-shadow: 0 0 50px rgba(192, 132, 252, 0.65), 0 0 100px rgba(0, 229, 255, 0.25) inset;
  transition: transform 600ms cubic-bezier(0.2, 0.9, 0.3, 1.1), box-shadow 600ms ease;
}
.estimator__step-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  text-align: center;
  margin-bottom: 6px;
  font-weight: 600;
}
.estimator__step-sub {
  text-align: center;
  opacity: 0.7;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.estimator__progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 20px;
}
.estimator__progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 300ms ease, transform 300ms ease;
}
.estimator__progress-dot.is-active {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
  transform: scale(1.2);
}
.estimator__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.estimator__option {
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f0e9ff;
  border-radius: 14px;
  padding: 14px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-align: center;
  transition: all 250ms ease;
}
.estimator__option:hover,
.estimator__option.is-selected {
  background: rgba(0, 229, 255, 0.15);
  border-color: #00e5ff;
  color: #fff;
  transform: translateY(-2px);
}
.estimator__option.is-selected {
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}
.estimator__nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.estimator__nav-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #f0e9ff;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 200ms ease;
}
.estimator__nav-btn:hover { background: rgba(255, 255, 255, 0.08); }
.estimator__nav-btn--primary {
  background: linear-gradient(135deg, #00e5ff, #a855f7);
  color: #0a061a;
  border-color: transparent;
  font-weight: 700;
}
.estimator__nav-btn--primary:hover { filter: brightness(1.1); }
.estimator__nav-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.estimator__summary {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}
.estimator__summary strong { color: #00e5ff; }

/* ═══ 7. Helmies Bites expanded case study modal ═══ */
.casestudy-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 3, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.casestudy-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.casestudy-modal__box {
  width: min(860px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #1a0a0a 0%, #140618 100%);
  border: 1px solid rgba(255, 107, 53, 0.3);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 40px) clamp(18px, 5vw, 36px);
  color: #fff8e7;
  position: relative;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(255, 107, 53, 0.25);
  transform: translateY(30px);
  transition: transform 500ms cubic-bezier(0.2, 0.9, 0.3, 1.1);
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 480px) {
  .casestudy-modal__stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .casestudy-modal__stat { padding: 12px 8px; }
  .casestudy-modal__clients a { font-size: 11px; padding: 5px 10px; }
}
.casestudy-modal.is-open .casestudy-modal__box { transform: translateY(0); }
.casestudy-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.casestudy-modal__close:hover { color: #fff; border-color: #fff; }
.casestudy-modal__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #ff6b35;
  margin-bottom: 8px;
}
.casestudy-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  margin-bottom: 6px;
  line-height: 1.1;
}
.casestudy-modal__subtitle {
  opacity: 0.7;
  font-size: 1rem;
  margin-bottom: 24px;
}
.casestudy-modal__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.casestudy-modal__stat {
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.25);
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
}
.casestudy-modal__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem);
  color: #ffd166;
  font-weight: 700;
}
.casestudy-modal__stat-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}
.casestudy-modal__chapter {
  margin: 24px 0;
}
.casestudy-modal__chapter h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #ff6b35;
  margin-bottom: 6px;
}
.casestudy-modal__chapter p { opacity: 0.85; line-height: 1.6; font-size: 0.95rem; }
.casestudy-modal__clients {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.casestudy-modal__clients a {
  color: #ffd166;
  border: 1px solid rgba(255, 209, 102, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--font-mono);
  text-decoration: none;
  transition: all 200ms ease;
}
.casestudy-modal__clients a:hover {
  background: rgba(255, 209, 102, 0.12);
  border-color: #ffd166;
}
.casestudy-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  background: transparent;
  border: 1px solid rgba(255, 107, 53, 0.5);
  color: #ff6b35;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 200ms ease;
}
.casestudy-trigger:hover {
  background: rgba(255, 107, 53, 0.15);
  box-shadow: 0 0 20px rgba(255, 107, 53, 0.35);
}

/* ═══ 8. Visitor map + Numbers section ═════════════ */
.section-numbers {
  position: relative;
  padding: var(--space-section, 8rem) var(--gutter, 24px);
  text-align: center;
  overflow: hidden;
}
.section-numbers__container {
  position: relative;
  max-width: var(--container-wide, 1200px);
  margin: 0 auto;
  z-index: 2;
}
.section-numbers__headline {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 400;
  line-height: 1.1;
  max-width: 16ch;
  margin: 0 auto 48px;
  color: #fff;
}
.section-numbers__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .section-numbers { padding-left: 18px; padding-right: 18px; }
  .section-numbers__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 40px; }
  .section-numbers__value { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
}
@media (max-width: 380px) {
  .section-numbers__grid { grid-template-columns: 1fr; gap: 24px; }
}
.section-numbers__item { position: relative; }
.section-numbers__value {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  color: #a855f7;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
  display: inline-block;
}
.section-numbers__plus {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  color: #c084fc;
  display: inline-block;
  margin-left: 4px;
  vertical-align: top;
}
.section-numbers__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.section-numbers__sub {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
  font-style: italic;
}

.visitor-map {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 2 / 1;
}
@media (max-width: 480px) {
  .visitor-map { margin-left: -10px; margin-right: -10px; }
  .visitor-map__caption { font-size: 9px; padding: 0 10px; }
}
.visitor-map__svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.visitor-map__outline {
  fill: none;
  stroke: rgba(0, 229, 255, 0.35);
  stroke-width: 0.4;
}
.visitor-map__dot {
  fill: #00e5ff;
  filter: drop-shadow(0 0 6px #00e5ff);
  opacity: 0;
  transform-origin: center;
}
.visitor-map__dot.is-live { opacity: 1; }
.visitor-map__caption {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 14px;
}
.visitor-map__caption strong { color: #00e5ff; }

/* ═══ 9. Describe-your-vision (contact) ════════════ */
.vision-describe {
  margin-top: 14px;
  padding: 16px;
  background: rgba(168, 85, 247, 0.08);
  border: 1px dashed rgba(168, 85, 247, 0.35);
  border-radius: 14px;
}
.vision-describe__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 8px;
}
.vision-describe__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.vision-describe__input { min-width: 0; }
@media (max-width: 480px) {
  .vision-describe__row { flex-direction: column; }
  .vision-describe__btn { width: 100%; min-height: 44px; }
  .vision-describe__input { min-height: 44px; }
  .vision-describe__result { grid-template-columns: repeat(5, 1fr); gap: 4px; }
}
.vision-describe__input {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
}
.vision-describe__input:focus {
  outline: none;
  border-color: #00e5ff;
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.15);
}
.vision-describe__btn {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #a855f7, #00e5ff);
  color: #0a061a;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}
.vision-describe__btn:hover { filter: brightness(1.1); }
.vision-describe__result {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.vision-describe__result.is-open { display: grid; }
.vision-describe__swatch {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(10px);
}
.vision-describe__caption {
  display: none;
  margin-top: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}
.vision-describe__caption.is-open { display: block; }

/* ═══ 12. Cursor bubble trail ══════════════════════ */
.cursor-bubble {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(0, 229, 255, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 9997;
  will-change: transform, opacity;
}
@media (pointer: coarse) {
  .cursor-bubble { display: none; }
}

/* ═══ 15. Droplet submit payoff ════════════════════ */
.droplet-anim {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50% 50% 50% 0;
  background: radial-gradient(circle at 35% 30%, #fff, #00e5ff 60%, #0284c7);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.7);
  pointer-events: none;
  z-index: 9996;
  transform: rotate(-45deg);
  will-change: transform, top;
}
.droplet-pool {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.7);
  z-index: 9995;
  opacity: 0;
  pointer-events: none;
}
.droplet-message {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.8);
  z-index: 9996;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

/* ═══ 16. Konami water fill ════════════════════════ */
.konami-water {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}
.konami-water__fill {
  position: absolute;
  inset: 0;
  top: 100%;
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.3) 0%, rgba(168, 85, 247, 0.5) 50%, rgba(5, 3, 18, 0.7) 100%);
  backdrop-filter: blur(3px) hue-rotate(-20deg);
}
.konami-water__caustics {
  position: absolute;
  inset: 0;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.1) 0px,
    transparent 20px,
    rgba(255, 255, 255, 0.05) 40px,
    transparent 60px
  );
  mix-blend-mode: overlay;
}

/* ═══ 19. Lahti weather ════════════════════════════ */
.footer-weather {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  letter-spacing: 0.03em;
}
.footer-weather__icon { font-size: 14px; }
.footer-weather strong { color: rgba(255, 255, 255, 0.85); }

/* ═══ 20. Keyboard tour aria region ════════════════ */
.kb-tour-hint {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 120%);
  padding: 10px 18px;
  background: rgba(10, 8, 28, 0.85);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: #f0f0ff;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 97;
  pointer-events: none;
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 500ms ease;
}
.kb-tour-hint.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ═══ 2. Fluid hero canvas layer ═══════════════════ */
.fluid-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
  z-index: 1;
}

/* ═══ 14. Shader section transition ════════════════ */
.section-dissolve {
  position: fixed;
  inset: 0;
  z-index: 85;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 229, 255, 0.4), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(168, 85, 247, 0.4), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 107, 53, 0.3), transparent 40%);
  mix-blend-mode: screen;
  filter: blur(30px);
}

/* ═══ Touch target minimums — WCAG 2.5.5 ══════════ */
@media (pointer: coarse) {
  .nav__hamburger {
    width: 44px !important;
    height: 44px !important;
    padding: 6px;
  }
  .nav__hamburger-line {
    height: 2.5px;
  }
  /* Ensure all existing nav links have a 44×44 hit area */
  .nav__mobile-link,
  .nav__link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* ═══ Reduced motion ═══════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .depth-gauge,
  .availability-pill,
  .estimator-trigger,
  .nav-tools,
  .cursor-bubble,
  .fluid-hero-canvas,
  .section-dissolve { transition: none !important; animation: none !important; }
  .availability-pill__dot { animation: none !important; }
}

/* Prevent horizontal overflow that could come from wide modals / canvas.
   Scoped to the html element so body can still use position: fixed children
   and iOS rubber-band scroll works. */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100vw; }
@supports not (overflow-x: clip) {
  html, body { overflow-x: hidden; }
}
