/* Hallmark · redesign: restyle site-wide, full on the new components · built: the project · brand kept: YouSee360 green, Outfit, wordmark
   critique: P3 H4 E3 S4 R4 V3 · weakest: execution, because 99 legacy pages keep their own layout under this layer
   waive 42: the nav keeps its links and order, every page and script depends on that markup
   waive 54: section labels outside the two homepages stay as plain body-face labels, their headings need a per-page copy pass
   waive F5: the "Enter the live tour" control matches the owner-approved glass tour player (js/tour-shell.js)
   not run: scripts/sloplint.mjs (third-party code was read, not executed); gates were checked by hand

   YouSee360 "next" layer (dev). Loaded last, after css/site-polish.css, and scoped to html.ys-next.
   1 tokens  2 page transitions  3 site polish  4 navigation  5 search dialog  6 section rail
   7 buttons  8 live tour deck  9 case study cards  10 phone dock  11 focus and reduced motion */

/* ------------------------------------------------------------------ 1 tokens */
html.ys-next {
  --nx-green: #00ff88;                       /* brand anchor, kept */
  --nx-green-ink: #00170e;                   /* text on the green fill */
  --nx-ink: #f1faf5;                         /* text on dark, tinted toward the anchor */
  --nx-ink-2: rgba(234, 247, 240, .8);
  --nx-ink-3: rgba(234, 247, 240, .64);
  --nx-canvas: #02060a;                      /* the site's existing canvas */
  --nx-surface: #0a1217;                     /* raised surfaces sit lighter than the canvas */
  --nx-surface-2: #111b21;
  --nx-rule: rgba(234, 247, 240, .12);
  --nx-rule-2: rgba(234, 247, 240, .24);
  --nx-glass: rgba(18, 24, 30, .5);
  --nx-glass-rule: rgba(241, 250, 245, .18);
  --nx-nav: rgba(5, 10, 14, .52);
  --nx-nav-set: rgba(4, 9, 13, .88);
  --nx-scrim: rgba(2, 6, 10, .68);
  --nx-veil: rgba(2, 6, 10, .5);
  --nx-tint: rgba(0, 255, 136, .1);
  --nx-ease-out: cubic-bezier(.16, 1, .3, 1);
  --nx-ease-in: cubic-bezier(.7, 0, .84, 0);
  --nx-t-micro: 120ms;
  --nx-t-short: 220ms;
  --nx-t-long: 420ms;
  --nx-space-1: 4px;
  --nx-space-2: 8px;
  --nx-space-3: 12px;
  --nx-space-4: 16px;
  --nx-space-5: 24px;
  --nx-space-6: 32px;
  --nx-space-7: 48px;
  --nx-space-8: 64px;
  --nx-space-9: 96px;
  --nx-space-10: 128px;
  --nx-radius-card: 20px;
  --nx-radius-inner: 12px;
  --nx-radius-control: 999px;
  --nx-container: 1360px;
  --nx-text-label: 14px;
  --nx-text-body: 17px;
  --nx-text-section: clamp(36px, 4.4vw, 60px);
  scroll-padding-top: 104px;
  scrollbar-color: var(--nx-rule-2) var(--nx-canvas);
  caret-color: var(--nx-green);
}
html.ys-next, html.ys-next body { overflow-x: clip; }
html.ys-next ::selection { background: var(--nx-green); color: var(--nx-green-ink); }

/* ------------------------------------------------------- 2 page transitions */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 160ms cubic-bezier(.7, 0, .84, 0) both nx-vt-out; }
  ::view-transition-new(root) { animation: 420ms cubic-bezier(.16, 1, .3, 1) both nx-vt-in; }
  ::view-transition-group(nx-nav) { animation-duration: 1ms; }
  html.ys-next .navigation-bar { view-transition-name: nx-nav; }
}
@keyframes nx-vt-out { to { opacity: 0; } }
@keyframes nx-vt-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes nx-spin { to { transform: rotate(360deg); } }
@keyframes nx-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nx-nav-settle { to { translate: 0 -4px; scale: .985; } }
@keyframes nx-fade-in { to { opacity: 1; } }

