/* Homepage opening only. Shared navigation and all following sections retain
   their own styles; the normal header returns after this opening screen. */
html:root body.vr-ridge-home,
html:root body.vr-ridge-home.vrw-workspace-header-active {
  padding-top: 0 !important;
}

body.vr-ridge-home:not(.vr-ridge-past-hero) > nav.vrg-public-nav,
body.vr-ridge-home:not(.vr-ridge-past-hero) > nav.vrw-host {
  visibility: hidden !important;
  pointer-events: none !important;
}

.vr-ridge-hero {
  --ridge-gutter: clamp(22px, 2.85vw, 60px);
  --ridge-inset-left: max(var(--ridge-gutter), env(safe-area-inset-left, 0px));
  --ridge-inset-right: max(var(--ridge-gutter), env(safe-area-inset-right, 0px));
  --ridge-safe-top: env(safe-area-inset-top, 0px);
  --ridge-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ridge-header-height: clamp(64px, 4.1vw, 80px);
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 650px;
  max-height: 1280px;
  overflow: hidden;
  color: #f4f4f4;
  background: #050708;
  font-family: 'Inter', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.vr-ridge-hero__art,
.vr-ridge-hero__image,
.vr-ridge-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.vr-ridge-hero__art {
  z-index: -1;
  container-type: size;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(82% - var(--ridge-safe-bottom)), transparent calc(93% - var(--ridge-safe-bottom)));
  mask-image: linear-gradient(to bottom, #000 calc(82% - var(--ridge-safe-bottom)), transparent calc(93% - var(--ridge-safe-bottom)));
}
.vr-ridge-hero__image {
  /* The desktop frame includes twice the reference camera's horizontal field.
     Match the live lens clamp without cropping or stretching the terrain. */
  width: min(200%, 396cqh); max-width: none;
  left: 50%; transform: translateX(-50%);
  object-fit: fill; object-position: center;
}
.vr-ridge-hero__canvas { opacity: 0; }
.vr-ridge-hero svg.vr-ridge-hero__thread {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: #94bdd5; stroke-width: .65; opacity: .5;
  pointer-events: none;
}
.vr-ridge-hero__thread path { vector-effect: non-scaling-stroke; }
.vr-ridge-hero[data-ridge-state='animated'] .vr-ridge-hero__canvas,
.vr-ridge-hero[data-ridge-state='paused'] .vr-ridge-hero__canvas { opacity: 1; }
.vr-ridge-hero[data-ridge-state='animated'] .vr-ridge-hero__canvas {
  transition: opacity .42s cubic-bezier(.22, 1, .36, 1);
}
/* Both the first frame and the live mesh share this one camera movement.
   It never delays content or restarts when the renderer becomes ready. */
@keyframes vr-ridge-arrival {
  from { transform: translate3d(0, 12px, 0); }
  to { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: no-preference) {
  .vr-ridge-hero[data-ridge-arrival='true']:is([data-ridge-state='loading'], [data-ridge-state='animated'], [data-ridge-state='paused']) .vr-ridge-hero__art {
    animation: vr-ridge-arrival 2.4s cubic-bezier(.16, .7, .25, 1) both;
  }
  .vr-ridge-hero[data-ridge-arrival='true'][data-ridge-arrival-paused='true'] .vr-ridge-hero__art {
    animation-play-state: paused;
  }
}

.vr-ridge-hero__header {
  position: relative;
  margin: 0 var(--ridge-inset-right) 0 var(--ridge-inset-left);
  height: calc(var(--ridge-header-height) + var(--ridge-safe-top));
  padding-top: var(--ridge-safe-top);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(230, 237, 240, .25);
}

.vr-ridge-hero a {
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(177, 214, 239, .15);
}
.vr-ridge-hero__brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
  min-height: 44px;
  color: #f3f3f3;
  font-size: clamp(13px, 1.22vw, 20px);
  font-weight: 400;
  letter-spacing: .42em;
  line-height: 1;
  white-space: nowrap;
}
.vr-ridge-hero__brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 28px;
  object-fit: contain;
}

.vr-ridge-hero__demo {
  display: inline-flex;
  justify-self: end;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 40px;
  padding: 9px 18px;
  color: #101112;
  background: #f5f5f5;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
  transition: background .2s ease;
}

