/* ===================================================================
   DLG Labs - room-desktop-c.css
   Desktop treatment "C - Top band + canvas".

   Loaded AFTER room.css and room-mobile-b.css. Every rule lives inside
   a min-width media query, so mobile (variant B glass) is untouched.
   Overrides win over room.css by higher specificity (scoped under
   .room) plus source order.

   Idea: instead of a narrow left column, the briefing header (kicker,
   h1, tagline) and the tab bar become a compact FULL-WIDTH top band
   with a blurred glass background. Below the band, the animated scene
   stays clearly visible as the visual crown of the page (roughly the
   top 40vh). The content sections flow in a SINGLE left-aligned column
   of glass cards over the LOWER part of the canvas, on top of a strong
   bottom-up scrim, so text stays WCAG-legible at any scroll position.

   The multi-column grid this file used to emit is retired: three
   columns turned a document (what we do -> how -> with what -> what
   you get -> scenario -> CTA) into a board, produced 411/688/501px
   columns in the same row, and pushed row two to y=927.

   The internal scroller is GONE. .brief-body used to be the desktop
   scroll container, which hid 64-79% of every briefing behind a surface
   only a mouse wheel could reach: the element carries no tabindex, so
   PageDown / End / ArrowDown / Space moved the window while the panel
   stayed at scrollTop 0. The stage is now in normal flow and the page
   scrolls, exactly like the mobile model. This REQUIRES the paired
   room.js change (desktop() returning false): the tab click handler
   used to call body.scrollTo(), which is a no-op on a non-scrolling
   element. The canvas mount is unchanged.
   =================================================================== */

@media (min-width: 901px) {

  /* --- stage in normal flow: no 100vh pin, so nothing needs an inner
         scroller and the page scroll reaches the whole briefing --- */
  .room .room-stage {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  /* --- the scene becomes a bounded band at the top of the page, visible
         on its own terms instead of a backdrop nobody could see --- */
  .room .room-metaphor {
    position: relative;
    inset: auto;
    height: clamp(320px, 46vh, 520px);
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  }
  .room .room-stage__scrim { display: none; }

  /* --- briefing panel: from left column to full-bleed flow column --- */
  .room .brief-panel {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    animation: room-c-fade .7s ease both;
  }

  /* --- top band, part 1: kicker + title left, tagline right --- */
  .room .brief-panel__hd {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 44ch);
    column-gap: clamp(28px, 5vw, 90px);
    align-items: end;
    padding: clamp(18px, 2.6vh, 30px) 7.5vw clamp(12px, 1.8vh, 20px);
    background: var(--bg-room);
    border-top: 1px solid color-mix(in oklab, var(--accent) 24%, var(--line));
  }
  .room .brief-panel__hd .brief-k {
    grid-column: 1;
    margin-bottom: 10px;
  }
  /* min 2.4rem: at 901px the old clamp resolved to 30.4px, a 27% drop from
     the 41.6px of the 900px layout. It now hands over at the same 38.4px. */
  .room .brief-panel__hd h1 {
    grid-column: 1;
    margin: 0;
    font-size: clamp(2.4rem, 3.2vw, 2.8rem);
  }
  .room .brief-panel__hd .room-tag {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    margin: 0 0 4px;
    max-width: 44ch;
  }

  /* --- top band, part 2: full-width tab bar closing the band --- */
  .room .brief-tabs {
    margin: 0;
    padding: 4px calc(7.5vw - 12px) 0;
    gap: clamp(2px, .4vw, 8px);
    background: var(--bg-room);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid var(--line);
    /* the page scrolls now, so the section nav has to survive the scroll */
    position: sticky;
    top: var(--nav-h, 76px);
    z-index: 15;
  }

  /* --- scrim: accent bloom up top, strong bottom-up floor for text --- */
  .room .room-stage__scrim {
    background:
      radial-gradient(46% 40% at 74% 24%,
        color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%),
      linear-gradient(180deg,
        transparent 30%,
        color-mix(in oklab, var(--bg-room) 52%, transparent) 48%,
        color-mix(in oklab, var(--bg-room) 86%, transparent) 66%,
        var(--bg-room) 98%);
  }

  /* --- content: ONE left-aligned column in the page flow, so the briefing
         reads in document order and the page scroll reaches all of it. --- */
  .room .brief-body {
    overflow: visible;
    padding: clamp(36px, 5vh, 64px) 7.5vw clamp(48px, 6vh, 72px);
    display: grid;
    grid-template-columns: minmax(0, 72ch);
    justify-content: start;
    gap: clamp(28px, 3vh, 44px);
    align-items: start;
    align-content: start;
  }
  .room .ex-sec { scroll-margin-top: calc(var(--nav-h, 76px) + 60px); }

  /* --- sections are no longer glass cards: there is no scene behind them
         to blur, so the card chrome was a box drawn on its own background.
         A hairline rule per section, the way the legal pages read. --- */
  .room .brief-body > .ex-sec {
    background: none;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    padding: clamp(20px, 2.4vh, 30px) 0 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .room .brief-body > .ex-sec:first-child { border-top: 0; padding-top: 0; }
  .room .ex-sec p { max-width: 60ch; }
  .room .related__list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

  /* steps tightened for column widths */
  .room .step {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 16px 18px;
  }
  .room .step h3 { font-size: .98rem; font-weight: 500; line-height: 1.45; }

  /* MITRE cells carry the full tactic|technique|id string: single/double
     column inside a card, readable case */
  .room .mitre { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .room .mitre__tac {
    color: var(--muted);
    text-transform: none;
    font-size: var(--fs-min);
    letter-spacing: .03em;
    line-height: 1.5;
  }

  /* --- ghost mark: removed. It shared the upper-right corner with the
         canvas's own labels and with the cards, so two independent painters
         (DOM and canvas) put letters on letters. It navigates nothing and
         says nothing the h1 does not already say. --- */
  .room .room-mark { display: none; }
}

@keyframes room-c-fade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