/* ----------------------------------------------------------- 3 site polish */
/* headings: one weight, one colour, no glow; the accent is kept once, in the hero */
html.ys-next h1, html.ys-next h2, html.ys-next h3 { text-wrap: balance; overflow-wrap: break-word; }
html.ys-next p, html.ys-next li { text-wrap: pretty; }
html.ys-next body :is(h1, h2, h3), html.ys-next body :is(h1, h2, h3) :is(span, em, strong),
html.ys-next body :is(.section-tag, .eyebrow, .ys-trust-badge, .text-secondary, div.highlight) {
  text-shadow: none !important; filter: none !important;
}
html.ys-next body :is(h1, h2).sexy-heading, html.ys-next body h1.blog-hero-title {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  color: var(--nx-ink) !important; -webkit-text-fill-color: currentColor !important; letter-spacing: -.03em;
}
html.ys-next body :is(h2, h3) :is(.highlight, em) {
  background: none !important; color: inherit !important; -webkit-text-fill-color: currentColor !important; font-style: normal;
}
html.ys-next body h1 :is(.highlight, em),
html.ys-next body .hero-film h1 span,
html.ys-next body .v3-why-mark {
  background: none !important; color: var(--nx-green) !important; -webkit-text-fill-color: var(--nx-green) !important;
}
html.ys-next body .section-subheading { color: var(--nx-ink-2); font-size: clamp(16px, 1.18vw, 18px); line-height: 1.6; }
/* labels, badges and chips: body face, sentence case, no tracking, never under 12px */
html.ys-next body :is(.section-tag, .eyebrow, .footer-col-title, .hi-badge, .ws-step, .ys-lang-badge, .pf-kicker,
  .ys-related-kicker, .from-label, .ysp-num, .demo-eyebrow, .tag, .cd-kicker, .card-category-tag, .modal-section-label,
  .es3-num, .label-hint, .pf-work-services, .pf-work-chip, .pf-number, .badge, .label, .cd-part-tag, .cd-quote-tag,
  .p3-chip, .p3-load, .ysp-label, .ysp-tag, .ys-live-tour-badge, .ys-live-tour-hint, .experience-service,
  .service-path-kicker, .explainer-label, .ys-trust-label, .tour-moment-badge, .v3-clients-head, .es3-badge,
  .es3-eyebrow, .es3-hint, .es3-cmp-title, .featured-category, .demo-source, .credentials-label, .mission-tag,
  .featured-badge, .read-more-btn) {
  font-family: inherit !important; letter-spacing: 0 !important; text-transform: none !important;
}
html.ys-next body :is(.hi-badge, .ys-lang-badge, .pf-kicker, .ys-related-kicker, .demo-eyebrow, .tag, .cd-kicker,
  .card-category-tag, .label-hint, .pf-work-services, .pf-work-chip, .badge, .cd-quote-tag, .ys-live-tour-badge,
  .experience-service, .service-path-kicker, .explainer-label, .tour-moment-badge, .es3-badge, .es3-eyebrow,
  .es3-hint, .es3-cmp-title, .featured-category, .demo-source) { font-size: 12px !important; }
