/* OmniCore route world v2
   One deterministic image surface per route. The page moves the camera through
   that surface instead of stacking cards, rails, or disconnected chapters. */

.route-architecture {
  --route-world-image: url('/assets/omnicore-cinematic-architecture-v2.png');
  --route-object-position: 58% 50%;
}

.route-manufacturing {
  --route-world-image: url('/assets/omnicore-cinematic-manufacturing-v2.png');
  --route-object-position: 58% 50%;
}

.route-company {
  --route-world-image: url('/assets/omnicore-cinematic-company-v2.png');
  --route-object-position: 52% 50%;
}

.route-contact {
  --route-world-image: url('/assets/omnicore-cinematic-contact-v2.png');
  --route-object-position: 58% 50%;
}

.route-architecture,
.route-manufacturing,
.route-company,
.route-contact {
  background: #020302;
}

.route-deep-main {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  background: #020302;
}

.route-world-stage {
  position: fixed;
  z-index: 0;
  inset: 0;
  height: 100svh;
  overflow: hidden;
  pointer-events: none;
  background: #020302;
}

.route-world-image,
.route-world-shade,
.route-world-light,
.route-world-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-world-image {
  object-fit: cover;
  object-position: var(--route-object-position);
  transform: translate3d(var(--route-camera-x, 0%), var(--route-camera-y, 0%), 0) scale(var(--route-camera-scale, 1.03));
  transform-origin: 50% 50%;
  filter: saturate(0.9) contrast(1.12) brightness(0.92);
  will-change: transform;
}

.route-world-shade {
  background:
    linear-gradient(90deg, rgba(2, 3, 2, 0.84) 0%, rgba(2, 3, 2, 0.46) 36%, rgba(2, 3, 2, 0.08) 64%, rgba(2, 3, 2, 0.36) 100%),
    linear-gradient(180deg, rgba(2, 3, 2, 0.62) 0%, rgba(2, 3, 2, 0.08) 26%, rgba(2, 3, 2, 0.18) 64%, rgba(2, 3, 2, 0.84) 100%);
  transition: opacity 700ms ease;
}

.route-world-light {
  opacity: 0.46;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at var(--route-light-x, 65%) var(--route-light-y, 45%), rgba(235, 179, 91, 0.18), transparent 23%),
    linear-gradient(110deg, transparent 28%, rgba(233, 179, 93, 0.08) 48%, transparent 65%);
  will-change: background-position;
}

.route-world-grain {
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.34'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  mix-blend-mode: soft-light;
}

.route-world-story {
  position: relative;
  z-index: 1;
}

