/* Midnight Heroes Studios v2.2 — homepage receptionist + portfolio showcase. Matches the landing page:
   black, Space Mono / Anton SC, white text at graded opacities, glass white/15 surfaces, white pill buttons. */
.mh-root { --fg: #fff; --fg-70: rgba(255,255,255,.7); --fg-50: rgba(255,255,255,.5); --fg-35: rgba(255,255,255,.35);
  --line: rgba(255,255,255,.1); --glass: rgba(255,255,255,.08); --glass-2: rgba(255,255,255,.15);
  font-family: "Space Mono", ui-monospace, monospace; color: var(--fg); box-sizing: border-box; }
.mh-root *, .mh-root *::before, .mh-root *::after { box-sizing: inherit; }
.mh-pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 44px; padding: 0 1.3rem;
  border-radius: 999px; border: 0; background: #fff; color: #000; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
  transition: background .2s, transform .2s; }
.mh-pill:hover { background: #e2e2e6; transform: scale(1.02); }
.mh-pill:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.mh-ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.mh-ghost:hover { background: rgba(255,255,255,.1); }
.mh-badge { display: inline-block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 999px;
  background: var(--glass-2); color: var(--fg-70); backdrop-filter: blur(10px); }
.mh-badge.client { background: #fff; color: #000; }
.mh-muted { color: var(--fg-50); }
.mh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------- Receptionist launcher + panel */
.mh-launch { position: fixed; right: 20px; bottom: 20px; z-index: 60; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.mh-launch .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 4px rgba(46,204,113,.2); }
.mh-launch.offline .dot { background: rgba(0,0,0,.35); box-shadow: none; }
.mh-panel { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: rgba(8,8,10,.92); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,.7); overflow: hidden; }
.mh-panel[hidden], .mh-launch[hidden] { display: none; }
.mh-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.mh-head h2 { font-family: "Anton SC", Impact, sans-serif; font-weight: 400; font-size: 20px; letter-spacing: .02em; margin: 0; flex: 1; }
.mh-head small { display: block; font-family: "Space Mono", monospace; font-size: 11px; color: var(--fg-50); letter-spacing: 0; }
.mh-x { background: var(--glass-2); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; font-size: 16px; }
.mh-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; scroll-behavior: smooth; }
.mh-msg { max-width: 88%; padding: .7rem .9rem; border-radius: 16px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.mh-msg.ai { background: var(--glass); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 6px; }
.mh-msg.me { background: #fff; color: #000; align-self: flex-end; border-bottom-right-radius: 6px; }
.mh-msg.typing { color: var(--fg-50); }
.mh-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.mh-chip { border: 1px solid rgba(255,255,255,.2); background: transparent; color: #fff; border-radius: 999px; padding: .45rem .8rem; font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.mh-chip small { display: block; color: var(--fg-50); font-size: 10px; }
.mh-chip.on, .mh-chip:hover { background: #fff; color: #000; }
.mh-chip.on small, .mh-chip:hover small { color: rgba(0,0,0,.6); }
.mh-ref { font-size: 12px; padding: .55rem .8rem; border-radius: 12px; background: var(--glass); border: 1px dashed rgba(255,255,255,.2); }
.mh-foot { border-top: 1px solid var(--line); padding: .8rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .6rem; }
.mh-input { display: flex; gap: .5rem; align-items: flex-end; }
.mh-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; background: rgba(255,255,255,.06); color: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: .7rem .8rem; font: inherit; font-size: 13px; }
.mh-input textarea:focus, .mh-chip:focus-visible, .mh-pill:focus-visible, .mh-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.mh-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; justify-content: space-between; font-size: 11px; }
.mh-link { background: none; border: 0; color: var(--fg-50); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; padding: 0; }
.mh-error { color: #ff8f85; font-size: 12px; }
.mh-summary { border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: .9rem; background: rgba(255,255,255,.04); font-size: 12px; line-height: 1.55; }
.mh-summary h3 { font-family: "Anton SC", Impact, sans-serif; font-weight: 400; font-size: 17px; margin: 0 0 .4rem; }
.mh-summary h4 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-50); margin: .8rem 0 .3rem; font-weight: 400; }
.mh-summary ul { margin: 0; padding-left: 1.1rem; }
.mh-price { font-size: 15px; margin-top: .3rem; }
.mh-cta { display: grid; gap: .5rem; margin-top: .9rem; }
@media (max-width: 560px) {
  .mh-panel { right: 0; bottom: 0; width: 100vw; height: 88vh; border-radius: 22px 22px 0 0; }
  .mh-launch { right: 12px; bottom: 12px; }
}

/* ---------------- Portfolio showcase */
.mh-showcase { background: #000; padding: 110px 16px 40px; }
.mh-showcase .inner { max-width: 1240px; margin: 0 auto; }
.mh-showcase .eyebrow { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-35); }
.mh-showcase h2.title { font-size: clamp(28px, 6vw, 56px); font-weight: 300; letter-spacing: -.02em; line-height: 1.05; margin: .6rem 0 .8rem; }
.mh-showcase .lead { max-width: 640px; color: var(--fg-50); font-size: 14px; line-height: 1.7; margin: 0 0 2.4rem; }
.mh-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mh-card { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0b0b0d; display: flex; flex-direction: column; }
.mh-card .media { position: relative; aspect-ratio: 16 / 10; background: #111 linear-gradient(120deg, #111, #1a1a1f, #111); overflow: hidden; }
.mh-card .media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s cubic-bezier(.215,.61,.355,1), opacity .4s; opacity: 0; }
.mh-card .media img.ready { opacity: 1; }
.mh-card:hover .media img { transform: scale(1.04); }
.mh-card .media .mh-badge { position: absolute; left: 14px; top: 14px; }
.mh-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.mh-card .cat { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-35); }
.mh-card h3 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.mh-card p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--fg-50); }
.mh-card .acts { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }
.mh-card .acts .mh-pill { height: 38px; padding: 0 1rem; font-size: 13px; }
.mh-more { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.mh-mini { display: flex; gap: .8rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 16px; background: transparent;
  color: #fff; font: inherit; text-align: left; cursor: pointer; }
.mh-mini:hover { background: rgba(255,255,255,.06); }
.mh-mini img { width: 72px; height: 46px; object-fit: cover; border-radius: 9px; background: #151517; flex: none; }
.mh-mini strong { display: block; font-size: 13px; font-weight: 400; }
.mh-mini small { font-size: 10px; color: var(--fg-35); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 900px) { .mh-feat { grid-template-columns: 1fr; } .mh-showcase { padding-top: 80px; } }

/* ---------------- Project detail dialog */
.mh-modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.78); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.mh-modal[hidden] { display: none; }
.mh-sheet { width: min(1180px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #0a0a0c; border: 1px solid var(--line); border-radius: 24px;
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.mh-preview { position: relative; background: #000; min-height: 420px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.mh-preview .bar { display: flex; gap: .4rem; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--fg-50); }
.mh-preview .bar .sp { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-preview .stage { flex: 1; display: flex; justify-content: center; background: #050506; }
.mh-preview iframe { border: 0; width: 100%; height: 100%; min-height: 520px; background: #000; transition: width .35s; }
.mh-preview.mobile iframe { width: 390px; max-width: 100%; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.mh-preview .poster { position: absolute; inset: 44px 0 0; display: flex; align-items: center; justify-content: center; }
.mh-preview .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.mh-info { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.mh-info h2 { margin: 0; font-size: 30px; font-weight: 300; letter-spacing: -.02em; }
.mh-info p { margin: 0; color: var(--fg-70); font-size: 13px; line-height: 1.7; }
.mh-info .note { font-size: 11px; color: var(--fg-50); border-left: 2px solid rgba(255,255,255,.25); padding-left: .7rem; }
.mh-info h4 { margin: .6rem 0 0; font-size: 10px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-35); }
.mh-info ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.mh-info li { font-size: 13px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 12px; color: var(--fg-70); }
.mh-info .acts { display: grid; gap: .5rem; margin-top: auto; padding-top: .8rem; }
@media (max-width: 900px) { .mh-sheet { grid-template-columns: 1fr; } .mh-preview { border-right: 0; border-bottom: 1px solid var(--line); min-height: 360px; } .mh-preview iframe { min-height: 360px; } }
@media (prefers-reduced-motion: reduce) { .mh-root *, .mh-pill { transition: none !important; } .mh-body { scroll-behavior: auto; } }
