html,
body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
  background: #22262b;
}

body {
  min-height: 100%;
  overflow: hidden;
  touch-action: manipulation;
}

.fastestimate-startup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  box-sizing: border-box;
  color: #f2f2f2;
  background: #22262b;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.fastestimate-startup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(31, 35, 40, 0.5), rgba(34, 38, 43, 0) 52%, rgba(23, 26, 30, 0.42)),
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-position: 0 0, 8vw 14vh, 8vw 14vh;
  background-size: auto, 56px 56px, 56px 56px;
  pointer-events: none;
}

.fastestimate-startup::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 6%;
  bottom: 18%;
  height: 24%;
  border-top: 1px solid rgba(168, 199, 250, 0.14);
  border-radius: 50%;
  transform: rotate(-4deg) skewX(-14deg);
  transform-origin: center;
  pointer-events: none;
}

.fastestimate-startup.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.fastestimate-startup__filigree {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.fastestimate-startup__filigree-icon {
  position: absolute;
  width: clamp(52px, 7vw, 100px);
  height: clamp(52px, 7vw, 100px);
  color: rgba(242, 242, 242, 0.15);
  filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.04));
  transform-origin: center;
  animation:
    fastestimate-filigree-float var(--filigree-duration, 18s) ease-in-out infinite alternate,
    fastestimate-filigree-fade var(--filigree-pulse, 9s) ease-in-out infinite;
  animation-delay: var(--filigree-delay, 0s);
}

