/* Website additions for the film page on mindmachinelearning.com.
   Not part of the film source (UEMA_devA_private docs/investor_animation_2026-11-29); kept in its own
   files so the film can be re-copied from the repo without losing them. Nothing here applies to ?clean=1. */

/* slim site header above the player */
#mmlbar { display: none; }
body.site #mmlbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; box-sizing: border-box;
  height: 44px; padding: 0 16px; background: #05070b; border-bottom: 1px solid #1c2636; font-size: 14px; white-space: nowrap;
}
body.site #app { height: calc(100vh - 44px); height: calc(100dvh - 44px); }
#mmlbar a { color: #b9c5d8; text-decoration: none; }
#mmlbar a:hover { color: #ffffff; }
#mmlbar .home { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; color: #eaf0f8; min-width: 0; }
#mmlbar .home .ar { color: #8d9bb0; font-weight: 400; }
#mmlbar .links { display: flex; align-items: center; gap: 18px; }
#mmlbar .join { color: #ffcf6b; font-weight: 600; }
#mmlbar .join:hover { color: #ffe09a; }
#mmlbar a:focus-visible, .mcard a:focus-visible, .mcard button:focus-visible { outline: 2px solid #ffcf6b; outline-offset: 3px; }

/* the recorder is a production tool, not a visitor control */
body.site #rec { display: none !important; }

/* cards drawn over the film area: one before the film starts, one when it ends */
.mcard { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px; box-sizing: border-box; }
.mcard[hidden] { display: none; }

#mstart { justify-content: center; gap: 14px; background: radial-gradient(ellipse at 50% 45%, #121c2e 0%, #05070b 70%); cursor: pointer; }
#mstart .kicker { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: #8d9bb0; }
#mstart h1 { margin: 0; font-size: clamp(26px, 4.2vw, 54px); line-height: 1.12; font-weight: 600; letter-spacing: -.01em; color: #ffffff; max-width: 18em; }
#mstart h1 b { color: #ffcf6b; font-weight: 700; letter-spacing: .12em; }
#mstart p { margin: 0; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.45; color: #b9c5d8; max-width: 34em; }
#mstart button {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 12px; font: inherit; font-size: clamp(16px, 1.5vw, 19px); font-weight: 600;
  padding: 14px 26px 14px 22px; border-radius: 999px; border: 0; background: #ffcf6b; color: #1a1305; cursor: pointer;
}
#mstart button:hover { background: #ffdc8f; }
#mstart button .tri { width: 0; height: 0; border-left: 13px solid #1a1305; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
#mstart .hint { font-size: 13px; color: #7f8ca1; }

#mend { justify-content: flex-end; gap: 12px; padding-bottom: clamp(14px, 6%, 64px); pointer-events: none;
  background: linear-gradient(to bottom, rgba(5,7,11,0) 55%, rgba(5,7,11,.82) 100%); }
#mend .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; pointer-events: auto; }
#mend a { display: inline-flex; align-items: center; gap: 9px; font-size: clamp(14px, 1.3vw, 17px); font-weight: 600; text-decoration: none;
  padding: 12px 20px; border-radius: 999px; white-space: nowrap; }
#mend a.pri { background: #ffcf6b; color: #1a1305; }
#mend a.pri:hover { background: #ffdc8f; }
#mend a.sec { color: #eaf0f8; border: 1px solid #4a5d7e; background: rgba(10,15,24,.7); }
#mend a.sec:hover { border-color: #8d9bb0; }

/* phone held upright: the film area is only as tall as the picture */
@media (max-width: 900px) and (orientation: portrait) {
  body.site #mmlbar { padding: 0 12px; font-size: 13px; }
  #mmlbar .lg { display: none; }
  #mmlbar .links { gap: 14px; }
  .mcard { padding: 10px 12px; }
  #mstart { gap: 7px; }
  #mstart .kicker { font-size: 10px; letter-spacing: 3px; }
  #mstart h1 { font-size: clamp(19px, 5.6vw, 30px); }
  #mstart p, #mstart .hint { font-size: 13px; }
  #mstart .hint { display: none; }
  #mstart button { margin-top: 5px; padding: 9px 18px 9px 15px; font-size: 15px; }
  #mend { padding-bottom: 8px; gap: 8px; }
  #mend .row { gap: 8px; }
  #mend a { padding: 8px 13px; font-size: 13px; }
}
/* phone held sideways: the film fills the screen, so the header goes */
@media (max-height: 520px) and (orientation: landscape) {
  body.site #mmlbar { display: none; }
  body.site #app { height: 100vh; height: 100dvh; }
  #mstart { gap: 8px; }
  #mstart h1 { font-size: 26px; }
  #mstart p { font-size: 14px; }
  #mstart .hint { display: none; }
  #mstart button { margin-top: 4px; padding: 10px 20px 10px 16px; font-size: 15px; }
  #mend a { padding: 9px 15px; font-size: 13px; }
}
