/* Home landing: a Medha-style driver display console (3D cab screen + throttle) beside the headline.
   Theme: white, Medha red, graphite. Background speed rails run faster as the throttle notch rises. */
.lx-bg { overflow: hidden; background:
  radial-gradient(45% 55% at 76% 46%, rgba(227,30,36,.08), transparent 70%),
  linear-gradient(180deg, #ffffff, #f3f4f5); }
.hm-page .ab-veil { display: none; }

.lx { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 84px clamp(16px, 4vw, 56px) 0; position: relative; overflow: hidden; }
.lx-grid { flex: 1; max-width: 1400px; width: 100%; margin: 0 auto; display: grid; gap: 14px 40px;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "copy globe" "since since"; }

/* entrance (waits for .hm-landing-in, set when the landing scrolls into view) */
.lx-up { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d) * 110ms); }
.hm-landing-in .lx-up { opacity: 1; transform: none; }

/* headline: lines rise out of masks, red underline sweeps */
.lx-copy { grid-area: copy; align-self: center; }
.lx-title { margin: 0 0 18px; font-size: clamp(2.4rem, 4.9vw, 5rem); line-height: .94; font-weight: 900; letter-spacing: -.045em; }
.lx-line { display: block; overflow: hidden; padding-bottom: .06em; }
.lx-line > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1.1s cubic-bezier(.2,.9,.1,1); }
.lx-line:nth-child(2) > span { transition-delay: .12s; } .lx-line:nth-child(3) > span { transition-delay: .24s; }
.hm-landing-in .lx-line > span { transform: none; }
.lx-title em { font-style: normal; color: var(--red); position: relative; }
.lx-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .09em; background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform 1s var(--ease) 1.1s; border-radius: 2px; }
.hm-landing-in .lx-title em::after { transform: scaleX(1); }
.lx-lead { color: var(--body); line-height: 1.62; font-size: .98rem; margin: 0 0 20px; max-width: 60ch; }
.lx-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-mag { will-change: transform; }

/* ---------- since 1984 ---------- */
.lx-since { grid-area: since; align-self: end; display: grid; grid-template-columns: auto 1fr auto; gap: 10px 22px; align-items: center; padding: 14px 20px; border-radius: 22px;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 2px rgba(22,25,28,.05), 0 16px 40px rgba(22,25,28,.09); }
.lx-year { display: flex; flex-direction: column; gap: 2px; padding-right: 22px; border-right: 1px solid var(--line); }
.lx-year b { font-size: 2rem; font-weight: 900; color: var(--red); line-height: 1; letter-spacing: -.02em; }
.lx-year small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lx-since p { margin: 0; color: var(--body); font-size: .86rem; line-height: 1.5; }
.lx-since-act { display: flex; align-items: center; gap: 14px; }
.lx .hm-foot { position: relative; z-index: 1; }

@media (min-width: 901px) and (max-height: 820px) {
  .lx { padding-top: 72px; }
  .lx-title { font-size: clamp(2.2rem, 4.3vw, 4rem); margin-bottom: 10px; }
  .lx-lead { font-size: .88rem; line-height: 1.5; margin-bottom: 12px; }
  .lx-since { padding: 10px 16px; } .lx-since p { font-size: .8rem; }
}
@media (max-width: 1100px) { .lx-since { grid-template-columns: auto 1fr; } .lx-since-act { grid-column: 1 / -1; justify-content: space-between; } }
@media (max-width: 900px) {
  .lx-grid { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "copy" "globe" "since"; }
}
@media (max-width: 600px) {
}
@media (prefers-reduced-motion: reduce) {
  .lx-up, .lx-line > span { transition: none; opacity: 1; transform: none; }
  
}


/* ---------- globe: tour of all Medha Group offices ---------- */
.gx { grid-area: globe; position: relative; min-height: 380px; align-self: stretch; cursor: grab; touch-action: pan-y; }
.gx:active { cursor: grabbing; }
.gx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gx-card { position: absolute; right: 0; bottom: 4%; z-index: 2; width: min(340px, 78%); display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center;
  padding: 12px 12px 14px; border-radius: 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 2px rgba(22,25,28,.05), 0 24px 60px rgba(22,25,28,.16); overflow: hidden; cursor: default; }
.gx-photo { position: relative; margin: 0; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 30%, #ff6b70, #b5161b); }
.gx-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .5s; }
.gx-photo.is-empty img { opacity: 0; }
.gx-photo.is-empty::after { content: attr(data-code); position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; }
.gx-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 64px; }
.gx-body > * { transition: opacity .4s, transform .5s var(--ease); }
.gx-card.is-swap .gx-body > *, .gx-card.is-swap .gx-photo img { opacity: 0; transform: translateY(6px); }
.gx-idx { font-size: .66rem; letter-spacing: .16em; color: var(--red); font-weight: 700; }
.gx-name { font-size: 1rem; line-height: 1.2; }
.gx-place { font-size: .82rem; color: var(--body); }
.gx-role { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.gx-nav { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.gx-nav button { width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--red); color: #fff;
  box-shadow: 0 6px 14px rgba(227,30,36,.3); transition: transform .2s, background .2s; }
.gx-nav button:hover { background: var(--red-dark); transform: scale(1.08); }
.gx-prog { position: absolute; left: 0; bottom: 0; height: 3px; width: var(--p, 0%); background: var(--red); }
.gx-hint { position: absolute; left: 4px; bottom: 6px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .gx { min-height: 420px; } .gx-card { left: 50%; right: auto; transform: translateX(-50%); bottom: 0; width: min(360px, 100%); } .gx-hint { display: none; } }
@media (max-width: 600px) { .gx-card { grid-template-columns: 70px 1fr; } .gx-photo { width: 70px; height: 70px; } }
@media (max-width: 600px) { .lx-since { grid-template-columns: 1fr; } .lx-year { border: 0; padding: 0; flex-direction: row; align-items: baseline; gap: 10px; } .lx-since-act { justify-content: space-between; } }
