/* The Arbeten page (arbeten.js): the old site's portfolio room, its styles ported from app/pages/portfolio/index.vue
   with the new site's chrome around it. The stack pills on a case used the "Geist Pixel" mono face; the .se site has
   no mono type, so they are plain Geist here. */
html, body.is-arbeten { background: #020202; }
/* the page is a see-through spacer over the room (the room's layers sit on <body>, arbeten.js); the phone menu's rule
   that gives .page the white ground is overridden here */
.is-arbeten .page, .is-arbeten main, html.has-underlay .is-arbeten .page { background: transparent !important; }
body.is-arbeten.work-over { cursor: pointer; }

/* the navbar and the announcement bar step back while a case is open, as the old page's logo and menu did */
.is-arbeten .ann, .is-arbeten .nav, .is-arbeten .topnav { transition: opacity 220ms ease; }
body.is-case .ann, body.is-case .nav, body.is-case .topnav { opacity: 0 !important; pointer-events: none !important; }
/* the bars stay over the room (they don't scroll away with an empty page), arbeten.js fades them with the scroll */
.is-arbeten .ann, .is-arbeten .nav { position: fixed; }
.is-arbeten .ann { top: 0; }

.work { position: relative; color: #ececef; }
.work__stage { position: fixed; top: 0; left: 0; width: 100%; height: var(--work-vh, 100vh); z-index: 0; }
.work__stage canvas { display: block; width: 100%; height: 100%; }
.work__stage.is-over { cursor: pointer; }
/* texture sources only: kept in the layout but invisible (a display:none video may stop decoding) */
.work__src { position: fixed; right: 0; bottom: 0; width: 2px; height: 2px; opacity: 0; pointer-events: none; }

.work__sheet { position: fixed; top: calc(var(--work-vh, 100vh) * 0.035); bottom: calc(var(--work-vh, 100vh) * 0.035); left: 2vw; right: 2vw; z-index: 40; border-radius: 20px; background: #eceef1; color: #101014; overflow: hidden; display: flex; flex-direction: column; opacity: 0; pointer-events: none; }
.work__sheet[hidden] { display: none; }
.work__sheet-x { position: absolute; top: 1.6rem; right: 1.6rem; z-index: 1; display: grid; place-items: center; width: 3rem; height: 3rem; border: 0; border-radius: 50%; background: #101014; color: #f4f4f6; font-size: 0.95rem; cursor: pointer; transition: transform 200ms ease; }
.work__sheet-x:hover, .work__sheet-x:focus-visible { transform: scale(1.08); }
.work__sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4vw, 5rem); padding: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.work__sheet-text { position: sticky; top: 0; }
.work__sheet-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.work__sheet-stack li { padding: 0.4rem 0.85rem; border: 1px solid rgba(16, 16, 20, 0.18); border-radius: 999px; font-family: "Geist", system-ui, sans-serif; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(16, 16, 20, 0.68); }
.work__sheet-media { display: grid; gap: clamp(1rem, 1.6vw, 1.75rem); }
.work__sheet-shot { display: block; width: 100%; height: auto; border-radius: 8px; background: #d8dade; }
.work__sheet-text h2 { margin: 0; font-family: "Geist", system-ui, sans-serif; font-weight: 500; font-size: clamp(2.6rem, 5.2vw, 4.8rem); letter-spacing: -0.03em; line-height: 1.02; }
.work__sheet-text p { margin: 2rem 0 0; max-width: 40ch; font-family: "Geist", system-ui, sans-serif; font-weight: 300; font-size: clamp(1.15rem, 1.55vw, 1.5rem); line-height: 1.5; color: rgba(16, 16, 20, 0.78); }
.work__sheet-film { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 8px; background: #d8dade; }
@media (max-width: 900px) {
  .work__sheet-body { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .work__sheet-text { position: static; }
}
@media (max-width: 768px) {
  .work__sheet-body { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem 1.25rem 2.5rem; }
  .work__sheet-media { display: contents; }
  .work__sheet-film { order: -1; margin-top: 2.5rem; }
  .work__sheet-text { order: 0; }
  .work__sheet-shot { order: 1; }
  .work__sheet-text h2 { font-size: 2rem; letter-spacing: -0.025em; }
  .work__sheet-text p { margin: 1.1rem 0 0; max-width: none; font-size: 1rem; line-height: 1.58; }
  .work__sheet-stack { margin: 1.5rem 0 0; }
  .work__sheet-x { top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; }
}

/* the caption above the screens: the summary of the one in front of you */
.work__caption { position: fixed; left: 50%; top: 15vh; z-index: 1; transform: translateX(-50%); margin: 0; max-width: 40ch; text-align: center; font-family: "Geist", system-ui, sans-serif; font-weight: 300; font-size: clamp(1.1rem, 1.55vw, 1.45rem); line-height: 1.45; color: rgba(236, 236, 239, 0.88); pointer-events: none; opacity: 0; transition: opacity 240ms ease; }
@media (max-width: 900px) { .work__caption { top: 11vh; max-width: 82vw; } }
@media (max-width: 768px) {
  .work__caption { top: calc(var(--work-vh, 100vh) * 0.17); left: 0; right: 0; transform: none; max-width: none; padding: 0 8vw; }
  .work__caption::before { content: ""; position: fixed; inset: 0 0 auto 0; height: calc(var(--work-vh, 100vh) * 0.46); z-index: -1; pointer-events: none; background: linear-gradient(to bottom, rgba(2, 2, 3, 0.95) 0%, rgba(2, 2, 3, 0.93) 42%, rgba(2, 2, 3, 0.82) 58%, rgba(2, 2, 3, 0.5) 74%, rgba(2, 2, 3, 0.18) 89%, rgba(2, 2, 3, 0) 100%); }
}

/* the same projects as real links: hidden while the room runs, the whole page where it cannot */
.work__index { position: relative; z-index: 1; padding: 22vh 6vw 12vh; font-family: "Geist", system-ui, sans-serif; }
.work__index.is-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.work__index-title { margin: 0 0 3rem; font-weight: 100; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
.work__index ul { list-style: none; margin: 0; padding: 0; }
.work__index li + li { border-top: 1px solid rgba(236, 236, 239, 0.14); }
.work__index li a { display: block; padding: 1.6rem 0; color: inherit; text-decoration: none; }
.work__index li strong { display: block; font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 2.4rem); letter-spacing: -0.02em; }
.work__index li span { display: block; margin-top: 0.5rem; font-weight: 100; color: rgba(236, 236, 239, 0.6); }

/* the room is black from the top: the owl and the menu lines white, as the navbar does over the site's dark parts
   (an open menu keeps its own colours) */
body.is-arbeten:not(.menu-open) .brand--com img { filter: contrast(100) brightness(0) invert(1); }
body.is-arbeten:not(.menu-open) .burger--com { color: #fff; }

.is-arbeten [data-faded], .is-arbeten [data-faded] * { pointer-events: none !important; }

/* the phone menu waits under the page and shows where the page slides away (underlay.js). Here the page is see-through
   and the room is the page, so the room sits above the menu (z 1) and below the navbar: the menu only shows where the
   room has slid off, never through it while it closes (founder 2026-11-23: "the navbar side stays for a frame") */
.is-arbeten .work__stage { z-index: 2; background: #020202; }   /* solid: the canvas is see-through where nothing is drawn, and the menu under it showed there */
.is-arbeten .work__caption { z-index: 3; }
