/* Brand mark overrides (dist-only site) */
.chrome__dot {
  width: 1.55em;
  height: 1.55em;
  min-width: 28px;
  min-height: 28px;
  border-radius: 0;
  background: none !important;
  display: inline-block;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: -0.28em;
}

.chrome__mark {
  gap: 0.22em !important;
  column-gap: 0.22em !important;
}

.foot__copy {
  margin: 0;
  font-size: inherit;
  color: var(--text-muted, #6b7880);
}

.foot__legal--solo {
  justify-content: flex-start !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.foot__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35em 0.75em;
  width: 100%;
}

.foot__meta a,
.foot__meta .foot__copy {
  font-size: var(--fs-caption, 0.75rem);
  line-height: 1.4;
  color: var(--text-muted, #6b7880);
}

.notfound {
  min-height: calc(100dvh - 220px);
  display: grid;
  align-items: center;
  padding-block: clamp(40px, 7vh, 96px);
}

body.is-loading {
  overflow: hidden;
}

body.is-loading .chrome,
body.is-loading #main,
body.is-loading .m-bg,
body.is-loading #stage,
body.is-loading .m-dock,
body.is-loading .to-top,
body.is-loading .foot {
  visibility: hidden;
}

.preload {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 20px;
  box-sizing: border-box;
  background:
    radial-gradient(130% 90% at 10% 0%, rgba(2, 219, 220, 0.18) 0%, rgba(2, 219, 220, 0) 54%),
    linear-gradient(160deg, #04121c 0%, #071c2a 55%, #0c2634 100%);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preload--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preload__inner {
  width: 320px;
  max-width: calc(100vw - 40px);
  text-align: center;
  border: 1px solid rgba(232, 238, 240, 0.2);
  border-radius: 20px;
  padding: 32px 28px;
  background: rgba(7, 28, 42, 0.78);
  box-shadow: 0 22px 70px rgba(2, 8, 13, 0.45);
  box-sizing: border-box;
}

.preload__mark {
  width: 54px;
  height: 54px;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
  animation: preloadPulse 1.6s ease-in-out infinite;
}

.preload__title {
  margin: 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
}

.preload__text {
  margin: 8px 0 0;
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: #d5dfe2;
  font-size: 0.95rem;
  line-height: 1.4;
}

.preload__bar {
  margin: 18px auto 0;
  width: 220px;
  max-width: 100%;
  height: 6px;
  display: block;
  border-radius: 999px;
  background: rgba(232, 238, 240, 0.16);
  overflow: hidden;
}

.preload__bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #04b3b4 0%, #35e6e7 100%);
  animation: preloadFlow 1.2s ease-in-out infinite;
}

@keyframes preloadFlow {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

@keyframes preloadPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.06); opacity: 0.92; }
}

.notfound__card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(232, 238, 240, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(2, 219, 220, 0.14) 0%, rgba(2, 219, 220, 0) 55%),
    rgba(7, 28, 42, 0.78);
  box-shadow: 0 20px 70px rgba(2, 8, 13, 0.42);
}

.page-404 .legal-back {
  display: none !important;
}

.notfound__code {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-accent, #02dbdc);
  text-shadow: 0 0 48px rgba(2, 219, 220, 0.28);
}

.notfound__headline {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.2vw, 2rem);
}

