body { font-family: "Segoe UI", system-ui, sans-serif; }
.hero-copy h1 { max-width: 24ch; text-wrap: initial; }
.headline-line { display: block; }
.page-hero h1, .product-hero h1, .about-hero h1 { font-size: clamp(2.1rem, 4.5vw, 4.1rem); }
.inner-demo { width: min(calc(100% - 2 * var(--gap, 1.25rem)), var(--measure, 75rem)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1.2rem; margin: 0 auto clamp(1.5rem, 4vw, 3rem); padding: 1.15rem clamp(1rem, 3vw, 2rem); border: 1px solid #d6d1f0; border-radius: 10px; background: #eeedf9; }
.inner-demo p { color: #373254; }
.inner-demo strong { display: block; margin-bottom: .25rem; color: #17182c; }
.module-icon svg { width: 1.15rem; height: 1.15rem; }
.platform-next { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.platform-next article { min-width: 0; padding: .85rem 1.05rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.site-footer-meta { display:flex; flex-wrap:wrap; gap:.55rem 1.3rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.privacy-copy { max-width: 72ch; margin-inline: auto; }
.privacy-copy h2 { margin: 1.6rem 0 .5rem; font-size: clamp(1.2rem, 2.9vw, 1.65rem); }
.privacy-copy p, .privacy-copy ul { margin: .65rem 0; }
.privacy-copy a { color: var(--accent-hover); text-decoration: underline; }
.motion-art--floorplan { display: block; background: #171328; }
.motion-art--floorplan::before { position: absolute; inset: 27% 30% 26% 24%; content: ''; border: 2px dashed #7d66bf; border-top: 0; border-right: 0; border-radius: 0 0 0 7px; opacity: .82; }
.motion-art--floorplan i { position: absolute; width: .82rem; height: .82rem; border-radius: 50%; box-shadow: 0 0 0 .2rem #211b34; }
.motion-art--floorplan i:nth-child(1) { left: 22%; top: 23%; }
.motion-art--floorplan i:nth-child(2) { left: 22%; bottom: 22%; }
.motion-art--floorplan i:nth-child(3) { right: 27%; bottom: 22%; }
[data-motion-index="2"] .motion-art--floorplan i:nth-child(2), [data-motion-index="3"] .motion-art--floorplan i:nth-child(3) { transform: scale(1.25); box-shadow: 0 0 12px #baa5ff80; }
.motion-art--floorplan span { position: absolute; color: #d5c9f6; font-size: .73rem; line-height: 1.1; }
.motion-art--floorplan .map-door { top: 20%; left: 36%; }
.motion-art--floorplan .map-reception { bottom: 2%; left: 7%; }
.motion-art--floorplan .map-corridor { bottom: 2%; right: 8%; }
@media (width <= 1050px) { .headline-line { display: inline; } }
@media (width <= 540px) { .platform-next { grid-template-columns: minmax(0,1fr); } .hero-copy h1 { max-width: 21ch; } }

/* Keep the main navigation accessible even when the enhanced menu is unavailable. */
.nav-toggle[hidden], #site-navigation[hidden] { display: none; }
.site-header[data-nav-enhanced] { position: sticky; inset-block-start: 0; z-index: 20; }
.skip-link { z-index: 30; }
html { scroll-padding-block-start: 6rem; }

.site-header .header-inner { gap: clamp(.55rem, 1.35vw, 1.2rem); }
.site-header .site-nav { gap: clamp(.5rem, 1.2vw, 1.25rem); }
.site-header .header-inner > .button { flex: none; white-space: nowrap; }
.site-header .site-nav a[aria-current="page"] { font-weight: 750; }
.site-header .site-nav a[aria-current="page"]:not(.home-link),
.site-header .nav-dropdown:has(a[aria-current="page"]) > summary { color: var(--accent-hover); }
.site-header .nav-menu { max-block-size: calc(100dvh - 6.6rem); overflow: auto; overscroll-behavior: contain; }
.site-header .nav-dropdown:last-child .nav-menu { inset-inline: auto 0; }

.nav-toggle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .36rem;
  min-block-size: 44px;
  padding: .4rem .62rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--surface-blue); color: var(--accent-hover); }
.nav-toggle::before {
  content: "";
  inline-size: .8rem;
  block-size: 1px;
  background: currentColor;
  box-shadow: 0 -.26rem currentColor, 0 .26rem currentColor;
}

.gate-estimate__results strong { color: var(--accent-hover); }
.restored-replay .gate-replay-status, .gate-demo .gate-replay-status {
  color: #e6e8fb;
  font-size: max(.75rem, 12px);
}
.scenario-steps button, .scenario-timeline li span, .scenario-label,
.motion-head p, .motion-readout [data-motion-caption], .motion-steps button,
.gate-zone, .gate-marker > span { font-size: max(.75rem, 12px); }
.gate-marker > span { max-inline-size: 10ch; white-space: nowrap; }

@media (max-width: 1040px) {
  html { scroll-padding-block-start: 5rem; }
  .site-header:not([data-nav-enhanced]) .header-inner { flex-wrap: wrap; }
  .site-header:not([data-nav-enhanced]) .site-nav { order: 3; flex: 0 0 100%; flex-wrap: wrap; }
  .site-header[data-nav-enhanced] .header-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    column-gap: .5rem;
    min-block-size: 4.35rem;
    padding-block: .42rem;
  }
  .site-header[data-nav-enhanced] .brand { min-inline-size: 0; width: fit-content; }
  .site-header[data-nav-enhanced] .brand img { inline-size: clamp(7rem, 29vw, 11rem); max-inline-size: 100%; }
  .site-header[data-nav-enhanced] .header-inner > .button { justify-self: end; }
  .site-header[data-nav-enhanced] .site-nav:not([hidden]) {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    width: auto;
    gap: .2rem;
    max-block-size: min(35rem, calc(100dvh - 4.5rem));
    overflow: auto;
    overscroll-behavior: contain;
    padding: .5rem;
    border: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    background: #fff;
    box-shadow: 0 16px 38px #17182c2e;
  }
  .site-header[data-nav-enhanced] .site-nav > a,
  .site-header[data-nav-enhanced] .nav-dropdown summary,
  .site-header[data-nav-enhanced] .nav-menu a {
    display: flex;
    align-items: center;
    min-block-size: 44px;
    padding: .42rem .68rem;
    white-space: normal;
  }
  .site-header[data-nav-enhanced] .site-nav > a { border-radius: 6px; }
  .site-header[data-nav-enhanced] .nav-dropdown summary { justify-content: space-between; }
  .site-header[data-nav-enhanced] .nav-dropdown .nav-menu {
    position: static;
    min-inline-size: 0;
    inline-size: auto;
    max-block-size: none;
    overflow: visible;
    padding: 0 0 .35rem .5rem;
    border: 0;
    border-inline-start: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }
  .site-header[data-nav-enhanced] .nav-menu a { font-size: .88rem; }
}

@media (min-width: 481px) and (max-width: 1040px) {
  .module-grid, .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid > :last-child:nth-child(odd), .industry-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root :is(.hero, .page-hero, .about-hero, .product-hero) h1 { font-size: clamp(2rem, 8.4vw, 2.125rem); }
  .site-header[data-nav-enhanced] .header-inner > .button { padding-inline: .6rem; font-size: .83rem; min-block-size: 44px; }
  :is(.text-link, .platform-next a, .product-shortcuts a, .sector-shortcuts a, .footer nav a, .footer address a) {
    display: inline-flex;
    align-items: center;
    min-block-size: 44px;
  }
  :is(.scenario-steps button, .motion-steps button, .motion-play, .gate-replay button, .gate-estimate__presets button) { min-block-size: 44px; }
  :is(.practice-toggle, .method-criteria, .restore-faq details, .attendance-faq-list details) > summary { min-block-size: 44px; padding-block: .7rem; }
  .method-table tr > :first-child {
    position: sticky;
    inset-inline-start: 0;
    background: #f6f7fb;
    box-shadow: 1px 0 var(--line);
  }
  .method-table thead th:first-child { background: #edeff7; }
}

@media (max-width: 480px) {
  .scenario-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-header[data-nav-enhanced] .header-inner { column-gap: .3rem; }
  .nav-toggle { padding-inline: .5rem; }
}

@media (max-width: 360px) {
  .site-header[data-nav-enhanced] .header-inner > .button { padding-inline: .45rem; font-size: .78rem; }
  .site-header[data-nav-enhanced] .header-inner > .button > span { display: none; }
}

.entrance-demo {
  min-width: 0;
  width: 100%;
  margin: 0;
  position: relative;
  padding: clamp(.8rem, 2vw, 1rem);
  color: var(--on-dark, #fafaff);
  border: 1px solid #524983;
  border-radius: 1.1rem;
  background: var(--dark, #17182d);
  box-shadow: 0 24px 65px #0a091986;
  scroll-margin-top: 6rem;
}

.entrance-demo::before {
  position: absolute;
  inset: -1px auto auto 1.4rem;
  width: 3.25rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-on-dark, #bfb3ff);
  content: "";
}

.walkthrough-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  margin-bottom: .75rem;
  min-height: 44px;
}

.walkthrough-header h2 {
  margin: .24rem 0 0;
  color: var(--on-dark, #fafaff);
  font-size: clamp(1.05rem, 2vw, 1.34rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.walkthrough-label {
  margin: 0;
  color: var(--accent-on-dark, #bfb3ff);
  font-size: .75rem;
  letter-spacing: .07em;
  line-height: 1.25;
  font-weight: 670;
  text-transform: uppercase;
}

.walkthrough-control {
  flex: 0 0 4.6rem;
  min-height: 44px;
  padding: 0 .5rem;
  border: 1px solid #8172bd;
  border-radius: .6rem;
  color: var(--on-dark, #fafaff);
  background: #302958;
  font: inherit;
  font-size: .82rem;
  font-weight: 690;
  cursor: pointer;
}

.walkthrough-control:hover { background: #443770; }
.walkthrough-control:focus-visible { outline: 2px solid var(--accent-on-dark, #bfb3ff); outline-offset: 3px; }
.walkthrough-control[hidden] { display: none; }

.walkthrough-stage {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #544b82;
  border-radius: .72rem;
  background: #18172d;
}

.walkthrough-stage svg { display: block; width: 100%; height: auto; }

.walkthrough-zone {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .45rem;
  border: 1px solid #6c61a1;
  border-radius: .45rem;
  color: var(--on-dark, #fafaff);
  background: #1c1a33;
  font-size: .75rem;
  font-weight: 620;
  line-height: 1.15;
}

.walkthrough-zone > span {
  background: #a895f7;
  width: .35rem;
  height: .35rem;
  border-radius: 50%;
}

.walkthrough-person--violet { color: #b5a1ff; }
.walkthrough-person--mint { color: #92ddce; }
.walkthrough-person--blue { color: #9cacee; }
.walkthrough-person[data-entrance-captured] { color: var(--recorded, #a0f0cb); }
.walkthrough-person[data-entrance-review]:not([data-entrance-scanning]) { color: #ffd087; }
.walkthrough-outline { opacity: 0; }
.walkthrough-person[data-entrance-captured] .walkthrough-outline, .walkthrough-person[data-entrance-review]:not([data-entrance-scanning]) .walkthrough-outline { opacity: .85; }

.walkthrough-events {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .34rem;
  padding: 0;
  margin: .73rem 0 .62rem;
  list-style: none;
}

.walkthrough-event {
  display: grid;
  grid-template-columns: auto minmax(2.8rem, 1fr) auto;
  align-items: center;
  gap: .45rem;
  min-height: 37px;
  padding: .35rem .54rem;
  border: 1px solid #444264;
  border-radius: .62rem;
  background: #22213b;
  font-size: .78rem;
  line-height: 1.2;
  transition: opacity 170ms ease;
}

.walkthrough-event[data-entrance-pending] { opacity: 0; visibility: hidden; }
.walkthrough-event time { color: var(--on-dark-muted, #c6c8dc); font-variant-numeric: tabular-nums; }
.walkthrough-event-status { padding: .24rem .42rem; border-radius: .35rem; color: var(--recorded, #a0f0cb); background: var(--recorded-background, #16392d); font-size: .75rem; font-weight: 670; }
.walkthrough-event--review .walkthrough-event-status { color: var(--review, #ffd087); background: var(--review-background, #422e1c); }

.walkthrough-note { margin: 0; color: var(--on-dark-muted, #c6c8dc); font-size: .75rem; line-height: 1.35; }
.walkthrough-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 380px) {
  .walkthrough-event { gap: .32rem; padding-inline: .38rem; }
  .walkthrough-event-status { padding-inline: .29rem; }
}

@media (prefers-reduced-motion: reduce) {
  .walkthrough-event { transition: none; }
}
