/* ============================================================================
   NOCTERN STUDIO / DESKTOP SPLENDOR LAYER (>= 1024px + Fine Pointer)
   Builds strictly ON TOP of styles/noctern.css with zero mobile leaks.
   Native palette: Void #040507, Ivory #F5EFE2, Cyan #7EE7F5, Gold #F0D095.
   ============================================================================ */

/* Hard mobile/tablet isolation: ZERO desktop-only elements can ever leak below 1024px */
.nsd-only,
.nsd-reticle,
.nsd-cockpit,
.nsd-cinema,
.nsd-header-tools,
.nsd-camp-dropdown,
.nsd-multicam-bar,
.nsd-sync-wall,
.nsd-wipe-stage,
.nsd-web-modes,
.nsd-web-grid,
.nsd-web-live-wrap,
.nsd-sg-live-iframe,
.nsd-sg-live-pill,
.nsd-stage-focus-btn,
.nsd-stage-exit-bar,
.nsd-seal-loupe-bar,
.nsd-contact-moods,
.nsd-note-bar,
.nsd-note-draw-canvas,
.nsd-vellum-peel-overlay,
.nsd-study-vid,
.nsd-corner-shortcuts {
  display: none;
}

@media (max-width: 1023.98px) {
  .nsd-only,
  .nsd-reticle,
  .nsd-cockpit,
  .nsd-cinema,
  .nsd-header-tools,
  .nsd-camp-dropdown,
  .nsd-multicam-bar,
  .nsd-sync-wall,
  .nsd-wipe-stage,
  .nsd-web-modes,
  .nsd-web-grid,
  .nsd-web-live-wrap,
  .nsd-sg-live-iframe,
  .nsd-sg-live-pill,
  .nsd-stage-focus-btn,
  .nsd-stage-exit-bar,
  .nsd-seal-loupe-bar,
  .nsd-contact-moods,
  .nsd-note-bar,
  .nsd-note-draw-canvas,
  .nsd-vellum-peel-overlay,
  .nsd-study-vid,
  .nsd-corner-shortcuts {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  /* -------------------------------------------------------------------------
     1. WIDESCREEN CANVAS EXPANSION & TYPOGRAPHY REFINEMENT
     ------------------------------------------------------------------------- */
  :root {
    --max-w: 1420px;
    --gutter: clamp(28px, 3.6vw, 56px);
  }

  @media (min-width: 1640px) {
    :root {
      --max-w: 1580px;
    }
  }

  .nsd-only {
    display: inline-flex;
  }

  /* Let the bolder bloomed WebGL world breathe deeper through obsidian glass */
  .ns-glass {
    position: relative;
    background: rgba(9, 12, 18, 0.56);
    border-color: rgba(245, 239, 226, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 28px 72px rgba(0, 0, 0, 0.52);
    transition: border-color 0.28s ease, box-shadow 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ns-glass-strong {
    position: relative;
    background: rgba(8, 11, 17, 0.72);
    border-color: rgba(245, 239, 226, 0.19);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 32px 84px rgba(0, 0, 0, 0.60);
    transition: border-color 0.28s ease, box-shadow 0.34s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* Pointer-driven optical specular border flashlight across glass surfaces */
  .ns-glass::before,
  .ns-glass-strong::before,
  .craft-cinema::before,
  .foldout-shell::before,
  .study-dock::before,
  .meadow-dock::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
      340px circle at var(--nsd-px, -400px) var(--nsd-py, -400px),
      rgba(126, 231, 245, 0.52),
      rgba(245, 239, 226, 0.22) 34%,
      rgba(240, 208, 149, 0.08) 54%,
      transparent 72%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: 3;
    opacity: var(--nsd-glow, 0);
    transition: opacity 0.28s ease;
  }

  /* Hero polish: eliminate 3rd-line orphan & keep crisp contrast over wildflowers */
  body.is-home .home-hero-copy {
    max-width: 880px;
  }

  body.is-home .home-hero-copy .ns-h1 {
    font-size: clamp(3.6rem, 5.4vw, 5.65rem);
    text-shadow: 0 14px 48px rgba(0, 0, 0, 0.84), 0 2px 18px rgba(0, 0, 0, 0.72);
  }

  body.is-home .home-hero-copy .ns-lead {
    max-width: 66ch;
    padding: 10px 28px;
    border-radius: 999px;
    background: radial-gradient(ellipse 92% 110% at center, rgba(4, 6, 11, 0.78) 0%, rgba(4, 6, 11, 0.44) 62%, rgba(4, 6, 11, 0) 100%);
    color: rgba(245, 239, 226, 0.94);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.96);
  }

  /* Keep discipline strip cleanly on a single balanced horizontal line */
  body.is-home .discipline-strip {
    flex-wrap: nowrap;
    gap: 9px;
    font-size: 0.79rem;
    padding: 12px 16px;
    white-space: nowrap;
  }

  /* -------------------------------------------------------------------------
     2. DESKTOP HEADER STUDIO TOOLS, MARK OPTICS & CAMPAIGN SUB-MENU
     ------------------------------------------------------------------------- */
  .ns-brand {
    position: relative;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), filter 0.32s ease;
  }

  .ns-brand img {
    transition: filter 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .ns-brand:hover img {
    filter: drop-shadow(0 0 14px rgba(126, 231, 245, 0.55)) drop-shadow(0 0 28px rgba(240, 208, 149, 0.28));
    transform: translateY(-0.5px);
  }

  .ns-nav {
    gap: clamp(20px, 2.2vw, 34px);
  }

  .ns-nav-links li {
    position: relative;
  }

  .nsd-camp-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 6px);
    min-width: 218px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(7, 10, 16, 0.90);
    backdrop-filter: blur(22px) saturate(150%);
    -webkit-backdrop-filter: blur(22px) saturate(150%);
    border: 1px solid rgba(245, 239, 226, 0.18);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65);
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.2s ease;
    z-index: 60;
  }

  .nsd-camp-dropdown::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    height: 12px;
  }

  .ns-nav-links li.has-nsd-dropdown:hover .nsd-camp-dropdown,
  .ns-nav-links li.has-nsd-dropdown:focus-within .nsd-camp-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
  }

  .nsd-camp-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 6px 12px;
    border-radius: 9px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ivory-soft);
    transition: background-color 0.16s ease, color 0.16s ease;
  }

  .nsd-camp-dropdown a::after {
    display: none !important;
  }

  .nsd-camp-dropdown a:hover,
  .nsd-camp-dropdown a:focus-visible {
    background: rgba(126, 231, 245, 0.12);
    color: var(--ivory);
  }

  .nsd-camp-dropdown .nsd-dd-sub {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    color: var(--ivory-muted);
    letter-spacing: 0.1em;
  }

  .nsd-header-tools {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
    border-left: 1px solid rgba(245, 239, 226, 0.16);
  }

  .nsd-tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(10, 14, 21, 0.62);
    border: 1px solid rgba(245, 239, 226, 0.20);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--ivory-soft);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .nsd-tool-btn:hover {
    border-color: var(--cyan-border);
    background: rgba(126, 231, 245, 0.12);
    color: var(--ivory);
    transform: translateY(-1px);
  }

  .nsd-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 5px;
    background: rgba(245, 239, 226, 0.10);
    border: 1px solid rgba(245, 239, 226, 0.20);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    line-height: 1;
    color: var(--ivory);
  }

  .nsd-corner-shortcuts {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .nsd-corner-trigger {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ivory-soft);
    font-family: var(--font-mono);
    font-size: 0.70rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    min-height: 36px;
    padding: 0 4px;
    cursor: pointer;
    transition: color 0.18s ease;
  }

  .nsd-corner-trigger:hover {
    color: var(--cyan);
  }

  /* -------------------------------------------------------------------------
     3. BESPOKE NOCTERN CINEMA VIEWFINDER RETICLE CURSOR
     ------------------------------------------------------------------------- */
  .nsd-reticle {
    position: fixed;
    left: 0;
    top: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(245, 239, 226, 0.44);
    box-shadow: 0 0 18px rgba(126, 231, 245, 0.16), inset 0 0 10px rgba(245, 239, 226, 0.08);
    pointer-events: none;
    z-index: 9990;
    transform: translate3d(-120px, -120px, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition:
      width 0.26s cubic-bezier(0.16, 1, 0.3, 1),
      height 0.26s cubic-bezier(0.16, 1, 0.3, 1),
      border-color 0.22s ease,
      background-color 0.22s ease,
      opacity 0.2s ease;
    will-change: transform, width, height;
  }

  .nsd-reticle::before,
  .nsd-reticle::after {
    content: '';
    position: absolute;
    background: rgba(245, 239, 226, 0.55);
    transition: opacity 0.2s ease;
  }

  .nsd-reticle::before {
    width: 6px;
    height: 1px;
  }

  .nsd-reticle::after {
    width: 1px;
    height: 6px;
  }

  .nsd-reticle.is-visible {
    opacity: 1;
  }

  .nsd-reticle.is-expanded {
    width: 78px;
    height: 78px;
    border-color: rgba(126, 231, 245, 0.72);
    background: rgba(6, 10, 17, 0.52);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 28px rgba(126, 231, 245, 0.24);
  }

  .nsd-reticle.is-expanded::before,
  .nsd-reticle.is-expanded::after {
    opacity: 0;
  }

  .nsd-reticle.is-pressed {
    width: 58px;
    height: 58px;
  }

  .nsd-reticle-label {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ivory);
    opacity: 0;
    text-align: center;
    line-height: 1.15;
    padding: 0 6px;
    transition: opacity 0.16s ease;
  }

  .nsd-reticle.is-expanded .nsd-reticle-label {
    opacity: 1;
  }

  html[data-nsd-reticle="off"] .nsd-reticle,
  .nsd-reticle.is-suppressed {
    display: none !important;
  }

  @media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
    .nsd-reticle {
      display: none !important;
    }
  }

  /* -------------------------------------------------------------------------
     4. GLOBAL STUDIO COMMAND COCKPIT ('/' or Cmd/Ctrl+K)
     ------------------------------------------------------------------------- */
  .nsd-cockpit[open] {
    display: block;
  }

  .nsd-cockpit {
    margin: auto;
    padding: 0;
    width: min(1040px, 92vw);
    max-width: 1040px;
    max-height: min(82vh, 720px);
    border-radius: 22px;
    border: 1px solid rgba(245, 239, 226, 0.24);
    background: rgba(6, 9, 15, 0.92);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    color: var(--ivory);
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.78), 0 0 60px rgba(126, 231, 245, 0.08);
  }

  .nsd-cockpit::backdrop {
    background: rgba(2, 4, 8, 0.70);
    backdrop-filter: blur(10px);
  }

  .nsd-cockpit-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: min(82vh, 720px);
  }

  .nsd-cockpit-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(245, 239, 226, 0.14);
  }

  .nsd-cockpit-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    white-space: nowrap;
  }

  .nsd-cockpit-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    color: var(--ivory);
    font-size: 1.05rem;
    font-weight: 500;
    outline: none;
  }

  .nsd-cockpit-input::placeholder {
    color: rgba(245, 239, 226, 0.38);
  }

  .nsd-cockpit-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
  }

  .nsd-cockpit-close {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ivory-soft);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(245, 239, 226, 0.22);
    cursor: pointer;
    transition: border-color 0.18s ease, color 0.18s ease;
  }

  .nsd-cockpit-close:hover {
    border-color: var(--ivory);
    color: var(--ivory);
  }

  .nsd-cockpit-body {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    min-height: 0;
    overflow: hidden;
  }

  .nsd-cockpit-list-col {
    overflow-y: auto;
    padding: 16px 22px 24px;
    border-right: 1px solid rgba(245, 239, 226, 0.12);
  }

  .nsd-cockpit-group {
    margin: 16px 0 8px;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ivory-muted);
  }

  .nsd-cockpit-group:first-child {
    margin-top: 0;
  }

  .nsd-cockpit-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nsd-cockpit-item {
    width: 100%;
    display: grid;
    grid-template-columns: 62px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    color: var(--ivory-soft);
    font-size: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, padding-left 0.16s ease;
  }

  .nsd-cockpit-item:hover,
  .nsd-cockpit-item.is-selected {
    background: rgba(126, 231, 245, 0.12);
    border-color: rgba(126, 231, 245, 0.42);
    color: var(--ivory);
    padding-left: 16px;
  }

  .nsd-cockpit-code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--cyan);
  }

  .nsd-cockpit-meta {
    font-family: var(--font-mono);
    font-size: 0.70rem;
    color: var(--ivory-muted);
    white-space: nowrap;
  }

  .nsd-cockpit-preview {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: radial-gradient(circle at 50% 30%, rgba(126, 231, 245, 0.08), transparent 70%);
    min-height: 0;
  }

  .nsd-cockpit-shot {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(245, 239, 226, 0.20);
    background: #04070B;
  }

  .nsd-cockpit-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nsd-cockpit-info h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1.02;
    color: var(--ivory);
  }

  .nsd-cockpit-info p {
    margin: 6px 0 0;
    font-size: 0.88rem;
    color: var(--ivory-soft);
  }

  .nsd-cockpit-gpu {
    padding-top: 14px;
    border-top: 1px solid rgba(245, 239, 226, 0.12);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .nsd-cockpit-gpu-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .nsd-cockpit-chip {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(245, 239, 226, 0.20);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ivory-soft);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  }

  .nsd-cockpit-chip:hover,
  .nsd-cockpit-chip.is-on {
    border-color: var(--cyan-border);
    background: rgba(126, 231, 245, 0.14);
    color: var(--ivory);
  }

  .nsd-cockpit-foot {
    padding: 12px 24px;
    border-top: 1px solid rgba(245, 239, 226, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 0.70rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ivory-muted);
  }

  /* -------------------------------------------------------------------------
     5. FULL-BLEED OBSIDIAN STUDIO SCREENING ROOM ('F')
     ------------------------------------------------------------------------- */
  .nsd-cinema[open] {
    display: block;
  }

  .nsd-cinema {
    margin: auto;
    padding: 0;
    width: min(1440px, 95vw);
    max-width: 1440px;
    height: min(88vh, 840px);
    max-height: 92vh;
    border-radius: 22px;
    border: 1px solid rgba(245, 239, 226, 0.24);
    background: #04060A;
    color: var(--ivory);
    overflow: hidden;
    box-shadow: 0 42px 130px rgba(0, 0, 0, 0.85);
  }

  .nsd-cinema::backdrop {
    background: rgba(2, 3, 6, 0.84);
    backdrop-filter: blur(14px);
  }

  .nsd-cinema-shell {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
  }

  .nsd-cinema-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(245, 239, 226, 0.12);
    background: rgba(7, 10, 16, 0.92);
  }

  .nsd-cinema-brand {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    white-space: nowrap;
  }

  .nsd-cinema-reels {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nsd-cinema-reel {
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid rgba(245, 239, 226, 0.18);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 0.70rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--ivory-soft);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  }

  .nsd-cinema-reel:hover,
  .nsd-cinema-reel[aria-selected="true"] {
    border-color: var(--cyan-border);
    background: rgba(126, 231, 245, 0.16);
    color: var(--ivory);
  }

  .nsd-cinema-stage {
    position: relative;
    min-height: 0;
    background: radial-gradient(circle at center, rgba(16, 36, 48, 0.25), #020306 72%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .nsd-cinema-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
  }

  .nsd-cinema-foot {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px 22px;
    border-top: 1px solid rgba(245, 239, 226, 0.12);
    background: rgba(7, 10, 16, 0.94);
  }

  .nsd-cinema-transport {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .nsd-cinema-btn {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(245, 239, 226, 0.22);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ivory);
    cursor: pointer;
    transition: border-color 0.18s ease, background-color 0.18s ease;
  }

  .nsd-cinema-btn:hover {
    border-color: var(--cyan-border);
    background: rgba(126, 231, 245, 0.14);
  }

  .nsd-cinema-scrub {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .nsd-cinema-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--ivory-soft);
  }

  .nsd-cinema-range {
    width: 100%;
    accent-color: var(--cyan);
    cursor: pointer;
  }

  /* -------------------------------------------------------------------------
     6. HOME & CAMPAIGN DESKTOP INSTRUMENTS
     (Live Study Hover Video + 3-Monitor Sync Wall + 50/50 Cut Wipe + Edit Bay)
     ------------------------------------------------------------------------- */
  .study-dock,
  .meadow-dock {
    width: min(820px, 100%);
  }

  .study-tile {
    transform-style: preserve-3d;
  }

  .study-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 239, 226, 0.52);
  }

  .nsd-study-vid {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.34s ease;
    z-index: 1;
  }

  .study-tile.is-video-live .nsd-study-vid {
    opacity: 1;
  }

  /* Multi-Cam Monitor Mode Switcher */
  .nsd-multicam-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 6px 10px;
    flex-wrap: wrap;
  }

  .nsd-seg-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(4, 7, 12, 0.72);
    border: 1px solid rgba(245, 239, 226, 0.16);
  }

  .nsd-seg-btn {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 0.69rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ivory-soft);
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
  }

  .nsd-seg-btn:hover {
    color: var(--ivory);
  }

  .nsd-seg-btn.is-active {
    background: rgba(126, 231, 245, 0.18);
    color: var(--ivory);
    box-shadow: inset 0 0 0 1px rgba(126, 231, 245, 0.45);
  }

  /* Expanded 3-Up Synchronized Edit Suite Wall */
  body .nsd-is-sync-wall .craft-top,
  body .nsd-is-sync-wall .camp-stage {
    grid-template-columns: 1fr;
  }

  body .nsd-is-sync-wall .craft-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) auto;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
  }

  body .nsd-is-sync-wall .craft-panel .cut-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body .nsd-is-sync-wall .craft-panel .cut-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px;
  }

  body .nsd-is-sync-wall .camp-cut-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .nsd-sync-wall {
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  .nsd-sync-wall.is-open {
    display: flex;
  }

  .nsd-sync-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.72fr) minmax(0, 0.72fr);
    gap: 12px;
    align-items: stretch;
  }

  .nsd-monitor {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #030508;
    border: 1px solid rgba(245, 239, 226, 0.20);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .nsd-monitor:hover,
  .nsd-monitor.is-active {
    border-color: var(--cyan-border);
    box-shadow: 0 0 26px rgba(126, 231, 245, 0.18);
  }

  .nsd-monitor--wide {
    aspect-ratio: 16 / 9;
  }

  .nsd-monitor--tall {
    aspect-ratio: 9 / 14.2;
  }

  .nsd-monitor video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .nsd-monitor-tag {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(4, 7, 12, 0.78);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 239, 226, 0.20);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ivory);
  }

  .nsd-sync-transport {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(4, 7, 12, 0.78);
    border: 1px solid rgba(245, 239, 226, 0.16);
  }

  .nsd-sync-transport input[type="range"] {
    flex: 1;
    accent-color: var(--cyan);
    cursor: pointer;
  }

  /* 50/50 Optical Cut Wipe Stage */
  .nsd-wipe-stage {
    display: none;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9.2;
    background: #030508;
    cursor: ew-resize;
    user-select: none;
    --wipe-x: 50%;
  }

  .nsd-wipe-stage.is-open {
    display: block;
  }

  .nsd-wipe-stage video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
  }

  .nsd-wipe-top {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--wipe-x)) 0 0);
  }

  .nsd-wipe-blade {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--wipe-x);
    width: 2px;
    background: linear-gradient(180deg, rgba(126, 231, 245, 0.9), rgba(245, 239, 226, 0.95), rgba(126, 231, 245, 0.9));
    box-shadow: 0 0 18px rgba(126, 231, 245, 0.72);
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 4;
  }

  .nsd-wipe-knob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(6, 10, 17, 0.88);
    border: 1.5px solid var(--cyan);
    color: var(--ivory);
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
  }

  .nsd-wipe-pill {
    position: absolute;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(4, 7, 12, 0.78);
    border: 1px solid rgba(245, 239, 226, 0.20);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ivory);
    z-index: 5;
    pointer-events: none;
  }

  .nsd-wipe-pill--l { left: 12px; }
  .nsd-wipe-pill--r { right: 12px; }

  /* Interactive Draggable Tracing Vellum Peel (#process) */
  .nsd-vellum-peel-overlay {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(
      115deg,
      rgba(232, 238, 246, 0.34) 0%,
      rgba(210, 224, 240, 0.24) 76%,
      rgba(255, 255, 255, 0.56) 96%,
      rgba(126, 231, 245, 0.25) 100%
    );
    backdrop-filter: blur(8px) saturate(0.72) contrast(0.92);
    -webkit-backdrop-filter: blur(8px) saturate(0.72) contrast(0.92);
    border-right: 1.5px solid rgba(245, 239, 226, 0.65);
    box-shadow: 12px 0 36px rgba(0, 0, 0, 0.45);
    width: var(--peel-w, 46%);
    transition: width 0.08s linear;
  }

  .nsd-vellum-readout {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(5, 8, 14, 0.78);
    border: 1px solid rgba(245, 239, 226, 0.22);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ivory);
    pointer-events: none;
  }

  /* Interactive Grease-Pencil Frame Note Bar & Canvas */
  .nsd-note-draw-canvas {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }

  .note-card.is-drawing .nsd-note-draw-canvas {
    pointer-events: auto;
    cursor: crosshair;
  }

  .nsd-note-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 3;
  }

  /* Magnetic Drag-to-Reorder Running Order */
  .order-shot[draggable="true"] {
    cursor: grab;
    transition: transform 0.22s ease, opacity 0.2s ease;
  }

  .order-shot[draggable="true"]:hover {
    transform: translateY(-3px);
  }

  .order-shot.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
  }

  .order-shot.is-drop-target .order-thumb {
    border-color: var(--cyan);
    box-shadow: 0 0 22px rgba(126, 231, 245, 0.45);
  }

  /* Interactive Waveform Seeking */
  .score-wave {
    cursor: pointer;
  }

  /* -------------------------------------------------------------------------
     7. WEBSITES WIDESCREEN EXHIBITION, LIVE SANDBOX & ALL-10 GRID
     ------------------------------------------------------------------------- */
  body .web-stage .foldout-track {
    height: clamp(460px, 58vh, 650px);
    gap: 8px;
  }

  body .web-stage .fold-item {
    min-width: 54px;
    transition: flex 0.62s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.28s ease;
  }

  body .web-stage .fold-item:not(.is-open):hover {
    border-color: rgba(245, 239, 226, 0.36);
  }

  body .web-stage .fold-item.is-open {
    flex: 7.4 1 0;
    box-shadow: 0 0 38px rgba(126, 231, 245, 0.14);
  }

  .nsd-web-modes {
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  .nsd-web-live-wrap {
    display: none;
    flex-direction: column;
    gap: 12px;
  }

  .nsd-web-live-wrap.is-open {
    display: flex;
  }

  .nsd-web-live-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 14px;
    background: rgba(6, 9, 15, 0.80);
    border: 1px solid rgba(245, 239, 226, 0.16);
  }

  .nsd-web-live-stage {
    position: relative;
    width: 100%;
    height: clamp(540px, 68vh, 740px);
    border-radius: 16px;
    overflow: hidden;
    background: #04060A;
    border: 1px solid rgba(245, 239, 226, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nsd-web-live-stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #05070B;
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.3s ease;
  }

  .nsd-web-live-stage.is-phone-frame iframe {
    width: 402px;
    height: calc(100% - 28px);
    border-radius: 28px;
    border: 2px solid rgba(245, 239, 226, 0.28);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.72);
  }

  .nsd-web-grid {
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }

  .nsd-web-grid.is-open {
    display: grid;
  }

  .nsd-web-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(245, 239, 226, 0.16);
    background: rgba(8, 11, 17, 0.78);
    display: flex;
    flex-direction: column;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.22s ease, box-shadow 0.28s ease;
  }

  .nsd-web-card:hover {
    transform: translateY(-4px);
    border-color: var(--cyan-border);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.56);
  }

  .nsd-web-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #04060A;
  }

  .nsd-web-card-media img,
  .nsd-web-card-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .nsd-web-card-media video {
    opacity: 0;
    transition: opacity 0.28s ease;
  }

  .nsd-web-card.is-playing .nsd-web-card-media video {
    opacity: 1;
  }

  .nsd-web-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .nsd-web-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
  }

  .nsd-web-card-body h3 {
    margin: 0;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--ivory);
  }

  .nsd-web-card-body p {
    margin: 0;
    font-size: 0.80rem;
    color: var(--ivory-soft);
  }

  .nsd-web-card-actions {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  /* -------------------------------------------------------------------------
     8. ANIMATION DUAL LIVE 3D WORLDS & OPEN STAGE FOCUS MODE
     ------------------------------------------------------------------------- */
  .nsd-sg-live-iframe {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    background: transparent;
  }

  .proj-frame.is-sg-live-ready .nsd-sg-live-iframe {
    opacity: 1;
  }

  .nsd-sg-live-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(5, 8, 14, 0.76);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(240, 208, 149, 0.38);
    color: var(--ivory);
    pointer-events: none;
  }

  .nsd-sg-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(240, 208, 149, 0.9);
  }

  .nsd-stage-focus-btn {
    display: inline-flex;
  }

  /* Open Stage Focus Mode: dims page chrome so user can paint & orbit full-screen 3D WebGL */
  body.nsd-open-stage .ns-page,
  body.nsd-open-stage .ns-header {
    opacity: 0.07;
    pointer-events: none;
    transition: opacity 0.45s ease;
  }

  body.nsd-open-stage #noctern-webgl {
    pointer-events: auto;
    cursor: grab;
  }

  body.nsd-open-stage #noctern-webgl:active {
    cursor: grabbing;
  }

  .nsd-stage-exit-bar {
    position: fixed;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 120;
    display: none;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(6, 9, 15, 0.86);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(126, 231, 245, 0.42);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.72);
  }

  body.nsd-open-stage .nsd-stage-exit-bar {
    display: inline-flex;
  }

  /* -------------------------------------------------------------------------
     9. SILK, POUR & CONTACT DESKTOP POLISH
     ------------------------------------------------------------------------- */
  /* Silk: 3D foil tilt + optical print-scale loupe */
  .foil-frame {
    transform-style: preserve-3d;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
    will-change: transform;
  }

  .nsd-seal-loupe-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-radius: 12px;
    background: rgba(6, 9, 14, 0.65);
    border: 1px solid rgba(240, 208, 149, 0.22);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ivory-soft);
  }

  .nsd-seal-loupe-bar input[type="range"] {
    flex: 1;
    accent-color: var(--gold);
    cursor: pointer;
  }

  /* Pour: 3D opposing parallax planes */
  .ugc-top {
    perspective: 1400px;
  }

  .phone-frame,
  .bottle-stage {
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  body #bottle-status {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(5, 8, 14, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 239, 226, 0.22);
    color: var(--ivory);
  }

  /* Contact: discipline mood bar + 3D Glass Bloom specimen */
  .bloom-stage {
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .nsd-contact-moods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 2px;
  }

  .nsd-mood-pill {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(245, 239, 226, 0.20);
    background: rgba(255, 255, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 0.70rem;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--ivory-soft);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }

  .nsd-mood-pill:hover,
  .nsd-mood-pill.is-active {
    border-color: var(--cyan-border);
    background: rgba(126, 231, 245, 0.14);
    color: var(--ivory);
  }
}
