/* Night Shift COO: shared product scenes, the night sky and reveals. DRAFT, not published.
   Scenes always sit on the night sky, so they keep their own dark look in light and dark mode. */
@font-face { font-family: "Geist"; src: url("../fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.scene { --s-bg: rgba(20, 22, 22, 0.86); --s-2: rgba(242, 244, 243, 0.06); --s-line: rgba(242, 244, 243, 0.1);
  --s-ink: #f2f4f3; --s-body: #c4cac7; --s-muted: #8b9390; --s-mint: #8ee6d0;
  position: relative; font-family: "Geist", system-ui, sans-serif; color: var(--s-body); font-size: 13.5px; line-height: 1.4;
  background: var(--s-bg); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--s-line), 0 24px 60px -30px rgba(0, 0, 0, 0.7);
  padding: 14px; overflow: hidden; min-width: 0; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.scene.big { padding: 18px; font-size: 14.5px; }
.scene b, .scene strong { color: var(--s-ink); font-weight: 600; }
.scene .s-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 13px; color: var(--s-muted); }
.scene .s-head b { font-size: 14.5px; }
.scene .s-note { margin-top: 10px; font-size: 11.5px; color: var(--s-muted); }
.scene .s-in { opacity: 0; transform: translateY(10px); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.scene .s-in.on { opacity: 1; transform: none; }
.scene button { font: 600 12.5px "Geist", sans-serif; border: 0; border-radius: 999px; padding: 7px 13px; background: var(--s-mint); color: #141616; cursor: pointer; white-space: nowrap; transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease; }
.scene button:active { transform: scale(0.96); }
.scene button.done { background: rgba(142, 230, 208, 0.14); color: var(--s-mint); }
.scene button.press { transform: scale(0.92); }
.scene .s-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 11px; border-radius: 12px; background: var(--s-2); margin-top: 7px; min-width: 0; }
.scene .s-row > div { min-width: 0; }
.scene .s-row strong { display: block; font-size: 13.5px; }
.scene .s-row small { display: block; color: var(--s-muted); font-size: 12px; }

/* report */
.s-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.big .s-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 559px) { .big .s-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.s-kpis div { background: var(--s-2); border-radius: 12px; padding: 10px; }
.s-kpis b { display: block; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.s-kpis span { font-size: 11.5px; color: var(--s-muted); }
.s-what { margin-top: 8px; background: rgba(142, 230, 208, 0.1); border-radius: 12px; padding: 9px 11px; font-size: 12.5px; }
.s-what b { color: var(--s-mint); }

/* search (church) */
.s-search { display: flex; align-items: center; gap: 8px; background: var(--s-2); border-radius: 999px; padding: 9px 14px; box-shadow: inset 0 0 0 1px var(--s-line); }
.s-search svg { flex: none; }
.s-search input, .s-search .typed { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--s-ink); font: 500 14px "Geist", sans-serif; }
.s-search .typed::after { content: ""; display: inline-block; width: 1.5px; height: 1em; background: var(--s-mint); vertical-align: -2px; margin-left: 1px; animation: s-blink 1s steps(1) infinite; }
@keyframes s-blink { 50% { opacity: 0; } }
.s-hit { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; }
.s-hit mark { background: rgba(142, 230, 208, 0.22); color: var(--s-ink); border-radius: 4px; padding: 0 3px; }
.s-time { font: 600 12px "Geist", sans-serif; color: var(--s-mint); font-variant-numeric: tabular-nums; }
.s-empty { padding: 14px 4px 2px; color: var(--s-muted); font-size: 13px; }

/* ask (archive) */
.s-chat { display: grid; gap: 8px; }
.s-q { justify-self: end; max-width: 85%; background: var(--s-mint); color: #141616; padding: 9px 12px; border-radius: 14px 14px 4px 14px; font-weight: 500; }
.s-a { justify-self: start; max-width: 92%; background: var(--s-2); padding: 10px 12px; border-radius: 14px 14px 14px 4px; color: var(--s-body); }
.s-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--s-muted); margin-right: 4px; animation: s-dot 1s ease-in-out infinite; }
.s-dots span:nth-child(2) { animation-delay: 0.15s; } .s-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes s-dot { 0%, 100% { transform: translateY(0); opacity: 0.4; } 50% { transform: translateY(-4px); opacity: 1; } }
.s-cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.s-cites span { font-size: 11.5px; font-weight: 600; color: var(--s-mint); background: rgba(142, 230, 208, 0.12); border-radius: 999px; padding: 3px 9px; }
.s-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.s-pick button { background: var(--s-2); color: var(--s-ink); box-shadow: inset 0 0 0 1px var(--s-line); font-weight: 500; }
.s-pick button.on { background: rgba(142, 230, 208, 0.16); color: var(--s-mint); }

