/* ============================================================
   Digitales Schwarzes Brett — page-specific styles
   Inherits all foundations from homepage.css (which is imported
   first); these rules layer on the board mock, assemble animation
   and display-format scenes.
   ============================================================ */

/* ============================================================
   HERO BOARD STAGE  (fixed 1920×1080, JS-scaled to fit)
   ============================================================ */
/* align-self overrides the parent flex's align-items:center so the
   100vw stage + negative margin trick actually full-bleeds correctly.
   Without this, flex centering miscalculates with the negative margin
   and pulls the whole board ~20px left of viewport center. */
.brett-stage { position: relative; width: 100vw; margin: 18px 0 0 calc(50% - 50vw); align-self: flex-start; overflow: visible; padding: 0; height: auto; }
.brett-scene {
  position: absolute; top: 0; left: 50%; width: 1920px; height: 1080px;
  transform-origin: top center; will-change: transform;
  perspective: 2400px; perspective-origin: 50% 42%;
}

/* the board itself sits on a deep purple slab to evoke the live display */
.brett-board {
  position: absolute; left: 50%; top: 50%;
  width: 1620px; height: 940px;
  transform: translate(-50%, -50%) rotateX(8deg) rotateY(-6deg);
  transform-style: preserve-3d;
  border-radius: 28px;
  background:
    radial-gradient(900px 600px at 30% 18%, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(150deg, var(--dt-purple-700) 0%, var(--dt-purple) 55%, var(--dt-purple-800) 100%);
  box-shadow:
    0 80px 140px rgba(38,31,63,0.45),
    0 24px 50px rgba(87,70,139,0.30),
    inset 0 1px 0 rgba(255,255,255,0.12);
  padding: 30px;
  display: grid;
  grid-template-columns: 1.05fr 0.9fr;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}

/* device frame around the board (TV / large display) */
.brett-board::before {
  content: ""; position: absolute; inset: -22px; border-radius: 36px;
  background: linear-gradient(160deg, #2a223b, #1a1428);
  z-index: -1;
  box-shadow: 0 60px 110px rgba(20,16,40,0.55), inset 0 1px 0 rgba(255,255,255,0.06);
}
.brett-board::after {
  content: ""; position: absolute; left: 50%; bottom: -36px;
  transform: translateX(-50%);
  width: 90px; height: 12px; border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #1a1428, #0e0a1b);
  z-index: -1;
}

/* base tile (a single section of the board) */
/* NOTE: no backdrop-filter here — the tiles sit on an opaque purple board,
   so the blur was invisible but forced a full-frame readback every scroll
   frame inside the 3D scene (the main Mac scroll-jank source). A slightly
   more opaque tint reads identically and composites cheaply. */
.bt {
  position: relative;
  background: rgba(255,255,255,0.085);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 12px 28px rgba(0,0,0,0.22);
  color: #fff;
  transform-style: preserve-3d;
}
.bt-title {
  position: absolute; top: 18px; left: 22px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 22px; letter-spacing: .01em; color: #fff;
  z-index: 2;
}

/* TL: featured (image carousel) */
.bt-feat { grid-row: 1 / 2; padding: 32px 38px; display: flex; flex-direction: column; }
.bt-feat .ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(87,70,139,0.55) 0%, rgba(87,70,139,0) 50%),
    linear-gradient(160deg, #6f5aab 0%, #4d3a82 100%);
  z-index: 0;
}
.bt-feat .ph::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(360px 220px at 20% 30%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(280px 200px at 80% 75%, rgba(106,168,229,0.30), transparent 60%);
}
/* abstract silhouettes (instead of real photo) */
.bt-feat .silhouettes {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56%;
  background:
    radial-gradient(closest-side at 22% 100%, rgba(20,12,40,0.45) 0% 35%, transparent 60%),
    radial-gradient(closest-side at 42% 100%, rgba(20,12,40,0.45) 0% 30%, transparent 60%),
    radial-gradient(closest-side at 62% 100%, rgba(20,12,40,0.45) 0% 34%, transparent 60%),
    radial-gradient(closest-side at 82% 100%, rgba(20,12,40,0.45) 0% 32%, transparent 60%);
  filter: blur(1.5px);
  z-index: 0;
}
.bt-feat .feat-head { position: relative; z-index: 2; margin-bottom: 18px; }
.bt-feat .feat-head small {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}
.bt-feat .feat-head h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 38px;
  letter-spacing: .005em; color: #fff; line-height: 1.05;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.bt-feat .feat-jobs {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 460px;
}
.bt-feat .job {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
}
.bt-feat .job .role {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: #fff;
  letter-spacing: .005em;
}
.bt-feat .job .loc {
  font-family: var(--font-body); font-weight: 400; font-size: 12.5px;
  color: rgba(255,255,255,0.75); white-space: nowrap;
}
.bt-feat .cap {
  position: absolute; right: 32px; bottom: 32px;
  background: rgba(38,31,63,0.72);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 10px;
  padding: 10px 22px;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  color: #fff; letter-spacing: .005em; z-index: 2;
}
.bt-feat .arrow {
  position: absolute; right: 22px; top: 38px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(38,31,63,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  color: #fff;
}
.bt-feat .arrow.l { right: auto; left: 22px; }
.bt-feat .dots {
  position: absolute; right: 14px; top: 14px; bottom: 14px; width: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 20%, rgba(255,255,255,0.4) 70%, rgba(255,255,255,0) 100%);
  border-radius: 2px;
}