.notfound__actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 640px) {
  .notfound {
    min-height: auto;
    padding-block: 24px 36px;
  }

  .notfound__card {
    border-radius: 16px;
    padding: 22px 18px;
  }

  .notfound__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.legal-top__inner {
  justify-content: flex-start !important;
}

.legal-back {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin: 0;
  padding: 0.45em 0.85em 0.45em 0.55em;
  border: 1px solid rgba(232, 238, 240, 0.18);
  border-radius: 8px;
  background: rgba(17, 50, 66, 0.45);
  color: var(--text-secondary, #d5dfe2);
  font-size: var(--fs-body-s, 0.875rem);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.legal-back:hover {
  color: var(--raw-white, #fff);
  border-color: rgba(2, 219, 220, 0.45);
  background: rgba(2, 219, 220, 0.08);
}

.legal-back:focus-visible {
  outline: 2px solid var(--raw-cyan-500, #02dbdc);
  outline-offset: 2px;
}

.legal-back__icon {
  display: block;
  flex-shrink: 0;
  color: var(--text-accent, #02dbdc);
}

@media (max-width: 640px) {
  .legal-top__inner .chrome__mark {
    display: none !important;
  }

  .legal-back {
    padding: 0.5em 0.9em 0.5em 0.6em;
  }
}

/* Desktop calc choices — card UI as on mobile; .result not touched */
@media (min-width: 768px) {
  .calc__options,
  .calc__options--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .calc .opt__box {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 88px !important;
    padding: 14px 14px 12px !important;
    background: rgba(17, 50, 66, 0.55) !important;
    border: 1px solid rgba(232, 238, 240, 0.16) !important;
    border-radius: 12px !important;
    position: relative !important;
  }

  .calc .opt__box b {
    font-size: 0.98rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    padding-right: 28px !important;
  }

  .calc .opt__box small {
    font-size: 0.78rem !important;
    line-height: 1.3 !important;
    color: var(--text-secondary) !important;
    min-height: 0 !important;
    padding-right: 28px !important;
  }

  .calc .opt input:hover + .opt__box {
    background: rgba(17, 50, 66, 0.75) !important;
    border-color: rgba(232, 238, 240, 0.28) !important;
  }

  .calc .opt input:checked + .opt__box {
    border-width: 1px !important;
    border-color: var(--state-selected, #02dbdc) !important;
    background: rgba(2, 219, 220, 0.08) !important;
    padding: 14px 14px 12px !important;
  }

  .calc .opt input + .opt__box:after {
    content: "" !important;
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    border: 1.5px solid rgba(232, 238, 240, 0.35) !important;
    background: transparent !important;
    box-sizing: border-box !important;
  }

  .calc .opt input:checked + .opt__box:after {
    border-color: var(--state-selected, #02dbdc) !important;
    background: var(--state-selected, #02dbdc) !important;
    box-shadow: inset 0 0 0 3px rgba(12, 38, 52, 0.95) !important;
  }

  .calc__hint {
    order: 2;
  }

  .calc__q {
    display: flex;
    flex-direction: column;
    gap: var(--sp-4, 16px);
  }

  .calc__title {
    order: 1;
  }

  .calc__options {
    order: 3;
  }

  .calc__q > .field {
    order: 4;
  }
}

/* Mobile-only chrome/dock — shown via assets/mobile.css */
.chrome__actions,
.m-dock,
.svc-more {
  display: none;
}

.form .channel > span {
  min-height: 52px;
  padding: 10px 8px;
}

.form .channel__icon {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.final__tg {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: inherit;
  text-decoration: none;
}

.final__tg:hover {
  color: var(--text-accent, #02dbdc);
}

.final__tg:focus-visible {
  outline: 2px solid var(--raw-cyan-500, #02dbdc);
  outline-offset: 2px;
  border-radius: 4px;
}

.final__tg-icon {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

@media (max-width: 639px) {
  .form .channel__icon {
    width: 32px;
    height: 32px;
  }
}

.trust-marquee {
  overflow: hidden !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.trust-marquee::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .trust-marquee {
    overflow: hidden !important;
    overflow-x: hidden !important;
  }

  .trust-marquee__track {
    width: 100% !important;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .trust-marquee__group {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-inline-end: 0 !important;
    gap: var(--sp-6, 1.5rem);
  }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero__copy .quick-lead {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  margin-top: var(--sp-6, 24px);
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
}

.quick-lead__fields {
  display: grid;
  grid-template-columns: minmax(11rem, 1.4fr) minmax(12rem, 1.35fr) minmax(14rem, 1.7fr) auto;
  gap: 10px 12px;
  align-items: start;
}

.quick-lead__field {
  margin: 0;
  min-width: 0;
}

.quick-lead__label {
  display: block;
  margin: 0 0 5px;
  font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace);
  font-size: 0.875rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.quick-lead__field .field__error {
  display: none;
}

.quick-lead__field .input,
.quick-lead__task {
  min-height: 46px;
  width: 100%;
}

.quick-lead__task {
  display: block;
  resize: none;
  overflow: hidden;
  line-height: 1.35;
  padding-top: 12px;
  padding-bottom: 12px;
  field-sizing: content;
  max-height: 9.5rem;
}

.quick-lead__submit {
  white-space: nowrap;
  min-height: 46px;
  padding-inline: 18px;
  align-self: start;
  margin-top: calc(0.875rem * 1.3 + 5px);
}

.quick-lead__status {
  margin: 6px 0 0;
  min-height: 0;
  font-size: 0.85rem;
}

.quick-lead__status:empty {
  display: none;
}

.contact-control__prefix {
  display: none !important;
}

.contact-control--phone .input {
  border-radius: var(--r-sm, 8px) !important;
}

@media (max-width: 1023px) {
  .hero__copy .quick-lead {
    width: 100%;
  }

  .quick-lead__fields {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }

  .quick-lead__field--task {
    grid-column: 1 / -1;
  }

  .quick-lead__submit {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .hero__copy .quick-lead {
    margin-top: var(--sp-5, 20px);
  }

  .quick-lead__fields {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Hero/final: static bolid photo. Mid scrub: live 3D. */
.stage__bolid-still {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

html.has-bolid-still:not(.scrub-mid) .stage__bolid-still {
  opacity: 1;
  visibility: visible;
}

html.has-bolid-still:not(.scrub-mid) .stage canvas {
  opacity: 0 !important;
}

html.scrub-mid .stage__bolid-still {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Mid entry veil: no garage flash between still hide and act fade-in */
html.scrub-mid .stage__overlay {
  opacity: max(var(--act-overlay-opacity, 0), 0.92);
}