/* cuts (promo video) */
.s-stage { display: grid; place-items: center; height: 230px; }
.big .s-stage { height: min(62vh, 440px); }
.s-frame { position: relative; height: 100%; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden; background: #000;
  transition: aspect-ratio 0.9s cubic-bezier(0.65, 0, 0.35, 1), width 0.9s cubic-bezier(0.65, 0, 0.35, 1); box-shadow: 0 0 0 1px var(--s-line); }
@supports not (aspect-ratio: 1) { .s-frame { width: 100%; } }
.s-frame img, .s-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform: scale(1.04); animation: s-ken 9s ease-in-out infinite alternate; }
@keyframes s-ken { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.s-frame .s-bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.s-frame .s-bar i { position: absolute; inset: 0; background: var(--s-mint); transform-origin: left; transform: scaleX(0); }
.s-frame .s-cap { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); white-space: nowrap; font: 600 12px "Geist", sans-serif; color: #fff; background: rgba(0, 0, 0, 0.55); padding: 4px 9px; border-radius: 6px; }
.s-ratios { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.s-ratios button { background: var(--s-2); color: var(--s-body); box-shadow: inset 0 0 0 1px var(--s-line); font-weight: 500; }
.s-ratios button.on { background: var(--s-mint); color: #141616; }

/* team (AI operator) */
.s-team { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 54px 40px; padding: 6px 2px; }
.s-agent { position: relative; z-index: 1; background: var(--s-2); border-radius: 12px; padding: 9px 10px; box-shadow: inset 0 0 0 1px var(--s-line); transition: box-shadow 0.3s ease, background 0.3s ease; }
.s-agent b { display: block; font-size: 13px; }
.s-agent span { font-size: 11.5px; color: var(--s-muted); }
.s-agent.work { box-shadow: inset 0 0 0 1px var(--s-mint); background: rgba(142, 230, 208, 0.1); }
.s-agent.work span { color: var(--s-mint); }
.s-you { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: #141616; box-shadow: inset 0 0 0 1.5px var(--s-mint);
  display: grid; place-items: center; text-align: center; font-size: 11px; color: var(--s-muted); line-height: 1.2; }
.s-you b { display: block; font-size: 18px; color: var(--s-mint); font-variant-numeric: tabular-nums; }
.s-team svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.s-team line { stroke: rgba(242, 244, 243, 0.12); stroke-width: 1.5; stroke-dasharray: 3 5; }
.s-pulse { position: absolute; z-index: 1; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--s-mint); opacity: 0; }
.s-train { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.s-train span { font-size: 11.5px; border-radius: 999px; padding: 3px 9px; background: var(--s-2); color: var(--s-body); box-shadow: inset 0 0 0 1px var(--s-line); }
.s-train span.on { color: #141616; background: var(--s-mint); box-shadow: none; }

/* subs */
.s-stamp { font: 700 11px "Geist", sans-serif; letter-spacing: 0.06em; border-radius: 6px; padding: 4px 8px; opacity: 0; transform: scale(1.6) rotate(-8deg); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.s-stamp.on { opacity: 1; transform: scale(1) rotate(-4deg); }
.s-stamp.keep { color: var(--s-mint); box-shadow: inset 0 0 0 1.5px var(--s-mint); }
.s-stamp.cut { color: #f08a7a; box-shadow: inset 0 0 0 1.5px #f08a7a; }
.s-stamp.replace { color: #141616; background: var(--s-mint); }
.s-row.cutrow strong { text-decoration: line-through; text-decoration-color: #f08a7a; color: var(--s-muted); }
.s-own { margin-top: 10px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12.5px; padding: 10px 11px; border-radius: 12px; background: rgba(142, 230, 208, 0.1); }
.s-own b { color: var(--s-mint); }
.big .s-row { cursor: pointer; }

/* reveal helpers */
[data-in] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1); }
[data-in].seen { opacity: 1; transform: none; }
.litwords span { display: inline-block; opacity: 0.18; transition: opacity 0.4s ease; }
.litwords span.lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .scene *, [data-in] { transition: none !important; animation: none !important; }
  [data-in] { opacity: 1; transform: none; }
  .litwords span { opacity: 1; }
}

/* the guide: our mint block character from the dock-hop promo, hopping to what to look at next */
.guide { position: fixed; left: 0; top: 0; z-index: 30; width: 52px; height: 58px; pointer-events: none; will-change: transform; opacity: 0; transition: opacity 0.4s ease; }
.guide.on { opacity: 1; }
.guide .g-body { position: absolute; left: 2px; top: 0; width: 48px; height: 42px; border-radius: 13px; background: #8ee6d0;
  box-shadow: inset 0 -5px 0 rgba(29, 127, 108, 0.35), inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 10px 18px -8px rgba(0, 0, 0, 0.55); transform-origin: 50% 100%; }
.guide .g-eye { position: absolute; top: 12px; width: 7px; height: 11px; border-radius: 4px; background: #141616; transition: transform 0.2s ease; }
.guide .g-eye.l { left: 13px; } .guide .g-eye.r { right: 13px; }
.guide .g-cheek { position: absolute; top: 25px; width: 6px; height: 6px; border-radius: 50%; background: #6fd1b9; }
.guide .g-cheek.l { left: 6px; } .guide .g-cheek.r { right: 6px; }
.guide .g-foot { position: absolute; bottom: 8px; width: 14px; height: 7px; border-radius: 4px; background: #1f5f52; }
.guide .g-foot.l { left: 11px; } .guide .g-foot.r { right: 11px; }
.guide .g-shadow { position: absolute; left: 8px; right: 8px; bottom: 0; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, 0.28); filter: blur(2px); }
.guide.blink .g-eye { transform: scaleY(0.15); }
/* the guide presses a button (it dips), then the screen it belongs to switches on */
.g-down { transform: translateY(2px) scale(0.96) !important; filter: brightness(0.92); transition: transform 0.08s ease, filter 0.08s ease; }
.has-guide [data-guide-screen] { opacity: 0.32; transform: scale(0.97); filter: saturate(0.4); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.2, .8, .2, 1), filter 0.5s ease; }
.has-guide [data-guide-screen].lit { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) { .has-guide [data-guide-screen] { opacity: 1; transform: none; filter: none; } }
/* the menu: one fixed button, top right, on every page */
.menu-btn { position: fixed; top: 10px; right: 12px; z-index: 40; width: 44px; height: 44px; border: 0; border-radius: 14px; cursor: pointer; display: grid; place-content: center; gap: 5px;
  background: rgba(16, 17, 17, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px rgba(242, 244, 243, 0.18); }
.menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #f2f4f3; transition: transform 0.25s ease, opacity 0.2s ease; }
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu { position: fixed; top: 62px; right: 12px; left: 12px; z-index: 39; max-width: 380px; margin-left: auto; padding: 10px; border-radius: 20px; color: #c4cac7;
  background: rgba(14, 16, 16, 0.96); box-shadow: inset 0 0 0 1px rgba(242, 244, 243, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.6); max-height: calc(100dvh - 80px); overflow: auto; }
.menu[hidden] { display: none; }
.menu a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; color: #f2f4f3; text-decoration: none; font: 500 15.5px "Geist", sans-serif; }
.menu a:hover, .menu a:focus-visible { background: rgba(242, 244, 243, 0.07); }
.menu a small { color: #8b9390; font-size: 13px; white-space: nowrap; }
.menu .lab { display: block; padding: 10px 12px 4px; font: 600 11.5px "Geist", sans-serif; letter-spacing: 0.06em; color: #8b9390; }
.menu .cta { margin-top: 8px; justify-content: center; background: #8ee6d0; color: #141616; font-weight: 600; }
.menu .cta:hover { background: #a4ecda; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.has-menu nav .links, .has-menu .topbar { padding-right: 56px; }
@media (max-width: 440px) { .has-menu nav .me span { display: none; } }
.menu { display: grid; gap: 2px; }
@media (max-width: 440px) { .has-menu nav .links a.txt { display: none; } }
/* the draft label is a small pill, top center, between the logo and the menu button */
body > .draft { position: fixed; left: 50%; top: 18px; transform: translateX(-50%); z-index: 50; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; pointer-events: none;
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.4); }