html.ys-next body :is(.section-tag, .eyebrow) { font-size: var(--nx-text-label) !important; font-weight: 500; line-height: 1.3; color: var(--nx-ink-3) !important; }
html.ys-next body .section-tag::before, html.ys-next body .section-tag::after { display: none !important; }
/* one primary button recipe: solid brand green, sentence case, no glow */
/* (:not(#nx) lifts these over the older id-level and !important button rules) */
html.ys-next body :is(.btn-primary, .nav-cta, .pkg-btn, .ds-btn-primary, .modal-submit-btn, .pf-pill, .service-path-cta,
  .ys-estimator-next, .es3-quote):not(#nx) {
  background: var(--nx-green) !important; color: var(--nx-green-ink) !important; box-shadow: none !important;
  text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap;
}
html.ys-next body :is(.btn-hollow, .hf-step):not(#nx) { text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; }
html.ys-next body .navigation-link { box-shadow: none !important; }
/* no emoji as icons in the menus */
html.ys-next body .w-dropdown-link::after { content: none !important; }

/* ------------------------------------------------------------ 4 navigation */
@media (min-width: 992px) {
  html.ys-next body .navigation-bar {
    top: var(--nx-space-3) !important; left: 0 !important; right: 0 !important; margin-inline: auto !important;
    width: min(1400px, calc(100% - 28px)) !important; height: 66px !important; min-height: 0 !important;
    border: 1px solid var(--nx-rule) !important; border-radius: 22px !important;
    background-color: var(--nx-nav);
    -webkit-backdrop-filter: blur(22px) saturate(1.7) !important; backdrop-filter: blur(22px) saturate(1.7) !important;
    box-shadow: none !important; transform-origin: 50% 0;
  }
  html.ys-next body .navigation-bar .nav-cont { height: 100% !important; max-width: none !important; padding: 0 var(--nx-space-3) 0 var(--nx-space-5) !important; }
}
/* between tablet and full desktop the menu is tight: a smaller logo and links, and search stays on the keyboard */
@media (min-width: 992px) and (max-width: 1359.98px) {
  html.ys-next .nav-right .nx-search { display: none; }
  html.ys-next body .navigation-bar .logo img { width: 132px !important; height: auto !important; }
  html.ys-next body .navigation-bar .navigation-link { padding-inline: 6px !important; font-size: 13px !important; }
  html.ys-next body .navigation-bar .nav-cont { padding: 0 var(--nx-space-2) 0 var(--nx-space-4) !important; }
}
/* the header settles as the page scrolls, and a hairline under it shows reading progress */
html.ys-next .nx-nav-progress { display: none; }
@supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
  @media (min-width: 992px) {
    html.ys-next .nx-nav-progress {
      display: block; position: absolute; left: 22px; right: 22px; bottom: -1px; height: 2px; border-radius: 2px;
      background: var(--nx-green); pointer-events: none; transform-origin: 0 50%;
      animation: nx-progress linear both; animation-timeline: scroll(block root);
    }
    html.ys-next body .ys-scroll-progress { display: none !important; }
  }
  @media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    html.ys-next body .navigation-bar {
      animation: nx-nav-settle linear both; animation-timeline: scroll(block root); animation-range: 0px 180px;
    }
    html.ys-next .nx-nav-backing {
      animation: nx-fade-in linear both; animation-timeline: scroll(block root); animation-range: 0px 180px;
    }
  }
}
/* a more solid backing fades in behind the links as the page scrolls under the header */
html.ys-next .nx-nav-backing { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--nx-nav-set); opacity: 0; pointer-events: none; }
@media (max-width: 991.98px) { html.ys-next .nx-nav-backing { display: none; } }
html.ys-next .nx-search {
  display: inline-flex; align-items: center; gap: var(--nx-space-2); height: 44px; padding: 0 var(--nx-space-3);
  margin: 0; border: 1px solid var(--nx-rule); border-radius: var(--nx-radius-control); background: transparent;
  color: var(--nx-ink-2); font: 500 var(--nx-text-label)/1 inherit; letter-spacing: 0; white-space: nowrap; cursor: pointer;
  transition: border-color var(--nx-t-short) var(--nx-ease-out), color var(--nx-t-short) var(--nx-ease-out);
}
html.ys-next .nx-search:hover { border-color: var(--nx-rule-2); color: var(--nx-ink); }
html.ys-next .nx-search:active { transform: scale(.97); }
html.ys-next .nx-search svg { width: 17px; height: 17px; flex: none; }
html.ys-next .nx-search-key { color: var(--nx-ink-3); font-size: 13px; }
@media (max-width: 1500px) { html.ys-next .nx-search .nx-search-label { display: none; } }
@media (max-width: 1240px) { html.ys-next .nx-search-key { display: none; } }
@media (max-width: 991.98px) { html.ys-next .nav-right .nx-search { display: none; } }