.vr-ridge-hero__site-switch {
  position: relative;
  display: grid;
  grid-template-columns: 132px 128px;
  column-gap: 44px;
  align-items: center;
  isolation: isolate;
}
.vr-ridge-hero__site-switch::before,
.vr-ridge-hero__site-switch::after {
  content: '';
  position: absolute;
  left: 154px;
  top: 50%;
  pointer-events: none;
}
.vr-ridge-hero__site-switch::before {
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210, 205, 194, .72) 18%, rgba(210, 205, 194, .72) 82%, transparent);
  transform: translate(-50%, -50%);
}
.vr-ridge-hero__site-switch::after {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(219, 214, 203, .72);
  background: #151718;
  box-shadow: 0 0 0 2px #050708;
  transform: translate(-50%, -50%) rotate(45deg);
}
.vr-ridge-hero__site-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(221, 220, 216, .62);
  font: 600 10px/1 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  font-variant-ligatures: none;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .16s ease, border-color .18s ease, background .18s ease;
}
.vr-ridge-hero__site-option::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, #60f4eb, #20c9c3);
  box-shadow: 0 0 7px rgba(62, 225, 216, .34);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .16s ease;
  pointer-events: none;
}
.vr-ridge-hero__site-option:first-child::after { left: -2px; }
.vr-ridge-hero__site-option:last-child::after { right: -2px; }
.vr-ridge-hero__site-option[aria-current='page'],
.vr-ridge-hero__site-option:hover,
.vr-ridge-hero__site-option:focus-visible {
  color: #eee8dc;
  border-color: rgba(218, 209, 192, .86);
  background: linear-gradient(180deg, rgba(238, 229, 212, .025), rgba(238, 229, 212, .008));
  box-shadow: inset 0 0 0 .5px rgba(255, 250, 240, .16), 0 0 14px rgba(210, 199, 178, .045);
}
.vr-ridge-hero__site-option[aria-current='page']::after,
.vr-ridge-hero__site-option:hover::after,
.vr-ridge-hero__site-option:focus-visible::after { opacity: 1; }