.fastestimate-startup__filigree-icon path,
.fastestimate-startup__filigree-icon circle,
.fastestimate-startup__filigree-icon rect,
.fastestimate-startup__filigree-icon line,
.fastestimate-startup__filigree-icon polyline {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.fastestimate-startup__filigree-icon--pumpjack {
  top: 7%;
  left: 7%;
  color: rgba(66, 133, 244, 0.18);
  --filigree-duration: 17s;
  --filigree-pulse: 8s;
  --filigree-rotate: -8deg;
  --filigree-drift-x: 18px;
  --filigree-drift-y: -12px;
}

.fastestimate-startup__filigree-icon--ore-cart {
  left: 12%;
  bottom: 14%;
  color: rgba(251, 188, 5, 0.17);
  --filigree-duration: 19s;
  --filigree-pulse: 11s;
  --filigree-delay: -4s;
  --filigree-rotate: 5deg;
  --filigree-drift-x: 14px;
  --filigree-drift-y: 16px;
}

.fastestimate-startup__filigree-icon--shaft {
  top: 12%;
  right: 17%;
  color: rgba(52, 168, 83, 0.17);
  --filigree-duration: 20s;
  --filigree-pulse: 10s;
  --filigree-delay: -2s;
  --filigree-rotate: 10deg;
  --filigree-drift-x: -16px;
  --filigree-drift-y: 14px;
}

.fastestimate-startup__filigree-icon--tower-crane {
  top: 7%;
  right: 7%;
  color: rgba(234, 67, 53, 0.16);
  --filigree-duration: 21s;
  --filigree-pulse: 9s;
  --filigree-delay: -6s;
  --filigree-rotate: -9deg;
  --filigree-drift-x: -12px;
  --filigree-drift-y: -16px;
}

.fastestimate-startup__filigree-icon--mine-portal {
  top: 42%;
  left: 20%;
  color: rgba(161, 66, 244, 0.16);
  --filigree-duration: 16s;
  --filigree-pulse: 8s;
  --filigree-delay: -7s;
  --filigree-rotate: 12deg;
  --filigree-drift-x: 10px;
  --filigree-drift-y: -18px;
}

.fastestimate-startup__filigree-icon--gantry {
  top: 38%;
  right: 22%;
  color: rgba(66, 133, 244, 0.15);
  --filigree-duration: 15s;
  --filigree-pulse: 7s;
  --filigree-delay: -3s;
  --filigree-rotate: -14deg;
  --filigree-drift-x: -12px;
  --filigree-drift-y: 12px;
}

.fastestimate-startup__filigree-icon--crossed-tools {
  left: 4%;
  bottom: 32%;
  color: rgba(52, 168, 83, 0.14);
  --filigree-duration: 18s;
  --filigree-pulse: 8s;
  --filigree-delay: -5s;
  --filigree-rotate: -6deg;
  --filigree-drift-x: 16px;
  --filigree-drift-y: -10px;
}

.fastestimate-startup__filigree-icon--bucket-wheel {
  right: 6%;
  bottom: 36%;
  color: rgba(251, 188, 5, 0.14);
  --filigree-duration: 22s;
  --filigree-pulse: 10s;
  --filigree-delay: -8s;
  --filigree-rotate: 8deg;
  --filigree-drift-x: -18px;
  --filigree-drift-y: 8px;
}

.fastestimate-startup__filigree-icon--dump-truck {
  left: 23%;
  bottom: 6%;
  color: rgba(66, 133, 244, 0.13);
  --filigree-duration: 20s;
  --filigree-pulse: 9s;
  --filigree-delay: -9s;
  --filigree-rotate: 7deg;
  --filigree-drift-x: 10px;
  --filigree-drift-y: 12px;
}

.fastestimate-startup__filigree-icon--blast {
  right: 24%;
  bottom: 6%;
  color: rgba(234, 67, 53, 0.14);
  --filigree-duration: 21s;
  --filigree-pulse: 9s;
  --filigree-delay: -10s;
  --filigree-rotate: -7deg;
  --filigree-drift-x: -12px;
  --filigree-drift-y: -12px;
}

.fastestimate-startup__filigree-icon--crystals {
  top: 28%;
  left: 31%;
  color: rgba(161, 66, 244, 0.12);
  --filigree-duration: 19s;
  --filigree-pulse: 9s;
  --filigree-delay: -11s;
  --filigree-rotate: 6deg;
  --filigree-drift-x: -8px;
  --filigree-drift-y: 14px;
}

.fastestimate-startup__content {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  padding: 24px;
  text-align: center;
  animation: fastestimate-startup-enter 520ms ease-out both;
}

.fastestimate-startup__wordmark {
  font-size: 54px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  color: #f2f2f2;
}

.fastestimate-startup p {
  max-width: 460px;
  margin: 30px 0 0;
  color: #c7c7c7;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: 0;
}

.fastestimate-startup.is-error p {
  color: #f28b82;
  font-weight: 500;
}

@keyframes fastestimate-startup-enter {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fastestimate-filigree-float {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  100% {
    transform:
      translate3d(var(--filigree-drift-x, 12px), var(--filigree-drift-y, -12px), 0)
      rotate(var(--filigree-rotate, 8deg))
      scale(1.05);
  }
}

@keyframes fastestimate-filigree-fade {
  0%,
  100% {
    opacity: 0.45;
  }

  50% {
    opacity: 0.86;
  }
}

@media (max-width: 720px), (max-height: 620px) {
  .fastestimate-startup__content {
    padding: 24px 0;
  }

  .fastestimate-startup__filigree-icon {
    width: 56px;
    height: 56px;
  }

  .fastestimate-startup__filigree-icon--gantry,
  .fastestimate-startup__filigree-icon--crossed-tools,
  .fastestimate-startup__filigree-icon--bucket-wheel,
  .fastestimate-startup__filigree-icon--dump-truck,
  .fastestimate-startup__filigree-icon--blast,
  .fastestimate-startup__filigree-icon--crystals {
    display: none;
  }

  .fastestimate-startup__wordmark {
    font-size: 44px;
  }

  .fastestimate-startup p {
    margin-top: 24px;
  }}

@media (prefers-reduced-motion: reduce) {
  .fastestimate-startup,
  .fastestimate-startup__content,
  .fastestimate-startup__filigree-icon {
    transition: none;
    animation: none;
  }}

/* 2026 premium mining mural splash. Overrides the older orbit mark shell. */
.fastestimate-startup {
  padding: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(168, 199, 250, 0.10), transparent 34%),
    radial-gradient(circle at 24% 66%, rgba(253, 214, 99, 0.07), transparent 24%),
    #22262b;
}

.fastestimate-startup::before {
  background:
    linear-gradient(135deg, rgba(31, 35, 40, 0.32), rgba(34, 38, 43, 0) 52%, rgba(23, 26, 30, 0.34));
}

.fastestimate-startup__filigree{
  display: none;
}

.fastestimate-startup::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  z-index: 0;
  border: 0;
  border-radius: 0;
  transform: none;
  pointer-events: none;
  opacity: 1;
  background-image: url("assets/assets/mining_activity/terrain-lifecycle-stream-dark.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.fastestimate-startup__content {
  position: relative;
  z-index: 2;
  width: 100vw;
  padding: 24px 0;
  opacity: 1;
  animation: startup-shell-settle 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.fastestimate-startup__mural {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: clamp(260px, 42vw, 430px);
  margin: 0 auto;
}

.fastestimate-startup__wordmark {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(18px, 5.6vh, 56px);
  height: 42%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  /* Lift the brand cluster (logo + wordmark + status) up out of the river
     valley into the open terrain above. */
  transform: translateY(-20vh);
  gap: clamp(5px, 0.7vw, 9px);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 700;
  line-height: 1;
  color: #f2f2f2;
  text-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.fastestimate-startup__brandmark,
.fastestimate-startup__brandmark img {
  width: clamp(94px, 7.2vw, 126px);
  height: clamp(94px, 7.2vw, 126px);
}

.fastestimate-startup__brandmark {
  display: block;
  line-height: 0;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.18));
}

.fastestimate-startup__brandmark img {
  display: block;
  object-fit: contain;
}

.startup-mural__scene {
  position: absolute;
  z-index: 2;
  left: var(--scene-x);
  top: var(--scene-y);
  width: clamp(118px, var(--scene-width, 10.8%), min(16vw, 252px));
  height: auto;
  opacity: 0.96;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.22));
  transform-origin: center;
  animation: startup-scene-breathe 36000ms cubic-bezier(0.45, 0, 0.2, 1) infinite both;
}