/* ---------------------------------------------------------- 5 search dialog */
dialog.nx-pal {
  margin: min(14vh, 120px) auto auto; padding: 0; width: min(700px, calc(100% - 32px)); max-height: min(660px, 78dvh);
  border: 1px solid rgba(234, 247, 240, .24); border-radius: 20px; overflow: hidden;
  background: #0a1217; color: #f1faf5; font-family: inherit;
  opacity: 0;
  transition-property: opacity, transform, display, overlay; transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1); transition-behavior: allow-discrete;
}
dialog.nx-pal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 1; }
@starting-style { dialog.nx-pal[open] { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  dialog.nx-pal { transform: translateY(-8px) scale(.98); }
  dialog.nx-pal[open] { transform: none; }
  @starting-style { dialog.nx-pal[open] { transform: translateY(-8px) scale(.98); } }
}
dialog.nx-pal:modal { overscroll-behavior: contain; }
dialog.nx-pal::backdrop {
  overflow: hidden; overscroll-behavior: contain; background-color: rgba(2, 6, 10, 0);
  transition-property: background-color, display, overlay; transition-duration: 220ms;
  transition-timing-function: cubic-bezier(.16, 1, .3, 1); transition-behavior: allow-discrete;
}
dialog.nx-pal[open]::backdrop { background-color: rgba(2, 6, 10, .68); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
@starting-style { dialog.nx-pal[open]::backdrop { background-color: rgba(2, 6, 10, 0); } }
.nx-pal-top { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid rgba(234, 247, 240, .12); }
.nx-pal-top > svg { width: 20px; height: 20px; flex: none; color: rgba(234, 247, 240, .64); }
.nx-pal-input {
  flex: 1; min-width: 0; height: 44px; margin: 0 !important; padding: 0 !important; border: 0 !important; outline: 0 !important;
  background: transparent !important; box-shadow: none !important; color: #f1faf5 !important; font: 500 18px/1.2 inherit !important;
}
.nx-pal-input::placeholder { color: rgba(234, 247, 240, .64); }
.nx-pal-close {
  flex: none; height: 44px; padding: 0 12px; border: 1px solid rgba(234, 247, 240, .24); border-radius: 999px;
  background: transparent; color: rgba(234, 247, 240, .8); font: 500 14px/1 inherit; white-space: nowrap; cursor: pointer;
}
.nx-pal-close:hover { color: #f1faf5; border-color: #f1faf5; }
.nx-pal-form { margin: 0; flex: none; }
.nx-pal-list { overflow: auto; overscroll-behavior: contain; padding: 4px 8px 12px; scrollbar-width: thin; }
.nx-pal-group { margin: 0; padding: 16px 12px 8px; color: rgba(234, 247, 240, .64); font-size: 14px; font-weight: 500; line-height: 1.2; }
.nx-pal-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 12px;
  border: 0; border-radius: 12px; background: transparent; color: #f1faf5; font: inherit; text-align: left; text-decoration: none;
  cursor: pointer; scroll-margin: 48px 0;
}
.nx-pal-item:hover { color: #f1faf5; }
.nx-pal-item[aria-selected="true"] { background: rgba(0, 255, 136, .1); }
.nx-pal-item[aria-selected="true"]::before { content: ""; position: absolute; inset: 10px auto 10px 0; border-inline-start: 3px solid #00ff88; border-radius: 2px; }
.nx-pal-thumb { flex: none; width: 52px; height: 38px; border-radius: 8px; object-fit: cover; display: block; background: #111b21; }
.nx-pal-tx { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.nx-pal-t { font-size: 16px; font-weight: 500; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-pal-d { font-size: 14px; line-height: 1.3; color: rgba(234, 247, 240, .64); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-pal-empty { margin: 0; padding: 32px 16px 48px; text-align: center; color: rgba(234, 247, 240, .8); font-size: 16px; }
.nx-pal-foot { margin: 0; padding: 12px 16px; border-top: 1px solid rgba(234, 247, 240, .12); color: rgba(234, 247, 240, .64); font-size: 14px; line-height: 1.4; }
@media (max-width: 640px) {
  dialog.nx-pal { margin: 0; width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .nx-pal-top { padding-top: max(16px, env(safe-area-inset-top)); }
  .nx-pal-foot { display: none; }
}

/* ------------------------------------------------------------ 6 section rail */
.nx-rail {
  position: fixed; right: 8px; top: 50%; z-index: 200; transform: translateY(-50%);
  display: none; flex-direction: column; padding: 8px 4px; border-radius: 999px;
  background: rgba(5, 10, 14, .52); border: 1px solid rgba(234, 247, 240, .12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; transition: opacity 220ms cubic-bezier(.16, 1, .3, 1), visibility 0s linear 220ms;
}
.nx-rail.is-on { opacity: 1; visibility: visible; transition: opacity 220ms cubic-bezier(.16, 1, .3, 1); }
@media (min-width: 1280px) and (hover: hover) and (pointer: fine) { .nx-rail { display: flex; } }
html.yts-lock .nx-rail { display: none; }
.nx-rail a { position: relative; width: 24px; height: 22px; display: grid; place-items: center; text-decoration: none; }
.nx-rail a::before {
  content: ""; width: 6px; height: 16px; border-radius: 6px; background: rgba(234, 247, 240, .64);
  transform: scaleY(.375); transition: transform 220ms cubic-bezier(.16, 1, .3, 1), background-color 120ms cubic-bezier(.16, 1, .3, 1);
}
.nx-rail a:hover::before { background: #f1faf5; }
.nx-rail a.is-current::before { transform: none; background: #00ff88; }
/* the whole list of section names opens when the pointer or the keyboard is on the rail */
.nx-rail a span {
  position: absolute; right: 32px; top: 50%; transform: translate(6px, -50%); padding: 4px 12px; border-radius: 8px;
  background: #0a1217; border: 1px solid rgba(234, 247, 240, .12); color: rgba(234, 247, 240, .8);
  font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity 220ms cubic-bezier(.16, 1, .3, 1), transform 220ms cubic-bezier(.16, 1, .3, 1);
}
.nx-rail:hover a span, .nx-rail:focus-within a span { opacity: 1; transform: translate(0, -50%); }
.nx-rail a:hover span, .nx-rail a.is-current span { color: #f1faf5; border-color: rgba(234, 247, 240, .24); }

/* the glass tour player's title is an h2: keep page heading rules from blowing it up */
html.ys-next body .yts .yts-title { margin: 0 !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.25 !important; letter-spacing: 0 !important; color: var(--nx-ink) !important; }

/* ----------------------------------------------------------------- 7 buttons */
html.ys-next .nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--nx-space-2); height: 48px; padding: 0 var(--nx-space-5);
  border: 1px solid var(--nx-rule-2); border-radius: var(--nx-radius-control); background: transparent;
  color: var(--nx-ink); font: 600 16px/1 inherit; letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color var(--nx-t-short) var(--nx-ease-out), background-color var(--nx-t-short) var(--nx-ease-out), transform var(--nx-t-micro) var(--nx-ease-out);
}
html.ys-next .nx-btn:hover { border-color: var(--nx-ink); color: var(--nx-ink); }
html.ys-next .nx-btn:active { transform: scale(.97); }
html.ys-next .nx-btn:disabled, html.ys-next .nx-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
html.ys-next .nx-btn svg { width: 18px; height: 18px; flex: none; }
html.ys-next .nx-btn-primary { background: var(--nx-green); border-color: var(--nx-green); color: var(--nx-green-ink); }
html.ys-next .nx-btn-primary:hover { background: var(--nx-ink); border-color: var(--nx-ink); color: var(--nx-green-ink); }
html.ys-next .nx-link { color: var(--nx-ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
html.ys-next .nx-link:hover { color: var(--nx-green); }

/* -------------------------------------------------------------- 8 live tour deck */
/* the deck has no visible heading, so it sits closer to what precedes it */
html.ys-next .nx-deck { padding: var(--nx-space-7) clamp(var(--nx-space-4), 4vw, var(--nx-space-7)) clamp(var(--nx-space-8), 9vw, var(--nx-space-10)) !important; color: var(--nx-ink); text-align: left; }
html.ys-next .nx-deck-wrap { max-width: var(--nx-container); margin: 0 auto; }
html.ys-next .nx-deck-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--nx-space-4) var(--nx-space-8); align-items: end; margin: 0 0 var(--nx-space-7); }
html.ys-next .nx-deck-head h2 {
  margin: 0 !important; min-width: 0; color: var(--nx-ink); font-size: var(--nx-text-section) !important; font-weight: 600;
  line-height: 1.04 !important; letter-spacing: -.035em; text-align: left; text-shadow: none;
}
html.ys-next .nx-lede { margin: 0; max-width: 52ch; color: var(--nx-ink-2); font-size: var(--nx-text-body); line-height: 1.6; text-align: left; }

html.ys-next .nx-deck-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--nx-space-6); align-items: start; }
html.ys-next .nx-deck-main { min-width: 0; display: flex; flex-direction: column; gap: var(--nx-space-5); }

html.ys-next .nx-stage {
  position: relative; aspect-ratio: 16 / 9; max-height: min(74dvh, 760px); width: 100%; overflow: hidden;
  border-radius: var(--nx-radius-card); background: var(--nx-surface); border: 1px solid var(--nx-rule);
}
html.ys-next .nx-stage-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity var(--nx-t-long) var(--nx-ease-out); }
html.ys-next .nx-stage-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, var(--nx-veil), transparent 30%); transition: opacity var(--nx-t-long) var(--nx-ease-out); }
html.ys-next .nx-stage-frame { position: absolute; inset: 0; }
html.ys-next .nx-stage-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; opacity: 0; transition: opacity var(--nx-t-long) var(--nx-ease-out); }
html.ys-next .nx-stage.is-live .nx-stage-frame iframe { opacity: 1; }
html.ys-next .nx-stage.is-live .nx-stage-poster,
html.ys-next .nx-stage.is-live .nx-stage-veil { opacity: 0; pointer-events: none; }
html.ys-next .nx-stage.is-live .nx-enter,
html.ys-next .nx-stage.is-loading .nx-enter { opacity: 0; visibility: hidden; pointer-events: none; }

/* glass controls on the stage, matching the tour player: beside the tour, never across it once it is in use */
html.ys-next .nx-glass {
  background: var(--nx-glass); border: 1px solid var(--nx-glass-rule);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
}
html.ys-next .nx-hud {
  position: absolute; left: var(--nx-space-4); top: var(--nx-space-4); z-index: 3; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: var(--nx-space-3); padding: 6px var(--nx-space-4) 6px 6px; border-radius: var(--nx-radius-control);
  transition: opacity var(--nx-t-short) var(--nx-ease-out);
}
/* the title pill belongs to the poster: once the tour is in, nothing of ours sits over its menus */
html.ys-next .nx-stage.is-live .nx-hud { opacity: 0; visibility: hidden; pointer-events: none; }
html.ys-next .nx-live {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--nx-space-3);
  border-radius: var(--nx-radius-control); background: var(--nx-tint); color: var(--nx-ink);
  font-size: var(--nx-text-label); font-weight: 500; line-height: 1; white-space: nowrap;
}
html.ys-next .nx-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--nx-green); }
html.ys-next .nx-hud-text { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
html.ys-next .nx-hud-title { font-size: 16px; font-weight: 600; color: var(--nx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ys-next .nx-hud-place { font-size: var(--nx-text-label); color: var(--nx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

html.ys-next .nx-enter {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: var(--nx-space-3); height: 52px; padding: 0 6px 0 var(--nx-space-5);
  border-radius: var(--nx-radius-control); color: var(--nx-ink); font: 600 17px/1 inherit; white-space: nowrap; cursor: pointer;
  transition: opacity var(--nx-t-short) var(--nx-ease-out), visibility var(--nx-t-short), border-color var(--nx-t-short) var(--nx-ease-out);
}
html.ys-next .nx-enter:hover { border-color: var(--nx-ink); }
html.ys-next .nx-enter:active { transform: translate(-50%, -50%) scale(.97); }
html.ys-next .nx-enter-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--nx-ink); color: var(--nx-green-ink); }
html.ys-next .nx-enter-ic svg { width: 18px; height: 18px; }
html.ys-next .nx-loading {
  position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
  display: none; align-items: center; gap: var(--nx-space-3); height: 48px; padding: 0 var(--nx-space-5) 0 var(--nx-space-4);
  border-radius: var(--nx-radius-control); color: var(--nx-ink); font-size: 16px; font-weight: 500; white-space: nowrap;
}
html.ys-next .nx-stage.is-loading .nx-loading { display: inline-flex; }
html.ys-next .nx-ring { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--nx-rule-2); border-top-color: var(--nx-green); animation: nx-spin .9s linear infinite; }
/* an autoloaded tour waits behind a shield, so the mouse wheel keeps scrolling the page */
html.ys-next .nx-shield { position: absolute; inset: 0; z-index: 2; display: none; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
html.ys-next .nx-stage.is-live.is-shielded .nx-shield { display: flex; }
html.ys-next .nx-shield span { display: inline-flex; align-items: center; gap: var(--nx-space-2); height: 44px; padding: 0 var(--nx-space-4); border-radius: var(--nx-radius-control); color: var(--nx-ink); font-size: 16px; font-weight: 600; }
html.ys-next .nx-shield svg { width: 18px; height: 18px; }

html.ys-next .nx-info { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--nx-space-4) var(--nx-space-6); align-items: center; }
html.ys-next .nx-blurb { margin: 0; max-width: 60ch; color: var(--nx-ink); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; text-align: left; }
html.ys-next .nx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--nx-space-3) var(--nx-space-4); justify-content: flex-end; }

/* the tour list: plain rows with hairlines, not a card of cards */
html.ys-next .nx-list { min-width: 0; }
html.ys-next .nx-list-head { margin: 0 0 var(--nx-space-2); padding: 0 var(--nx-space-3); color: var(--nx-ink-3); font-size: var(--nx-text-label); font-weight: 500; line-height: 1.4; text-align: left; }
html.ys-next .nx-tours { display: flex; flex-direction: column; }
html.ys-next .nx-tour {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--nx-space-3); align-items: center; width: 100%;
  padding: var(--nx-space-2) var(--nx-space-3); border: 0; border-top: 1px solid var(--nx-rule); border-radius: 0; background: transparent;
  color: var(--nx-ink); font: inherit; text-align: left; cursor: pointer;
  transition: background-color var(--nx-t-micro) var(--nx-ease-out);
}
html.ys-next .nx-tour:first-child { border-top-color: transparent; }
html.ys-next .nx-tour:hover { background-color: var(--nx-surface); }
html.ys-next .nx-tour[aria-selected="true"] { background-color: var(--nx-surface-2); }
html.ys-next .nx-tour[aria-selected="true"]::after { content: ""; position: absolute; inset: 0 auto 0 0; border-inline-start: 3px solid var(--nx-green); }
html.ys-next .nx-tour img { width: 72px; height: 52px; border-radius: 6px; object-fit: cover; display: block; background: var(--nx-surface-2); }
html.ys-next .nx-tour-tx { min-width: 0; display: flex; flex-direction: column; gap: var(--nx-space-1); }
html.ys-next .nx-tour-name { font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ys-next .nx-tour-kind { font-size: var(--nx-text-label); line-height: 1.25; color: var(--nx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.ys-next .nx-deck-close { margin: var(--nx-space-7) 0 0; color: var(--nx-ink-2); font-size: var(--nx-text-body); line-height: 1.5; text-align: left; }

@property --nx-fade-start { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --nx-fade-end { syntax: "<length>"; inherits: false; initial-value: 0px; }
@keyframes nx-fade-start { to { --nx-fade-start: 48px; } }
@keyframes nx-fade-end { from { --nx-fade-end: 48px; } }

@media (max-width: 1080px) {
  html.ys-next .nx-deck-head { grid-template-columns: minmax(0, 1fr); margin-bottom: var(--nx-space-6); }
  html.ys-next .nx-deck-body { display: flex; flex-direction: column; align-items: stretch; gap: var(--nx-space-4); }
  html.ys-next .nx-deck-main { display: contents; }
  html.ys-next .nx-stage { order: 1; }
  html.ys-next .nx-list { order: 2; }
  html.ys-next .nx-info { order: 3; grid-template-columns: minmax(0, 1fr); }
  html.ys-next .nx-actions { justify-content: flex-start; }
  html.ys-next .nx-list-head { padding: 0; }
  /* tabs that do not fit stay on one row and scroll, with the far edge fading where more follow */
  html.ys-next .nx-tours { flex-direction: row; overflow-x: auto; scroll-snap-type: inline proximity; scroll-padding-inline: 48px; scrollbar-width: none; }
  html.ys-next .nx-tours::-webkit-scrollbar { display: none; }
  html.ys-next .nx-tour { flex: none; width: 236px; scroll-snap-align: start; border-top: 0; border-left: 1px solid var(--nx-rule); }
  html.ys-next .nx-tour:first-child { border-left-color: transparent; }
  html.ys-next .nx-tour[aria-selected="true"]::after { inset: auto 0 0 0; border-inline-start: 0; border-block-end: 3px solid var(--nx-green); }
  @supports ((animation-timeline: scroll()) and (animation-range: 0% 100%)) {
    html.ys-next .nx-tours {
      mask:
        linear-gradient(black, black) no-clip subtract,
        linear-gradient(to right, black, transparent) 0 0 / var(--nx-fade-start) 100% no-repeat no-clip,
        linear-gradient(to right, transparent, black) 100% 0 / var(--nx-fade-end) 100% no-repeat no-clip;
      animation: nx-fade-start linear both, nx-fade-end linear both;
      animation-timeline: scroll(self inline);
      animation-range: 0 48px, calc(100% - 48px) 100%;
    }
  }
}
@media (max-width: 640px) {
  html.ys-next .nx-stage { aspect-ratio: 4 / 5; max-height: 72dvh; }
  html.ys-next .nx-hud { left: var(--nx-space-3); top: var(--nx-space-3); max-width: calc(100% - 24px); }
  html.ys-next .nx-actions .nx-btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------ 9 case study cards */
html.ys-next .nx-cases { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--nx-space-6) var(--nx-space-5); margin: 0; padding: 0; }
html.ys-next .nx-case { position: relative; grid-column: span 5; min-width: 0; display: flex; flex-direction: column; gap: var(--nx-space-4); text-align: left; }
html.ys-next .nx-case:nth-child(4n + 1), html.ys-next .nx-case:nth-child(4n) { grid-column: span 7; }
html.ys-next .nx-case-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--nx-radius-card); border: 1px solid var(--nx-rule); background: var(--nx-surface); transition: border-color var(--nx-t-short) var(--nx-ease-out); }
html.ys-next .nx-case:nth-child(4n + 1) .nx-case-media, html.ys-next .nx-case:nth-child(4n) .nx-case-media { aspect-ratio: 16 / 9; }
html.ys-next .nx-case-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.ys-next .nx-case:hover .nx-case-media { border-color: var(--nx-ink); }
html.ys-next .nx-case-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--nx-space-2) var(--nx-space-5); align-items: start; }
html.ys-next .nx-case h3 { grid-column: 1; margin: 0 !important; color: var(--nx-ink); font-size: clamp(22px, 2vw, 28px) !important; font-weight: 600; line-height: 1.15 !important; letter-spacing: -.02em; }
html.ys-next .nx-case h3 a { color: inherit; text-decoration: none; }
html.ys-next .nx-case h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
html.ys-next .nx-case-kind { grid-column: 1; margin: 0; color: var(--nx-ink-3); font-size: var(--nx-text-label); line-height: 1.4; }
html.ys-next .nx-case-text { grid-column: 1; margin: 0; max-width: 56ch; color: var(--nx-ink-2); font-size: 16px; line-height: 1.55; }
html.ys-next .nx-case .nx-btn { position: relative; z-index: 2; grid-column: 2; grid-row: 1 / span 3; align-self: start; }
@media (max-width: 1000px) {
  html.ys-next .nx-case, html.ys-next .nx-case:nth-child(4n + 1), html.ys-next .nx-case:nth-child(4n) { grid-column: span 6; }
  html.ys-next .nx-case-body { grid-template-columns: minmax(0, 1fr); }
  html.ys-next .nx-case .nx-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--nx-space-2); }
}
@media (max-width: 640px) {
  html.ys-next .nx-case, html.ys-next .nx-case:nth-child(4n + 1), html.ys-next .nx-case:nth-child(4n) { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------- 10 phone dock */
.nx-dock {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 300;
  display: none; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(4, 9, 13, .88); border: 1px solid rgba(234, 247, 240, .24);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  transform: translate(-50%, 160%); transition: transform 420ms cubic-bezier(.16, 1, .3, 1);
}
.nx-dock.is-on { transform: translate(-50%, 0); }
@media (max-width: 820px) {
  .nx-dock { display: flex; }
  html.ys-next body .ys-mob-bar, html.ys-next body .ys-fab { display: none !important; }
}
html.yts-lock .nx-dock, html.nx-typing .nx-dock, html:has(dialog.nx-pal[open]) .nx-dock { transform: translate(-50%, 160%); }
.nx-dock a, .nx-dock button {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-width: 68px; height: 52px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent;
  color: #f1faf5; font: 500 12px/1 inherit; letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nx-dock svg { width: 20px; height: 20px; }
.nx-dock a:active, .nx-dock button:active { background: rgba(234, 247, 240, .12); }
.nx-dock .is-primary { background: #00ff88; color: #00170e; }
/* five actions: share the width so the dock fits a 320px phone */
.nx-dock { width: max-content; max-width: calc(100vw - 16px); }
@media (max-width: 420px) {
  .nx-dock { width: calc(100vw - 16px); }
  .nx-dock a, .nx-dock button { flex: 1 1 0; min-width: 0; padding: 0 2px; font-size: 11px; }
}

/* ------------------------------------------------- 11 focus and reduced motion */
html.ys-next a:focus-visible, html.ys-next button:focus-visible, html.ys-next [role="tab"]:focus-visible,
html.ys-next summary:focus-visible, .nx-rail a:focus-visible, .nx-dock a:focus-visible, .nx-dock button:focus-visible,
.nx-pal-close:focus-visible { outline: 2px solid #00ff88; outline-offset: 3px; transition: none; }
html.ys-next .nx-tour:focus-visible { outline-offset: -2px; }

@media (prefers-reduced-motion: reduce) {
  dialog.nx-pal, dialog.nx-pal::backdrop { transition-duration: 100ms; }
  .nx-dock, .nx-rail, .nx-rail a::before, .nx-rail a span,
  html.ys-next .nx-stage *, html.ys-next .nx-btn, html.ys-next .nx-tour, html.ys-next .nx-case-media { transition: none !important; }
  html.ys-next .nx-ring { animation: none; }
}