.vr-ridge-hero__demo:hover { background: #dfe5e9; }
.vr-ridge-hero svg,
.vr-ridge-journey__controls svg { width: 17px; height: 17px; flex: 0 0 auto; }
.vr-ridge-hero__demo svg,
.vr-ridge-hero__product svg {
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  .vr-ridge-hero__demo:hover svg,
  .vr-ridge-hero__product:hover svg { transform: translate(2px, -2px); }
}
.vr-ridge-hero__demo:focus-visible svg,
.vr-ridge-hero__product:focus-visible svg { transform: translate(2px, -2px); }
.vr-ridge-hero a:focus-visible { outline: 2px solid #b1d6ef; outline-offset: 7px; }

.vr-ridge-hero .vr-ridge-hero__motion,
.vr-ridge-journey__controls .vr-ridge-hero__motion {
  position: absolute;
  right: var(--ridge-inset-right);
  bottom: calc(max(66px, 7.5%) + 12px + var(--ridge-safe-bottom));
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: #a7a9ab !important;
  box-shadow: none !important;
  transition: none;
  cursor: pointer;
  touch-action: manipulation;
}
.vr-ridge-hero__motion[hidden] { display: none; }
.vr-ridge-hero .vr-ridge-hero__motion:hover,
.vr-ridge-journey__controls .vr-ridge-hero__motion:hover { color: #fff !important; }
.vr-ridge-hero__motion:focus-visible { outline: 2px solid #b1d6ef; outline-offset: 2px; }
.vr-ridge-motion-play,
.vr-ridge-hero__motion[aria-pressed='true'] .vr-ridge-motion-pause { display: none; }
.vr-ridge-hero__motion[aria-pressed='true'] .vr-ridge-motion-play { display: block; }

.vr-ridge-hero__copy {
  position: absolute;
  top: max(17.7%, calc(var(--ridge-header-height) + var(--ridge-safe-top) + 32px));
  left: var(--ridge-inset-left);
  right: var(--ridge-inset-right);
  text-align: center;
}

.vr-ridge-hero__title {
  margin: 0;
  color: #f3f3f3;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(52px, 6.65vw, 128px);
  font-size: clamp(52px, min(6.65vw, 13.6svh), 128px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.vr-ridge-hero__title span { display: block; }
.vr-ridge-hero__subtitle {
  margin: clamp(14px, 1vw, 20px) 0 0;
  color: #a7a9ab;
  font-size: clamp(17px, 1.65vw, 28px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.vr-ridge-hero__products {
  position: absolute;
  bottom: var(--ridge-safe-bottom);
  left: var(--ridge-inset-left);
  right: var(--ridge-inset-right);
  height: 7.5%;
  min-height: 66px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  border-top: 1px solid rgba(230, 237, 240, .25);
}

.vr-ridge-hero__product {
  position: relative;
  min-height: 44px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 34px);
  color: #e3e4e5;
  font-size: clamp(14px, 1.05vw, 18px);
  font-weight: 400;
  line-height: 1.3;
  transition: color .2s ease, background .2s ease;
}

.vr-ridge-hero__product + .vr-ridge-hero__product::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 26px;
  border-left: 1px solid rgba(230, 237, 240, .2);
  transform: translateY(-50%);
}

.vr-ridge-hero__product:hover,
.vr-ridge-hero__product:focus-visible { color: #fff; background: rgba(255, 255, 255, .035); }

@media (max-width: 1024px) {
  .vr-ridge-hero { --ridge-header-height: 118px; }
  .vr-ridge-hero__header {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 64px 44px;
    grid-template-areas: 'brand demo' 'modes modes';
    gap: 0 12px;
    padding-bottom: 9px;
  }
  .vr-ridge-hero__brand { grid-area: brand; }
  .vr-ridge-hero__demo { grid-area: demo; }
  .vr-ridge-hero__site-switch { grid-area: modes; justify-self: center; }
}

@media (max-width: 768px) {
  .vr-ridge-hero { --ridge-header-height: 124px; min-height: 620px; max-height: 1100px; }
  .vr-ridge-hero__header { grid-template-rows: 70px 44px; }
  .vr-ridge-hero__brand { gap: 9px; font-size: 12px; letter-spacing: .3em; }
  .vr-ridge-hero__brand-mark { width: 42px; height: 20px; }
  .vr-ridge-hero__site-switch { grid-template-columns: 124px 108px; column-gap: 28px; }
  .vr-ridge-hero__site-switch::before,
  .vr-ridge-hero__site-switch::after { left: 138px; }
  .vr-ridge-hero__site-switch::before { width: 20px; }
  .vr-ridge-hero__site-option { font-size: 9px; letter-spacing: .2em; }
  .vr-ridge-hero__demo { min-height: 44px; padding: 9px 12px; gap: 8px; font-size: 11px; }
  .vr-ridge-hero__demo svg { width: 13px; height: 13px; }
  .vr-ridge-hero__copy {
    top: max(20%, calc(var(--ridge-header-height) + var(--ridge-safe-top) + 28px));
    left: max(16px, env(safe-area-inset-left, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
  }
  .vr-ridge-hero__title { font-size: clamp(34px, 10.2vw, 64px); line-height: 1.08; letter-spacing: -.052em; }
  .vr-ridge-hero__subtitle { max-width: 310px; margin: 22px auto 0; padding: 0 10px; font-size: clamp(15px, 3.9vw, 19px); line-height: 1.5; letter-spacing: -.025em; }
  .vr-ridge-hero__art { top: 22%; height: 78%; -webkit-mask-image: linear-gradient(to bottom, #000 calc(76% - var(--ridge-safe-bottom)), transparent calc(90% - var(--ridge-safe-bottom))); mask-image: linear-gradient(to bottom, #000 calc(76% - var(--ridge-safe-bottom)), transparent calc(90% - var(--ridge-safe-bottom))); }
  .vr-ridge-hero__image { width: 100%; object-fit: fill; object-position: center; }
  .vr-ridge-hero__products { height: 84px; grid-template-columns: 1fr .65fr 1fr; }
  .vr-ridge-hero .vr-ridge-hero__motion { bottom: calc(96px + var(--ridge-safe-bottom)); }
  .vr-ridge-hero__product { padding: 12px 5px; gap: 10px; font-size: 12px; white-space: normal; text-align: left; }
  .vr-ridge-hero__product span { max-width: 68px; }
  .vr-ridge-hero__product svg { width: 14px; height: 14px; flex-shrink: 0; }
}

@media (max-width: 380px) {
  .vr-ridge-hero__brand { gap: 7px; font-size: 10px; letter-spacing: .18em; }
  .vr-ridge-hero__brand-mark { width: 36px; height: 17px; }
}

@media (max-width: 360px) {
  .vr-ridge-hero { --ridge-gutter: 16px; }
  .vr-ridge-hero__title { font-size: clamp(30px, 10.2vw, 37px); }
  .vr-ridge-hero__art { top: 32%; height: 68%; }
  .vr-ridge-hero__product { font-size: 11px; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  .vr-ridge-hero a { transition: none; }
  .vr-ridge-hero__site-option::after { transition: none; }
  .vr-ridge-hero .vr-ridge-hero__demo svg,
  .vr-ridge-hero .vr-ridge-hero__product svg { transition: none; transform: none; }
  .vr-ridge-hero[data-ridge-state='animated'] .vr-ridge-hero__canvas { transition: none; }
}
