/* Global chrome: the fixed nav (wordmark, chapter label, two doors, menu),
   the menu sheet, the phone dock and the phone film progress line.
   sh-chrome.js owns every state class used here. */
.sh-nav {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 16px; padding: 0 var(--sh-gutter); color: var(--sh-fg);
  background: linear-gradient(180deg, rgba(7, 8, 10, .5), rgba(7, 8, 10, 0)); border-bottom: 1px solid transparent;
  transition: background-color var(--sh-dur-2), border-color var(--sh-dur-2);
}
.sh-nav.is-solid { background: rgba(7, 8, 10, .92); border-bottom-color: var(--sh-line); }
html[data-tier="full"] .sh-nav.is-solid { background: rgba(7, 8, 10, .72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.sh-mark { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--sh-fg); font: 700 18px/1 var(--sh-font-sans); letter-spacing: -.02em; text-decoration: none; }
.sh-nav__label {
  display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; color: var(--sh-fg);
  font: 500 11px/1 var(--sh-font-mono); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap;
}
.sh-nav__label i { display: block; width: 1px; height: 7px; background: var(--sh-fg); opacity: .28; }
.sh-nav__label i.is-on { width: 2px; background: var(--sh-gold); opacity: 1; }
.sh-nav__label b { margin: 0 8px; font-weight: 500; }
.sh-nav__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.sh-nav .sh-btn { min-height: 40px; padding: 0 16px; font-size: 13px; }
.sh-nav__menu { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--sh-fg); cursor: pointer; }
.sh-nav__menu:hover { background: var(--sh-glass); }
.sh-nav__menu svg { width: 22px; height: 22px; }
.sh-nav__progress { display: none; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--sh-gold); transform: scaleX(0); transform-origin: left; }

/* Menu: a black sheet from the right; the page behind is inert and dimmed. */
.sh-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 90; width: min(480px, 100vw); display: flex; flex-direction: column; gap: 28px;
  padding: 12px var(--sh-gutter) calc(28px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--sh-ink-0);
  border-left: 1px solid var(--sh-line); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .62);
}
.sh-menu.is-open { animation: sh-menu-in var(--sh-dur-2) var(--sh-ease-out) both; }
@keyframes sh-menu-in { from { opacity: 0; transform: translateX(28px); } }
.sh-menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.sh-menu__close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 999px; background: none; color: var(--sh-fg); cursor: pointer; }
.sh-menu__close:hover { background: var(--sh-glass); }
.sh-menu__close svg { width: 20px; height: 20px; }
.sh-menu__links { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: menu; }
.sh-menu__links a {
  display: flex; align-items: baseline; gap: 16px; min-height: 46px; padding: 6px 0; border-bottom: 1px solid var(--sh-line);
  color: var(--sh-fg); font: 600 clamp(21px, 3.2vw, 26px)/1.1 var(--sh-font-sans); letter-spacing: -.03em; text-decoration: none;
}
.sh-menu__links a::before { counter-increment: menu; content: counter(menu, decimal-leading-zero); min-width: 2.2em; color: var(--sh-fg-3); font: 500 11px/1 var(--sh-font-mono); letter-spacing: .14em; }
.sh-menu__links a:hover { color: var(--sh-gold-hi); }
.sh-menu__small { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.sh-menu__small a { display: inline-flex; align-items: center; min-height: 44px; color: var(--sh-fg-2); font-size: 14px; }
.sh-menu__doors { display: flex; flex-wrap: wrap; gap: 10px; }
.sh-lang { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.sh-lang__label { margin-right: 10px; color: var(--sh-fg-3); font: 700 11px/1 var(--sh-font-mono); letter-spacing: .2em; text-transform: uppercase; }
.sh-lang button {
  min-width: 44px; min-height: 44px; padding: 0 10px; border: 1px solid var(--sh-line-2); border-radius: 999px; background: none;
  color: var(--sh-fg-2); font: 600 12px/1 var(--sh-font-mono); letter-spacing: .12em; cursor: pointer;
}
.sh-lang button[aria-pressed="true"] { border-color: var(--sh-gold); color: var(--sh-gold-hi); }
.sh-lang button:hover { color: var(--sh-fg); }

/* Phone dock: two doors, equal width, after the first chapter. */
.sh-dock { display: none; }

@media (max-width: 899px) { .sh-nav__label { display: none; } .sh-nav { grid-template-columns: 1fr auto; } }
@media (max-width: 767px) and (orientation: portrait) {
  .sh-nav { height: 56px; }
  .sh-nav__talk { display: none; }
  html.film-live .sh-nav.is-film .sh-nav__progress { display: block; }
  .sh-dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 18px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(7, 8, 10, 0), rgba(7, 8, 10, .92) 42%);
    opacity: 0; visibility: hidden; transform: translateY(24px);
    transition: opacity var(--sh-dur-2) var(--sh-ease-out), transform var(--sh-dur-2) var(--sh-ease-out), visibility 0s var(--sh-dur-2);
  }
  .sh-dock.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .sh-dock .sh-btn { min-height: 56px; }
}
@media (max-height: 500px) and (orientation: landscape) { .sh-nav { height: 48px; } }

/* Footer (interim; part 3 rebuilds it in sh-close.css). */
.sh-footer { padding: 55px 0 32px; border-top: 1px solid var(--line); }
.sh-footer__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.sh-footer .sh-mark { display: block; color: var(--ink-bright); font-family: var(--serif); font-size: 32px; font-weight: 600; letter-spacing: -.055em; }
.sh-footer__studio { display: block; margin-top: 12px; font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.sh-footer__links { display: flex; flex-wrap: wrap; gap: 6px 26px; padding: 0; margin: 0; list-style: none; }
.sh-footer__links a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 11px; text-decoration: none; }
.sh-footer__links a:hover { text-decoration: underline; }
.sh-footer__bottom { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 24px; }
.sh-footer__fine { max-width: 740px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.sh-footer__bottom > span { white-space: nowrap; font-size: 8px; letter-spacing: .12em; color: var(--muted); }