/* TR + BR: news columns */
.bt-news { grid-column: 2; padding: 22px 24px 18px; display: flex; flex-direction: column; gap: 14px; }
.bt-news.t { grid-row: 1; }
.bt-news.b { grid-row: 2; }
.bt-news .bn-head { display: flex; align-items: center; justify-content: space-between; }
.bt-news .bn-head .scroll {
  width: 4px; align-self: stretch;
  background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.45) 30%, rgba(255,255,255,0.12) 30%, rgba(255,255,255,0.12) 100%);
  border-radius: 2px; min-height: 60px;
}
.bn-items { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; flex: 1; min-height: 0; }
.bn-item {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px;
  align-items: stretch;
}
.bn-item .thumb {
  width: 132px; height: 86px; border-radius: 8px; overflow: hidden;
  position: relative;
  background: linear-gradient(160deg, #b8c8df 0%, #6a7c97 100%);
}
.bn-item .thumb.cars      { background: linear-gradient(135deg, #2a2a30 0%, #444452 50%, #25252b 100%); }
.bn-item .thumb.cars::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.10) 48% 52%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(106,168,229,0.18) 48% 52%, transparent 52%);
  background-size: 18px 18px, 26px 26px;
}
.bn-item .thumb.calc      { background: linear-gradient(135deg, #d8d4c4 0%, #b8b09a 100%); }
.bn-item .thumb.calc::before {
  content: ""; position: absolute; inset: 14px; border-radius: 4px;
  background:
    repeating-linear-gradient(0deg, transparent 0 9px, rgba(80,60,30,0.18) 9px 10px),
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(80,60,30,0.18) 14px 15px);
}
.bn-item .thumb.office    { background: linear-gradient(135deg, #2f3540 0%, #50515e 100%); }
.bn-item .thumb.office::before {
  content: ""; position: absolute; left: 30%; top: 40%; width: 40%; height: 40%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: rgba(255,255,255,0.18);
}
.bn-item .thumb.portrait  { background: linear-gradient(135deg, #d5cdc1 0%, #8a8174 100%); }
.bn-item .thumb.portrait::before {
  content: ""; position: absolute; left: 38%; top: 30%; width: 24%; height: 40%; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  box-shadow: 0 22px 0 -2px rgba(255,255,255,0.3);
}
.bn-item .thumb.team      { background: linear-gradient(135deg, #4f4060 0%, #2c2440 100%); }
.bn-item .thumb.team::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(closest-side at 25% 60%, rgba(255,255,255,0.30) 0% 30%, transparent 60%),
    radial-gradient(closest-side at 50% 50%, rgba(255,255,255,0.30) 0% 30%, transparent 60%),
    radial-gradient(closest-side at 75% 60%, rgba(255,255,255,0.30) 0% 30%, transparent 60%);
}
.bn-item .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bn-item .body .date {
  font-family: var(--font-body); font-size: 11.5px; color: rgba(255,255,255,0.65);
  font-weight: 400; letter-spacing: .01em;
}
.bn-item .body .ttl {
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  color: #fff; letter-spacing: .005em; line-height: 1.2;
}
.bn-item .body .ex {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 300;
  color: rgba(255,255,255,0.78); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* BL: stacked small tiles */
.bt-bl { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* Kantine */
.bt-cant { padding: 22px 26px 24px; display: flex; flex-direction: column; gap: 12px; }
.bt-cant .bt-title { position: static; margin-bottom: 0; }
.bt-cant .menu-day {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.bt-cant .menu-items { display: flex; flex-direction: column; gap: 8px; }
.bt-cant .mi {
  display: grid; grid-template-columns: 14px 1fr auto;
  align-items: center; gap: 12px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 6px;
}
.bt-cant .mi-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.bt-cant .mi-meat { background: #d97757; box-shadow: 0 0 0 2px rgba(217,119,87,0.18); }
.bt-cant .mi-veg  { background: #6abf67; box-shadow: 0 0 0 2px rgba(106,191,103,0.18); }
.bt-cant .mi-soup { background: var(--dt-blue-300); box-shadow: 0 0 0 2px rgba(106,168,229,0.18); }
.bt-cant .mi-name {
  font-family: var(--font-body); font-weight: 400; font-size: 13.5px;
  color: #fff; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bt-cant .mi-price {
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: rgba(255,255,255,0.85); letter-spacing: .01em;
}
.bt-cant .menu-btn {
  align-self: flex-start; margin-top: auto;
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  letter-spacing: .06em; padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.40);
  color: #fff; background: transparent;
}
.bt-cant .ic {
  position: absolute; right: -18px; bottom: -18px; width: 130px; height: 130px;
  color: var(--dt-blue-300); opacity: 0.18; pointer-events: none;
}
.bt-cant .ic svg { width: 100%; height: 100%; }

/* Neueinstellungen */
.bt-new { padding: 22px 26px 22px; }
.bt-new .bt-title { position: static; margin-bottom: 12px; }
.bt-new .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.bt-new .pgr { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(255,255,255,0.7); }
.bt-new .pgr span.cur { color: #fff; }
.bt-new .pgr .arr { width: 22px; height: 22px; border: 1px solid rgba(255,255,255,0.40); border-radius: 4px; display: grid; place-items: center; }
.bt-new .ppl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bt-new .pp { display: flex; flex-direction: column; gap: 4px; }
.bt-new .pp .av {
  width: 100%; aspect-ratio: 16/9; border-radius: 6px;
  background: linear-gradient(135deg, #5a4878 0%, #38304e 100%);
  position: relative; overflow: hidden;
}
.bt-new .pp .av::before {
  content: ""; position: absolute; left: 36%; top: 18%; width: 28%; aspect-ratio: 1; border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.bt-new .pp .av::after {
  content: ""; position: absolute; left: 18%; bottom: 0; right: 18%; height: 35%;
  background: rgba(255,255,255,0.4); border-radius: 50% 50% 0 0;
}
.bt-new .pp.b .av { background: linear-gradient(135deg, #3a577a 0%, #1a2c44 100%); }
.bt-new .pp .name { font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: #fff; }
.bt-new .pp .role { font-size: 11px; color: rgba(255,255,255,0.65); font-weight: 300; }

/* assemble animation
   Tiles default to opacity 1; only hidden pre-assembly. The keyframe animation
   starts at opacity:0 and lands at opacity:1. When .floating later replaces
   the animation, no rule sets opacity, so it stays at the default 1. */
.bt {
  --asx: 0px; --asy: 0px; --asr: 0deg; --asz: 0;
}
.brett-scene:not(.assembled) .bt { opacity: 0; }
@keyframes bt-assemble {
  0% {
    opacity: 0;
    transform: translate3d(var(--asx), var(--asy), 0) rotate(var(--asr)) scale(0.94);
  }
  42% { opacity: 1; }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}
/* Smoother fly-in: shorter travel (seeded in JS), gentle scale, and a soft
   easeOutQuint curve. translate3d + will-change keep it on the GPU so it
   stays fluid on Mac trackpads. */
.brett-scene.assembled .bt {
  animation: bt-assemble 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .bt, .brett-scene:not(.assembled) .bt { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* subtle floating after assembly (added by JS once assemble completes).
   Note: bt-bob keyframes touch only transform, so opacity remains at the
   resting default (1) once assembly is done. */
@keyframes bt-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.brett-scene.assembled .bt.floating {
  animation: bt-bob 6s ease-in-out infinite;
}

/* ============================================================
   DISPLAY-FORMATS SCENE
   ============================================================ */
.df-stage { position: relative; width: 100%; height: 100%; }
/* shifted right of center so the caption (left-anchored) has clear room */
.df-holder { position: absolute; left: calc(50% + 250px); top: 50%; transform-style: preserve-3d; will-change: transform; }
.df-rack { display: flex; gap: 30px; align-items: flex-end; transform-style: preserve-3d; }
.df-screen {
  background: #1a1428; border-radius: 12px; padding: 14px;
  box-shadow: 0 50px 100px rgba(20,16,40,0.45), 0 12px 28px rgba(20,16,40,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  position: relative; transform-style: preserve-3d;
}
.df-screen.tv       { width: 520px; height: 312px; }
.df-screen.portrait { width: 208px; height: 364px; }
.df-screen.tablet   { width: 320px; height: 232px; border-radius: 18px; padding: 16px; }
.df-screen .inner {
  position: absolute; inset: 14px; border-radius: 6px; overflow: hidden;
  background: linear-gradient(150deg, var(--dt-purple-700), var(--dt-purple-800));
  padding: 10px; display: grid; gap: 6px;
}
.df-screen.tv .inner { grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr 1fr; }
.df-screen.portrait .inner { grid-template-rows: 1fr 0.7fr 1fr; }
.df-screen.tablet .inner { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.df-screen .cell { background: rgba(255,255,255,0.10); border-radius: 4px; border: 1px solid rgba(255,255,255,0.10); position: relative; overflow: hidden; }
.df-screen .cell.featured {
  background: linear-gradient(135deg, #6f5aab, #4d3a82);
  grid-row: 1 / 3;
}
.df-screen .cell.featured::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background:
    radial-gradient(closest-side at 30% 100%, rgba(0,0,0,0.4) 0% 40%, transparent 70%),
    radial-gradient(closest-side at 70% 100%, rgba(0,0,0,0.4) 0% 40%, transparent 70%);
  filter: blur(2px);
}
.df-screen .cell .lab {
  position: absolute; left: 8px; top: 6px; font-family: var(--font-display);
  font-weight: 700; font-size: 8.5px; color: #fff; letter-spacing: .08em; text-transform: uppercase;
  opacity: 0.85;
}
.df-screen .stand {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  width: 100px; height: 22px;
  background: linear-gradient(180deg, #2a223b, #14102a);
  border-radius: 0 0 10px 10px;
}
.df-screen.portrait .stand { width: 60px; height: 16px; bottom: -16px; border-radius: 0 0 6px 6px; }
.df-screen.tablet .stand { display: none; }
.df-screen .badge {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%);
  font-family: var(--font-display); font-weight: 600; font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,0.55);
}

/* ============================================================
   SYNC SCENE  (SharePoint → Board live feed)
   ============================================================ */
.sync-stage { position: absolute; left: calc(50% - 230px); top: 50%; transform: translate(-50%, -50%); width: 760px; height: 520px; transform-style: preserve-3d; will-change: transform; }
.sync-stage .src {
  position: absolute; left: 0; top: 90px;
  width: 240px; background: #fff; border-radius: 12px; padding: 16px;
  border: 1px solid var(--dt-line); box-shadow: var(--shadow-2);
}
.sync-stage .src .h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sync-stage .src .h .ic { width: 30px; height: 30px; border-radius: 6px; background: var(--ms-blue); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: .04em; }
.sync-stage .src .h .nm { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ms-text); }
.sync-stage .src .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f2; font-size: 12.5px; color: var(--ms-text); }
.sync-stage .src .row:last-child { border-bottom: 0; }
.sync-stage .src .row .ft { width: 24px; height: 24px; border-radius: 4px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 8px; color: #fff; }
.sync-stage .src .row .ft.n { background: var(--dt-blue); }
.sync-stage .src .row .ft.d { background: var(--ft-docx); }
.sync-stage .src .row .ft.i { background: var(--dt-purple-400); }

.sync-stage .dest {
  position: absolute; right: 0; top: 80px;
  width: 440px; height: 340px; border-radius: 16px;
  background: linear-gradient(150deg, var(--dt-purple-700) 0%, var(--dt-purple) 100%);
  box-shadow: 0 50px 100px rgba(20,16,40,0.45);
  padding: 16px;
  display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
}
.sync-stage .dest::before {
  content: ""; position: absolute; inset: -10px; border-radius: 22px;
  background: linear-gradient(160deg, #2a223b, #1a1428); z-index: -1;
}
.sync-stage .dest .slot {
  border-radius: 8px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  position: relative; overflow: hidden;
  padding: 10px;
  display: flex; align-items: stretch; justify-content: stretch;
}
.sync-stage .dest .slot.f { grid-row: 1 / 3; padding: 0; }
.sync-stage .dest .slot .slot-label {
  position: absolute; left: 12px; top: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  color: rgba(255,255,255,0.5); letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .35s ease;
  z-index: 2;
}
.sync-stage .dest .slot.filled .slot-label { opacity: 0; }
.sync-stage .dest .slot.filled { background: rgba(255,255,255,0.14); }
.sync-stage .dest .slot.filled.f { background: transparent; }

/* Slot content (revealed after parcel lands) */
.slot-content {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1fr; align-items: end;
  opacity: 0;
  transition: opacity .5s ease .15s;
  border-radius: inherit; overflow: hidden;
}
.slot.filled .slot-content { opacity: 1; }
.slot-content.sc-vert { grid-template-rows: 1fr auto; align-items: stretch; }
.slot-content .sc-image,
.slot-content .sc-thumb {
  position: relative; overflow: hidden;
}
.slot-content .sc-image {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #6f5aab 0%, #4d3a82 100%);
}
.slot-content .sc-image::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(360px 220px at 20% 30%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(280px 200px at 80% 75%, rgba(106,168,229,0.30), transparent 60%);
}
.slot-content .sc-sil {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56%;
  background:
    radial-gradient(closest-side at 25% 100%, rgba(20,12,40,0.45) 0% 35%, transparent 60%),
    radial-gradient(closest-side at 55% 100%, rgba(20,12,40,0.45) 0% 32%, transparent 60%),
    radial-gradient(closest-side at 80% 100%, rgba(20,12,40,0.45) 0% 30%, transparent 60%);
  filter: blur(1.5px);
}
.slot-content .sc-thumb {
  background: linear-gradient(135deg, #2f3540 0%, #50515e 100%);
  border-radius: 4px;
  min-height: 60px;
}
.slot-content .sc-thumb.sc-doc {
  background:
    repeating-linear-gradient(0deg, transparent 0 8px, rgba(255,255,255,0.12) 8px 9px),
    linear-gradient(135deg, #364a72 0%, #1f3055 100%);
}
.slot-content .sc-thumb.sc-team {
  background:
    radial-gradient(closest-side at 25% 60%, rgba(255,255,255,0.30) 0% 30%, transparent 60%),
    radial-gradient(closest-side at 50% 50%, rgba(255,255,255,0.30) 0% 30%, transparent 60%),
    radial-gradient(closest-side at 75% 60%, rgba(255,255,255,0.30) 0% 30%, transparent 60%),
    linear-gradient(135deg, #4f4060 0%, #2c2440 100%);
}
.slot-content .sc-text {
  position: relative; z-index: 2;
  padding: 10px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(15, 10, 35, 0.55));
}
.slot-content .sc-eyebrow {
  font-family: var(--font-body); font-weight: 400; font-size: 10.5px;
  color: rgba(255,255,255,0.72); margin-bottom: 2px;
}
.slot-content .sc-title {
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  color: #fff; letter-spacing: .005em; line-height: 1.15;
}
.slot-content .sc-title.sm { font-size: 14px; }
.slot.f .slot-content .sc-text { padding: 12px 18px 14px; }

/* flying parcels */
.sync-parcel {
  position: absolute; width: 96px; height: 60px; border-radius: 10px;
  background: #fff;
  box-shadow: 0 22px 40px rgba(20,16,40,0.45), 0 6px 14px rgba(20,16,40,0.30);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 14px; letter-spacing: .04em; color: #fff;
  opacity: 0;
  border: 1px solid rgba(255,255,255,0.35);
  /* glow */
  filter: drop-shadow(0 0 18px rgba(106,168,229,0.45));
  will-change: transform, opacity;
}
.sync-parcel::before {
  content: ""; position: absolute; inset: -4px;
  border-radius: 12px; border: 1px solid currentColor;
  opacity: 0.35; pointer-events: none;
}
.sync-parcel.n { background: linear-gradient(135deg, var(--dt-blue) 0%, var(--dt-blue-600) 100%); }
.sync-parcel.d { background: linear-gradient(135deg, #3057a3 0%, var(--ft-docx) 100%); }
.sync-parcel.i { background: linear-gradient(135deg, var(--dt-purple-400) 0%, var(--dt-purple) 100%); }

/* source row highlight during parcel flight */
.sync-stage .src .row { transition: background .25s, color .25s; }
.sync-stage .src .row.flying { background: var(--dt-purple-50); color: var(--dt-purple); }
.sync-stage .src .row.flying .ft { filter: brightness(1.15) saturate(1.15); box-shadow: 0 0 0 3px rgba(106,168,229,0.25); }

/* destination slot when filled */
.sync-stage .dest .slot { transition: background .35s, color .35s, box-shadow .35s; }
.sync-stage .dest .slot.filled {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.20), 0 0 24px rgba(106,168,229,0.25);
}

/* ============================================================
   Standalone bg variants per scene (re-uses .scene-pin)
   ============================================================ */
.bg-deep {
  background:
    radial-gradient(900px 700px at 20% 30%, rgba(106,168,229,0.10) 0%, rgba(106,168,229,0) 60%),
    radial-gradient(900px 700px at 80% 70%, rgba(87,70,139,0.12) 0%, rgba(87,70,139,0) 60%),
    linear-gradient(160deg, #1a1330 0%, #251c45 100%);
  color: #fff;
}
.bg-deep .scene-caption h2 { color: #fff; }
.bg-deep .scene-caption .lead { color: rgba(255,255,255,0.75); }
.bg-deep .eyebrow { color: var(--dt-blue-200); }
.bg-deep .eyebrow .dot { background: var(--dt-blue-300); }
.bg-deep .dotgrid {
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.4px, transparent 1.4px);
}

/* ============================================================
   Microsoft 365 / SharePoint inline highlight
   ============================================================ */
.ms-hl { color: var(--dt-purple); font-weight: 600; }
.bg-deep .ms-hl, .cta-band .ms-hl, .bg-dark .ms-hl { color: var(--dt-blue-200); }

/* ============================================================
   STATIC DISPLAY-FORMATS SECTION (scroll animation removed)
   A calm, non-pinned section: copy on the left, a flat rack of three
   device mockups on the right, each revealed once on entry.
   ============================================================ */
.formats-section { position: relative; padding: 108px 0; overflow: hidden; }
.formats-grid {
  display: grid; grid-template-columns: minmax(300px, 400px) 1fr;
  gap: 56px; align-items: center;
}
.formats-copy h2 { color: #fff; }
.formats-copy .lead { color: rgba(255,255,255,0.80); margin-bottom: 0; }
.formats-rack {
  display: flex; gap: 30px; align-items: flex-end; justify-content: center;
  flex-wrap: wrap; padding-bottom: 26px;
}
.formats-rack .df-screen { animation: none; }
.formats-rack .df-screen.tv       { width: 380px; height: 228px; }
.formats-rack .df-screen.portrait { width: 150px; height: 262px; }
.formats-rack .df-screen.tablet   { width: 232px; height: 168px; }
@media (max-width: 980px) {
  .formats-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .formats-copy .eyebrow { justify-content: center; }
  .formats-copy .lead { margin-left: auto; margin-right: auto; max-width: 52ch; }
}
@media (max-width: 600px) {
  .formats-section { padding: 80px 0; }
  .formats-rack { gap: 20px; }
  .formats-rack .df-screen.tv       { width: min(340px, 84vw); height: auto; aspect-ratio: 16 / 9.6; }
  .formats-rack .df-screen.portrait { width: min(132px, 32vw); height: auto; aspect-ratio: 4 / 7; }
  .formats-rack .df-screen.tablet   { width: min(220px, 56vw); height: auto; aspect-ratio: 4 / 3; }
}

/* ============================================================
   M365-Schwarzesbrett product logo + back-to-corporate link
   ============================================================ */
/* Wordmark lockup, faithful to the m365-intranet.com logo:
   "M365-" purple · "SCHWARZESBRETT" blue · ".COM" purple,
   with a "POWERED BY DIGITALTOUCH" subline. Pure Rajdhani text \u2014
   crisp at any size, no raster. */
.product-logo {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  gap: 3px; text-decoration: none; border: 0; line-height: 1;
}
.pl-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 24px; line-height: 0.86; letter-spacing: 0.004em;
  text-transform: uppercase; color: var(--dt-purple); white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-standard);
}
.pl-word .b { color: var(--dt-blue); transition: color var(--dur-fast) var(--ease-standard); }
.product-logo:hover .pl-word { color: var(--dt-purple-600); }
.product-logo:hover .pl-word .b { color: var(--dt-blue-400); }
.pl-sub {
  display: inline-flex; align-items: baseline; gap: 0.46em;
  text-transform: uppercase; color: var(--dt-purple);
  font-family: var(--font-display); white-space: nowrap;
}
.pl-sub .pb { font-weight: 600; font-size: 8px; letter-spacing: 0.2em; color: var(--dt-purple-400); }
.pl-sub .dt { font-weight: 400; font-size: 11px; letter-spacing: 0.03em; }
.pl-sub .dt b { font-weight: 700; }
/* dark backgrounds (footer brand area) flip to light inks */
.on-dark.product-logo .pl-word { color: #fff; }
.on-dark.product-logo .pl-word .b { color: var(--dt-blue-200); }
.on-dark.product-logo .pl-sub { color: rgba(255,255,255,0.72); }
.on-dark.product-logo .pl-sub .pb { color: rgba(255,255,255,0.55); }

.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 500; font-size: 13px;
  letter-spacing: 0.04em; color: var(--fg-2); text-decoration: none; border: 0;
  white-space: nowrap; transition: color var(--dur-fast) var(--ease-standard);
}
.nav-back svg { flex: none; transition: transform var(--dur-fast) var(--ease-standard); }
.nav-back:hover { color: var(--dt-purple); }
.nav-back:hover svg { transform: translateX(-2px); }
@media (max-width: 600px) {
  .pl-word { font-size: 18px; }
  .pl-sub .pb { font-size: 7px; }
  .pl-sub .dt { font-size: 9px; }
  .nav-back span { display: none; }
}
@media (max-width: 400px) {
  .pl-word { font-size: 15px; }
}

/* desktop caption sizing for scenes — tighter width keeps a real
   gutter between text and the 3D visuals so they never overlap */
#formats .scene-caption, #sync .scene-caption { width: min(380px, 30vw); }

/* pause the hero board's idle float when it scrolls out of view
   (saves continuous compositor work on long scroll-heavy pages) */
.brett-scene.paused .bt.floating { animation-play-state: paused; }

/* responsive shrinking of board on smaller widths handled via JS scale */

/* ============================================================
   RESPONSIVE — tablet & mobile
   On screens ≤ 980px we drop all scroll-pinning and 3D tricks,
   stack scenes vertically, and let the page flow normally.
   ============================================================ */
@media (max-width: 1280px) {
  /* Hero board: flatter, slightly smaller frame */
  .brett-board {
    transform: translate(-50%, -50%) rotateX(0deg);
  }
  /* reset the tightened desktop caption width for the stacked layout */
  #formats .scene-caption, #sync .scene-caption { width: 100% !important; }

  /* Scenes: turn off sticky pin, let them be normal sections */
  .scene { height: auto !important; }
  .scene-pin {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0;
    padding: 88px 0 96px;
    display: block;
    overflow: visible;
  }
  .stage3d {
    position: relative !important;
    height: auto !important;
    perspective: none !important;
    padding: 0 20px;
  }
  .tdf { transform-style: flat !important; }

  /* Caption stacks on top, full width, centered */
  .scene-caption {
    position: relative !important;
    width: 100% !important;
    max-width: 720px;
    margin: 0 auto 48px;
    padding: 0 20px;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    text-align: center !important;
  }
  .scene-caption .lead {
    max-width: 56ch;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }
  .scene-caption .eyebrow {
    justify-content: center !important;
  }

  /* Formats: flat rack, wraps if needed */
  .df-holder {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    margin: 0 auto;
    width: 100%;
    max-width: 760px;
  }
  .df-rack {
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 40px 24px;
    transform: none !important;
  }
  .df-screen.tv      { width: min(440px, 86vw); height: auto; aspect-ratio: 16/9.5; }
  .df-screen.portrait{ width: min(180px, 32vw); height: auto; aspect-ratio: 4/7; }
  .df-screen.tablet  { width: min(300px, 60vw); height: auto; aspect-ratio: 4/3; }
  .df-screen .inner  { padding: 8px; gap: 4px; }
  .df-screen .badge  { top: 4px; font-size: 8px; }

  /* Sync: stack source above destination */
  .sync-stage {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }
  .sync-stage .src,
  .sync-stage .dest {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: min(420px, 88vw) !important;
    margin: 0;
  }
  .sync-stage .dest {
    height: 280px !important;
  }
  /* On mobile, slots simply show their content (no parcel flight) */
  .sync-stage .dest .slot { background: rgba(255,255,255,0.14) !important; }
  .sync-stage .dest .slot .slot-content { opacity: 1 !important; }
  .sync-stage .dest .slot .slot-label { opacity: 0 !important; }
  .sync-parcel { display: none !important; }
}

/* ----- Phone-sized screens ----- */
@media (max-width: 600px) {
  /* Tighter section spacing */
  #hero { padding: 70px 0 8px; }
  #how  { padding: 88px 0 !important; }
  .features { padding: 88px 0; }
  .cta-band { padding: 88px 0; }
  .scene-pin { padding: 72px 0 80px; }

  /* Footer stacks single-column */
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 36px;
    padding: 56px 24px 32px;
  }
  .footer-brand img { height: 72px; }
  .footer-bar-inner { padding: 18px 24px; flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-legal { gap: 16px 18px; }

  /* Format screens tighter */
  .df-screen.tv      { width: 90vw; }
  .df-screen.portrait{ width: 36vw; }
  .df-screen.tablet  { width: 72vw; }

  /* Nav: hide internal links (already hidden ≤880), keep brand + CTA */
  .nav-brand .pname { font-size: 15px; padding-left: 10px; }
  .nav-cta { padding: 9px 14px; font-size: 11.5px; letter-spacing: .06em; }
}
