/* Shared TheMesh framing, based on the existing Home / Scale / Contact shell.
   Load last on every page. Page-specific styles must not redefine these components. */
:root { --site-ink: #111; --site-muted: #4b4b4b; --site-line: #e8e7e4; --site-orange: #ff5c35; --site-caption: 13px; --site-nav-height: 77px; }
.skip-link { position: fixed; left: 24px; top: -100px; background: #111; color: #fff; padding: 16px; z-index: 1100; text-decoration: none; }
.skip-link:focus { top: 12px; }
.navbar, .footer, .btn { font-family: 'RB Rational Neue', system-ui, sans-serif; }
.navbar { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--site-line); line-height: 1.65; }
.navbar.scrolled { box-shadow: 0 2px 8px #0000000f; }
.navbar-container { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.navbar-brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; font-size: 20px; font-weight: 700; color: #111; }
.navbar-brand img { height: 32px; width: auto; max-width: 120px; object-fit: contain; display: block; }
.navbar-nav { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.navbar-nav a { color: #6b6b6b; font-size: 15px; font-weight: 500; text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.navbar-nav a:hover, .navbar-nav a.active, .navbar-nav [aria-current="page"] { color: #111; }
.navbar-toggle { display: none; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--site-line); border-radius: 8px; background: #fff; color: #111; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn, .hero-actions .btn, .closing-action .closing-cta, .ownership .ownership-cta { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; padding: 12px 24px; font-size: 14px; font-weight: 500; line-height: 1.65; letter-spacing: 0; text-decoration: none; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn.btn-primary { background: var(--site-orange); color: #111; }
.btn.btn-primary:hover { background: #e54a26; color: #111; }
.btn.btn-outline { background: transparent; border-color: #111; color: #111; }
.btn.btn-outline:hover { background: #f4f3f0; }
.btn.btn-outline-orange { background: transparent; border-color: #c43e1f; color: #c43e1f; }
.btn.btn-outline-orange:hover { background: #fff0ec; }
.btn.btn-outline-green { background: transparent; border-color: #007a49; color: #007a49; }
.btn.btn-outline-green:hover { background: #f0fbf5; }
.btn.btn-outline-purple { background: transparent; border-color: #5b54b3; color: #5b54b3; }
.btn.btn-outline-purple:hover { background: #f2f1fb; }
.btn.btn-purple { background: #655dbd; color: #fff; }
.btn.btn-purple:hover { background: #514aa5; }
.btn.btn-green { background: #007a49; color: #fff; }
.btn.btn-green:hover { background: #00633c; }
.btn-inverse, .closing-action .closing-cta, .ownership .ownership-cta { background: #111; color: #fff; }
.btn-inverse:hover, .closing-action .closing-cta:hover, .ownership .ownership-cta:hover { background: #333; color: #fff; }
.btn-small { padding: 8px 16px; font-size: 14px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; }
.closing-action .closing-cta > span, .ownership .ownership-cta > span { font-size: 20px; line-height: 1; }
.footer { position: relative; z-index: 1; background: #f9f9f8; border-top: 1px solid var(--site-line); padding: 48px 24px; line-height: 1.65; }
.footer-content { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.footer-brand h3 { color: #111; font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: 0; margin: 0 0 4px; }
.footer-brand p { color: #6b6b6b; font-size: 14px; margin: 0; }
.footer-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: #111; text-decoration: none; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: #c43e1f; text-decoration: underline; }
.footer-copyright { text-align: right; }
.footer-copyright p { color: #6b6b6b; font-size: 13px; margin: 0; }
.brand-symbol { display: block; width: 56px; height: auto; flex-shrink: 0; }
/* Shared focus and readable support text, not the decorative microcopy in the machine. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, video:focus-visible { outline: 3px solid #b83213; outline-offset: 3px; }
.stage-disclaimer, .disclosure, .player-status, .swipe-journey .player-status, .dialog-note, .vault-visual-note { font-size: var(--site-caption); line-height: 1.6; color: var(--site-muted); }
.player-meta, .player-heading .player-meta, .stage-progress, .chapter-kicker, .chapter-outcome, .swipe-journey .chapter-kicker, .swipe-journey .chapter-outcome, .eyebrow, .closing-top .eyebrow, .ownership-top .eyebrow, .vault-copy .eyebrow, .vault-steps, .vault-scroll-hint, .vault-tools, .chapter-swipe-controls > span, .platform-logos figcaption, .platforms-footnote small, .motion-button, .hero .motion-button, .hero-label, .hero.ai-hero .hero-label, .section-label, .explore-link small { font-size: 12px; line-height: 1.6; }
.player-actions button, .player-choices button, .chapter-switcher button, .dialog-close, #ownership-reveal { font-size: 14px; line-height: 1.5; min-height: 44px; }
.chapter-switcher button { font-size: 12px; }
.platforms-footnote small { color: #111; }
.card-category, .chat-role { font-size: 12px; line-height: 1.6; }
.navbar ~ main { scroll-margin-top: var(--site-nav-height); }
/* The shared sticky navbar must not cover the AI journey or machine. */
.journey, .local-vault, .ownership { scroll-margin-top: var(--site-nav-height); }
.vault-animated .vault-sticky { top: var(--site-nav-height); height: calc(100svh - var(--site-nav-height)); }
.vault-scene { height: min(calc(76svh - var(--site-nav-height)), 740px); }
.chapter { scroll-margin-top: calc(var(--site-nav-height) + 16px); }
#chapter-slides { scroll-margin-top: var(--site-nav-height); }
@media(min-width:901px) and (min-height:651px) {
  .stage-sticky { top: calc(var(--site-nav-height) + 16px); }
  .desktop-stage video { max-height: calc(100svh - var(--site-nav-height) - 350px); }
}
@media(max-width:992px) {
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-nav ul { justify-content: center; flex-wrap: wrap; }
  .footer-copyright { text-align: center; }
}
@media(max-width:900px) {
  .vault-scene { height: min(34svh, 330px); }
}
@media(max-width:768px) {
  .footer-nav ul { flex-direction: column; gap: 16px; }
  .navbar-container { gap: 10px; }
  .navbar-brand img { height: 24px; max-width: 90px; }
  .shell-ready .navbar-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .shell-ready .navbar-nav { display: none; }
  .shell-ready .navbar-nav.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px; gap: 12px; border-bottom: 1px solid var(--site-line); box-shadow: 0 8px 20px #00000014; }
  .navbar-nav.mobile-open a { min-height: 44px; justify-content: center; }
  html:not(.shell-ready) .navbar-container { flex-wrap: wrap; }
  html:not(.shell-ready) .navbar-nav { order: 3; display: flex; justify-content: center; width: 100%; flex-wrap: wrap; gap: 16px; }
  .brand-symbol { width: 40px; }
}
@media(max-width:480px) {
  .navbar-container { padding-inline: 14px; }
  .navbar .btn-small { padding-inline: 11px; font-size: 12px; }
}
@media(prefers-reduced-motion:reduce) { .btn { transition: none; } }
@media (prefers-reduced-motion: reduce), (max-height:650px), (max-width:900px) and (max-height:760px) {
  .vault-animated .vault-sticky { height: auto; position: static; }
}
