/* =========================================================
   Shared bits for work/<slug>.html pages ONLY:
   the app bar (window title strip under the header), the
   "next application" hand-off and the footer spacing.
   Everything else on a project page is unique to that page.
   ========================================================= */

.work main { position: relative; }

/* App bar: a slim Srinath OS title strip pinned under the floating header */
.appbar {
  position: fixed; z-index: 880;
  left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: .8rem;
  padding: .4rem .45rem .4rem 1rem;
  background: var(--ink-deep); color: var(--cream);
  border-radius: var(--radius-full);
  font-size: 11.5px; letter-spacing: .02em;
  box-shadow: 0 12px 40px -10px rgba(30, 20, 14, .5);
  white-space: nowrap;
  max-width: calc(100vw - 24px);
}
.appbar__dots { display: flex; gap: 5px; }
.appbar__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--hero-4); }
.appbar__dots i:nth-child(2) { background: var(--hero-3); }
.appbar__dots i:nth-child(3) { background: #cdbfae; }
.appbar__name b { font-weight: 500; }
.appbar__name span { opacity: .55; }
.appbar a {
  display: inline-flex; align-items: center; gap: .4em;
  background: rgba(254, 249, 237, .1); padding: .5rem .85rem; border-radius: var(--radius-full);
  transition: background .25s;
}
.appbar a:hover { background: rgba(254, 249, 237, .2); }
.appbar svg { width: 1em; height: 1em; }
@media (max-width: 520px) { .appbar__name span { display: none; } }

/* ---------- Next application ---------- */
.next-app {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 8rem var(--edge) 6rem;
  background: var(--cream);
  overflow: hidden;
  text-align: center;
}
.next-app__label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.next-app__link {
  display: block; position: relative;
  margin-top: 1.4rem;
}
.next-app__name {
  display: block;
  font-family: var(--font-serif); font-weight: 450;
  font-size: clamp(3.4rem, 13vw, 13rem); line-height: .9; letter-spacing: -.03em;
  color: var(--ink);
  transition: color .4s;
}
.next-app__name em { font-style: italic; }
.next-app__win {
  position: relative;
  width: min(560px, 82vw); aspect-ratio: 16 / 10;
  margin: 2.2rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-win);
  transform-origin: 50% 0%;
  background: var(--ink-deep);
}
.next-app__win .win__bar { background: var(--paper); }
.next-app__win video, .next-app__win img { width: 100%; height: calc(100% - 2.4rem); object-fit: cover; }
.next-app__cta { margin-top: 2rem; }
.next-app__link:hover .next-app__name { color: var(--next-accent, var(--terracotta)); }
.next-app__desc { max-width: 34ch; margin: 1rem auto 0; font-family: var(--font-serif); font-size: 1.2rem; color: var(--ink-soft); }

.work .site-footer { padding-bottom: 5.5rem; }