.route-world-scene {
  position: relative;
  min-height: 112svh;
  padding: max(110px, calc(env(safe-area-inset-top) + 86px)) clamp(28px, 4.7vw, 76px) max(86px, calc(env(safe-area-inset-bottom) + 58px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

.route-world-scene--hero {
  min-height: 100svh;
}

.route-world-scene--compact {
  min-height: 92svh;
}

.route-world-scene--form {
  min-height: 150svh;
  align-items: center;
}

.route-world-copy {
  position: relative;
  width: min(660px, 47vw);
  padding: clamp(28px, 3vw, 46px) 0;
  color: #f1eee7;
  text-shadow: 0 4px 34px rgba(0, 0, 0, 0.68);
}

.route-world-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -70px -110px;
  pointer-events: none;
  background: radial-gradient(ellipse at 42% 52%, rgba(2, 3, 2, 0.92) 0%, rgba(2, 3, 2, 0.7) 39%, rgba(2, 3, 2, 0.24) 68%, transparent 79%);
  filter: blur(8px);
}

.route-world-copy--right {
  grid-column: 2;
  justify-self: end;
}

.route-world-copy--center {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(760px, 72vw);
  text-align: center;
}

.route-world-copy--center::before {
  background: radial-gradient(ellipse at 50% 52%, rgba(2, 3, 2, 0.88), rgba(2, 3, 2, 0.42) 55%, transparent 78%);
}

.route-world-copy--bottom {
  align-self: end;
}

.route-world-kicker,
.route-world-index,
.route-world-truth {
  color: #d7f342;
  font: 700 10px/1.35 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.route-world-index {
  display: block;
  margin-bottom: 22px;
  color: #8f8a7e;
}

.route-world-kicker {
  margin: 0 0 22px;
}

.route-world-copy h1,
.route-world-copy h2 {
  max-width: none;
  margin: 0;
  color: #f1eee7;
  font-weight: 360;
  line-height: 0.93;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.route-world-copy h1 {
  font-size: clamp(4.1rem, 7.3vw, 8rem);
}

.route-world-copy h2 {
  font-size: clamp(3.5rem, 6.2vw, 7rem);
}

.route-world-copy h1 span,
.route-world-copy h2 span {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

.route-company .route-world-scene--hero .route-world-copy {
  width: min(780px, 60vw);
}

.route-company .route-world-scene--hero h1 {
  max-width: none;
  font-size: clamp(3.8rem, 6.35vw, 7rem);
}

.route-company .route-world-scene--hero h1 span {
  white-space: nowrap;
}

.route-world-scene--form .route-world-copy h2 {
  font-size: clamp(3rem, 4.8vw, 5.4rem);
}

.route-world-copy > p:not(.route-world-kicker):not(.route-world-truth) {
  max-width: 570px;
  margin: 28px 0 0;
  color: #c6c1b7;
  font-size: clamp(1rem, 1.15vw, 1.18rem);
  line-height: 1.62;
}

.route-world-copy--center > p:not(.route-world-kicker):not(.route-world-truth) {
  margin-inline: auto;
}

.route-world-truth {
  margin: 26px 0 0;
  color: #8e897e;
  font-size: 10px;
}

.route-world-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.route-world-link {
  min-height: 44px;
  padding: 11px 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid rgba(231, 184, 105, 0.58);
  color: #f0eee8;
  font: 700 10px/1.2 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease;
}

.route-world-link span {
  color: #d7f342;
  font-size: 1rem;
  transition: transform 180ms ease;
}

.route-world-link:hover,
.route-world-link:focus-visible {
  color: #d7f342;
  border-color: #d7f342;
}

.route-world-link:hover span,
.route-world-link:focus-visible span {
  transform: translateX(4px);
}

.route-world-link:focus-visible,
.route-deep-form :is(input, select, textarea, button):focus-visible {
  outline: 2px solid #d7f342;
  outline-offset: 4px;
}

.route-world-facts {
  max-width: 590px;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.route-world-facts div {
  min-width: 0;
}

.route-world-facts dt {
  color: #d7f342;
  font: 700 10px/1.4 var(--mono);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.route-world-facts dd {
  margin: 8px 0 0;
  color: #bbb6ad;
  font-size: 0.95rem;
  line-height: 1.45;
}

.route-form-layout {
  grid-column: 1 / -1;
  width: min(1160px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(480px, 1.22fr);
  gap: clamp(54px, 7vw, 110px);
  align-items: start;
}

.route-form-layout .route-world-copy {
  grid-column: auto;
  width: 100%;
  align-self: start;
}

.route-deep-form {
  width: 100%;
  padding: clamp(28px, 3vw, 44px);
  background: linear-gradient(145deg, rgba(2, 3, 2, 0.9), rgba(2, 3, 2, 0.62));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
}

.route-deep-form .form-two {
  grid-template-columns: 1fr 1fr;
}

.route-deep-form .field {
  margin-bottom: 20px;
}

.route-deep-form .field label {
  color: #999489;
  font-size: 10px;
}

.route-deep-form :is(input, select, textarea) {
  min-height: 52px;
  color: #f0eee8;
  font-size: 16px;
  border-bottom-color: rgba(240, 238, 232, 0.34);
  background: rgba(2, 3, 2, 0.28);
}

.route-deep-form textarea {
  min-height: 132px;
}

.route-deep-form :is(input, select, textarea):focus {
  border-bottom-color: #d7f342;
}

.route-deep-form .lock-submit {
  min-height: 56px;
  cursor: pointer;
}

.route-deep-form .form-note {
  color: #7f7a70;
  font-size: 0.75rem;
  line-height: 1.5;
}

.route-deep-direct {
  margin-top: 32px;
  display: grid;
  gap: 9px;
}

.route-deep-direct span,
.route-deep-direct small {
  color: #8d887e;
  font: 700 10px/1.4 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-deep-direct a {
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #f1eee7;
  font-size: clamp(1rem, 1.4vw, 1.24rem);
}

.route-deep-main + .site-footer {
  position: relative;
  z-index: 2;
  background: #030403;
}

html.route-world-ready .route-world-copy {
  opacity: 0.32;
  transform: translate3d(0, 32px, 0);
  transition: opacity 520ms ease, transform 700ms cubic-bezier(.2,.7,.2,1);
}

html.route-world-ready .route-world-scene.is-active .route-world-copy,
html.route-world-ready .route-world-copy:focus-within {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 900px) {
  .route-architecture { --route-object-position: 62% 50%; }
  .route-manufacturing { --route-object-position: 66% 50%; }
  .route-company { --route-object-position: 64% 50%; }
  .route-contact { --route-object-position: 63% 50%; }

  .route-world-image {
    filter: saturate(0.91) contrast(1.11) brightness(0.88);
  }

  .route-world-shade {
    background:
      linear-gradient(180deg, rgba(2, 3, 2, 0.5), rgba(2, 3, 2, 0.08) 28%, rgba(2, 3, 2, 0.25) 54%, rgba(2, 3, 2, 0.9) 88%),
      linear-gradient(90deg, rgba(2, 3, 2, 0.46), transparent 72%);
  }

  .route-world-scene,
  .route-world-scene--compact {
    min-height: 112svh;
    grid-template-columns: 1fr;
    padding: max(92px, calc(env(safe-area-inset-top) + 72px)) 20px max(58px, calc(env(safe-area-inset-bottom) + 44px));
    align-items: end;
  }

  .route-world-scene--hero {
    min-height: 100svh;
  }

  .route-world-scene--form {
    min-height: auto;
    padding-block: max(108px, calc(env(safe-area-inset-top) + 86px)) 86px;
  }

  .route-world-copy,
  .route-world-copy--right,
  .route-world-copy--center {
    grid-column: 1;
    width: min(100%, 355px);
    justify-self: start;
    text-align: left;
  }

  .route-world-copy::before,
  .route-world-copy--center::before {
    inset: -58px -32px -70px;
    background: radial-gradient(ellipse at 38% 58%, rgba(2, 3, 2, 0.93), rgba(2, 3, 2, 0.7) 48%, rgba(2, 3, 2, 0.2) 72%, transparent 84%);
  }

  .route-world-copy h1 {
    max-width: none;
    font-size: clamp(2.75rem, 11.4vw, 3.3rem);
    line-height: 0.96;
    letter-spacing: -0.048em;
  }

  .route-world-copy h2 {
    max-width: none;
    font-size: clamp(2.4rem, 10.2vw, 2.8rem);
    line-height: 0.96;
    letter-spacing: -0.048em;
  }

  .route-world-scene--form .route-world-copy h2 {
    font-size: clamp(2.4rem, 10.2vw, 2.8rem);
  }

  .route-company .route-world-scene--hero .route-world-copy {
    width: min(100%, 355px);
  }

  .route-company .route-world-scene--hero h1 {
    max-width: none;
    font-size: clamp(2.65rem, 11vw, 3.55rem);
  }

  .route-world-copy > p:not(.route-world-kicker):not(.route-world-truth) {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.58;
  }

  .route-world-kicker,
  .route-world-index,
  .route-world-truth,
  .route-world-facts dt,
  .route-deep-direct span,
  .route-deep-direct small {
    font-size: 10px;
  }

  .route-world-facts {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .route-world-facts dd {
    margin-top: 3px;
    font-size: 0.92rem;
  }

  .route-form-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .route-deep-form {
    padding: 24px 0 0;
    background: linear-gradient(180deg, rgba(2, 3, 2, 0.82), rgba(2, 3, 2, 0.94));
    box-shadow: none;
    backdrop-filter: none;
  }

  .route-deep-form .form-two {
    grid-template-columns: 1fr;
  }

  html.route-world-ready .route-world-copy {
    opacity: 0.42;
    transform: translate3d(0, 22px, 0);
  }
}

@media (max-width: 420px) {
  .route-world-copy h1 {
    font-size: clamp(2.7rem, 11.4vw, 3rem);
  }

  .route-world-copy h2 {
    font-size: clamp(2.35rem, 10.2vw, 2.7rem);
  }

  .route-world-scene--form .route-world-copy h2 {
    font-size: clamp(2.35rem, 10.2vw, 2.7rem);
  }

  .route-world-actions {
    gap: 8px 20px;
  }

  .route-world-link {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-world-image,
  .route-world-light,
  html.route-world-ready .route-world-copy {
    transform: none !important;
    transition: none !important;
  }

  html.route-world-ready .route-world-copy {
    opacity: 1;
  }
}