.startup-mural__scene img {
  display: block;
  width: 100%;
  height: auto;
}

.startup-mural__scene::before {
  display: block;
  content: attr(data-label);
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(100% + clamp(4px, 0.55vw, 8px));
  color: var(--label-color, #f2f5f8);
  font-size: clamp(9px, 0.72vw, 12px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0;
  text-shadow:
    0 1px 7px rgba(11, 15, 20, 0.92),
    0 4px 16px rgba(11, 15, 20, 0.72);
  transform: translate(-50%, 0);
  white-space: nowrap;
  pointer-events: none;
}

.startup-mural__scene--exploration {
  --scene-x: 4.2%;
  --scene-y: 9%;
  --scene-width: 7.8%;
  animation-delay: 0ms;
  --label-color: #d9ff9d;
}

.startup-mural__scene--drilling {
  --scene-x: 11.8%;
  --scene-y: 103%;
  --scene-width: 7.8%;
  animation-delay: 4000ms;
  --label-color: #ffd56e;
}

.startup-mural__scene--excavation {
  --scene-x: 31%;
  --scene-y: 47%;
  --scene-width: 8.1%;
  animation-delay: 8000ms;
  --label-color: #ffb26f;
}

.startup-mural__scene--haulage {
  --scene-x: 31.8%;
  --scene-y: 109%;
  --scene-width: 8.2%;
  animation-delay: 12000ms;
  --label-color: #ff9086;
}

.startup-mural__scene--crushing {
  --scene-x: 55.2%;
  --scene-y: 104%;
  --scene-width: 8.3%;
  animation-delay: 16000ms;
  --label-color: #c7a4ff;
}

.startup-mural__scene--conveying {
  --scene-x: 67%;
  --scene-y: 43%;
  --scene-width: 8.3%;
  animation-delay: 20000ms;
  --label-color: #a99bff;
}

.startup-mural__scene--processing {
  --scene-x: 78%;
  --scene-y: 28%;
  --scene-width: 8.1%;
  animation-delay: 24000ms;
  --label-color: #9dc6ff;
}

.startup-mural__scene--stockpiling {
  --scene-x: 90.2%;
  --scene-y: 88%;
  --scene-width: 7.9%;
  animation-delay: 28000ms;
  --label-color: #9dc6ff;
}

.startup-mural__scene--closure {
  --scene-x: 95.2%;
  --scene-y: 8%;
  --scene-width: 7.6%;
  animation-delay: 32000ms;
  --label-color: #9dc6ff;
}

.startup-mural__scene--exploration::before,
.startup-mural__scene--closure::before {
  top: auto;
  bottom: calc(100% + clamp(4px, 0.55vw, 8px));
}

.fastestimate-startup p {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: clamp(8px, 1vw, 12px) 0 0;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 650;
  line-height: 1.35;
  color: #c7cdd5;
  text-shadow: none;
  animation: startup-message-pulse 2400ms ease-in-out infinite;
}

.fastestimate-startup p::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8ccfff;
  box-shadow:
    0 0 0 4px rgba(140, 207, 255, 0.14),
    0 0 18px rgba(140, 207, 255, 0.62);
  animation: startup-status-dot 1600ms ease-in-out infinite;
}

.fastestimate-startup__dots {
  display: inline-flex;
  min-width: 1.2em;
  margin-left: -4px;
  color: currentColor;
}

.fastestimate-startup__dots span {
  display: inline-block;
  transform-origin: center bottom;
  animation: startup-status-dot-text 1200ms cubic-bezier(0.45, 0, 0.2, 1)
    infinite;
  opacity: 0.24;
}

.fastestimate-startup__dots span:nth-child(2) {
  animation-delay: 180ms;
}

.fastestimate-startup__dots span:nth-child(3) {
  animation-delay: 360ms;
}

@keyframes startup-shell-settle {
  from {
    transform: translateY(8px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes startup-message-pulse {
  0%,
  100% {
    opacity: 0.76;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes startup-status-dot {
  0%,
  100% {
    transform: scale(0.8);
    opacity: 0.58;
  }

  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@keyframes startup-status-dot-text {
  0%,
  100% {
    opacity: 0.24;
    transform: translateY(0) scale(0.82);
  }

  42% {
    opacity: 1;
    transform: translateY(-3px) scale(1.18);
  }
}

@keyframes startup-scene-breathe {
  0% {
    transform: translate(-50%, -50%) scale(0.996);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.004);
  }

  100% {
    transform: translate(-50%, -50%) scale(0.996);
  }
}

@media (prefers-color-scheme: light) {
  html,
  body {
    background: #f8fafc;
  }

  .fastestimate-startup {
    color: #1b1b1c;
    background:
      radial-gradient(circle at 50% 42%, rgba(26, 115, 232, 0.09), transparent 34%),
      radial-gradient(circle at 24% 66%, rgba(249, 171, 0, 0.09), transparent 24%),
      #f8fafc;
  }

  .fastestimate-startup::before {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(248, 250, 254, 0) 52%, rgba(232, 240, 254, 0.54));
  }

  .fastestimate-startup::after {
    background-image: url("assets/assets/mining_activity/terrain-lifecycle-stream-light.webp");
  }

  .fastestimate-startup__wordmark {
    color: #202124;
    text-shadow: 0 22px 44px rgba(26, 115, 232, 0.12);
  }

  .fastestimate-startup__brandmark {
    filter: drop-shadow(0 12px 24px rgba(26, 115, 232, 0.12));
  }

  .startup-mural__scene::before {
    text-shadow:
      0 1px 6px rgba(255, 255, 255, 0.96),
      0 4px 18px rgba(255, 255, 255, 0.78);
  }

  .startup-mural__scene--exploration {
    --scene-x: 4.2%;
    --scene-y: 19%;
    --label-color: #4f7d37;
  }

  .startup-mural__scene--drilling {
    --scene-x: 11.8%;
    --scene-y: 103%;
    --label-color: #8a6200;
  }

  .startup-mural__scene--excavation {
    --scene-x: 31%;
    --scene-y: 67%;
    --label-color: #a44f10;
  }

  .startup-mural__scene--haulage {
    --scene-x: 31.8%;
    --scene-y: 109%;
    --label-color: #b13c32;
  }

  .startup-mural__scene--crushing {
    --scene-x: 55.2%;
    --scene-y: 104%;
    --label-color: #7251a9;
  }

  .startup-mural__scene--conveying {
    --scene-x: 67%;
    --scene-y: 74%;
    --label-color: #6068b7;
  }

  .startup-mural__scene--processing {
    --scene-x: 78%;
    --scene-y: 48%;
    --label-color: #3569b9;
  }

  .startup-mural__scene--stockpiling {
    --scene-x: 90.2%;
    --scene-y: 88%;
    --label-color: #3569b9;
  }

  .startup-mural__scene--closure {
    --scene-x: 95.2%;
    --scene-y: 20%;
    --label-color: #3569b9;
  }

  .fastestimate-startup p {
    color: #5b616b;
  }

  .fastestimate-startup p::before {
    background: #1a73e8;
    box-shadow:
      0 0 0 4px rgba(26, 115, 232, 0.10),
      0 0 18px rgba(26, 115, 232, 0.34);
  }}

@media (max-width: 720px), (max-height: 620px) {
  .fastestimate-startup__content {
    padding: 24px 0;
  }

  .fastestimate-startup__mural {
    height: clamp(132px, 36vw, 176px);
  }

  .fastestimate-startup__wordmark {
    top: 0;
    height: 100%;
    font-size: clamp(34px, 10vw, 46px);
  }

  .fastestimate-startup__brandmark {
    width: clamp(62px, 18vw, 82px);
    height: clamp(62px, 18vw, 82px);
  }

  .fastestimate-startup__brandmark img {
    width: clamp(62px, 18vw, 82px);
    height: clamp(62px, 18vw, 82px);
  }

  .fastestimate-startup p {
    max-width: min(88vw, 360px);
    font-size: clamp(12px, 3.4vw, 14px);
    white-space: normal;
  }

  .startup-mural__scene {
    display: none;
  }}

/* Audit mobile fixes (additive; later in cascade so they win for the matching
   viewports). Ultra-narrow <=360px lowers the wordmark to prevent overflow at
   320px, where the 34px clamp floor beats 10vw; phone-landscape compresses the
   mural + wordmark so the splash fits a short viewport. */
@media (max-width: 360px) {
  .fastestimate-startup__wordmark {
    font-size: clamp(28px, 8vw, 34px);
  }
}

@media (orientation: landscape) and (max-height: 480px) {
  .fastestimate-startup__content {
    padding: 12px 0;
  }
  .fastestimate-startup__mural {
    height: clamp(96px, 22vh, 132px);
  }
  .fastestimate-startup__wordmark {
    font-size: clamp(24px, 6vh, 34px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .startup-mural__scene {
    animation: none;
    opacity: 0.92;
    transform: translate(-50%, -50%);
  }

  .fastestimate-startup p,
  .fastestimate-startup p::before {
    animation: none;
  }

  /* These are declared after the earlier reduced-motion block, so they must be
     re-stopped here or their continuous animations survive the cascade. */
  .fastestimate-startup__content {
    animation: none;
  }

  .fastestimate-startup__dots span {
    animation: none;
    opacity: 1;
  }}