/* ============================================================
   Dokumentenwächter — Homepage
   Brand: Digital Touch (purple/blue). Tool mockups keep MS-blue.
   ============================================================ */

@import url('colors_and_type.css');

:root {
  /* Microsoft / tool-UI palette (only inside .mock screens) */
  --ms-blue:      #0f6cbd;
  --ms-blue-dark: #0a5aa0;
  --ms-text:      #242424;
  --ms-text-2:    #616161;
  --ms-line:      #e1e1e1;
  --ms-bg:        #ffffff;
  --ms-link:      #0f6cbd;
  --st-green-bg:  #dff6dd; --st-green-fg: #0b6a0b;
  --st-amber-bg:  #fff4ce; --st-amber-fg: #835c00;
  --ft-txt:  #5c5c5c; --ft-xlsx: #217346; --ft-pptx: #c43e1c;
  --ft-pdf:  #d13438; --ft-docx: #2b579a;

  --ease-pop: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--fg-1);
  background: #fff;
  overflow-x: hidden;
}

/* prevent scroll smoothing fighting JS scrub */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-accent, var(--dt-purple));
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dt-blue); }
.eyebrow.on-dark { color: var(--dt-blue-200); }

h1, h2, h3 { font-family: var(--font-display); color: var(--dt-ink); letter-spacing: 0.01em; line-height: 1.12; }
.section-title { font-size: clamp(34px, 4vw, 56px); font-weight: 700; letter-spacing: 0.005em; line-height: 1.15; }
.lead { font-family: var(--font-body); font-weight: 300; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--fg-2); max-width: 56ch; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.30);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--dt-line); background: rgba(255,255,255,0.72); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); }
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 0; text-decoration: none; }
.nav-brand img { height: 30px; display: block; }
.nav-brand .pname { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--dt-ink); letter-spacing: 0.01em; border-left: 1px solid var(--dt-line); padding-left: 12px; margin-left: 12px; }
.nav-home { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px 6px 6px; margin-left: -10px; border-radius: 6px; text-decoration: none; border: 0; color: var(--fg-3); transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); }
.nav-home:hover { background: var(--dt-purple-50); color: var(--dt-purple); }
.nav-home-arrow { flex: none; transition: transform var(--dur-fast) var(--ease-standard); }
.nav-home:hover .nav-home-arrow { transform: translateX(-2px); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; font-size: 14.5px;
  letter-spacing: 0.03em; color: var(--fg-1); text-decoration: none; border: 0;
  transition: color .15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--dt-purple); }
.nav-links a.nav-other { color: var(--dt-purple); border-left: 1px solid var(--dt-line); padding-left: 30px; margin-left: -10px; }
.nav-links a.nav-other:hover { color: var(--dt-purple-600); }
.nav-cta {
  font-family: var(--font-display); font-weight: 600; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  padding: 11px 20px; border-radius: 4px; border: 0; cursor: pointer;
  background: var(--dt-purple); color: #fff; text-decoration: none;
  transition: background .18s, transform .18s;
  isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0);
}
.nav-cta:hover { background: #463872 !important; color: #fff !important; }
.nav-cta:active { transform: scale(.98); }
@media (max-width: 1040px) { .nav-links { display: none; } }

/* ============================================================
   SCENE SCAFFOLD (sticky-pinned)
   ============================================================ */
.scene { position: relative; }
.scene-pin {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center; overflow: hidden;
  contain: paint;
}
.stage3d { perspective: 1800px; perspective-origin: 52% 44%; width: 100%; height: 100%; position: relative; }
.tdf { transform-style: preserve-3d; }

/* scene background variants */
.bg-wash { background:
  radial-gradient(1100px 800px at 24% 26%, #ffffff 0%, rgba(255,255,255,0) 55%),
  radial-gradient(1300px 1000px at 86% 90%, #e7eefb 0%, rgba(231,238,251,0) 60%),
  linear-gradient(125deg, #f3f1f8 0%, #eef5fc 100%); }
.bg-white { background: #fff; }
.bg-tint  { background: var(--dt-bg-tint); }
.bg-dark  { background: linear-gradient(160deg, var(--dt-purple-700) 0%, var(--dt-purple-900) 100%); color: #fff; }

/* dot grid + soft blobs reusable */
.dotgrid { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(87,70,139,0.07) 1.4px, transparent 1.4px);
  background-size: 46px 46px;
  mask-image: radial-gradient(1100px 820px at 55% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(1100px 820px at 55% 50%, #000 30%, transparent 80%); }
.blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }

/* scene caption block (text overlay on scenes) */
.scene-caption { position: absolute; z-index: 12; width: min(440px, 42vw); }
.scene-caption h2 { margin-bottom: 18px; }
.scene-caption .lead { margin-bottom: 0; }

/* ============================================================
   SHARED MOCK (tool screens) — MS look
   ============================================================ */
.mock { background: var(--ms-bg); color: var(--ms-text); font-family: 'Segoe UI', var(--font-body); border-radius: 14px; box-shadow: 0 40px 90px rgba(38,31,63,0.28), 0 8px 24px rgba(38,31,63,0.12); border: 1px solid #ededf0; overflow: hidden; }
.mock .winbar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #faf9fb; border-bottom: 1px solid #eee; }
.mock .winbar i { width: 11px; height: 11px; border-radius: 50%; background: #dadade; display: block; }
.mock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill-green { background: var(--st-green-bg); color: var(--st-green-fg); }
.pill-amber { background: var(--st-amber-bg); color: var(--st-amber-fg); }
.ms-btn { font-family: 'Segoe UI', var(--font-body); font-size: 13px; font-weight: 600; border-radius: 4px; padding: 8px 14px; display: inline-flex; align-items: center; gap: 7px; cursor: default; white-space: nowrap; border: 1px solid var(--ms-line); background: #fff; color: var(--ms-text); }
.ms-btn.primary { background: var(--ms-blue); border-color: var(--ms-blue); color: #fff; }
.ms-link { color: var(--ms-link); font-weight: 600; text-decoration: none; }

/* file type chip */
.ftype { width: 26px; height: 26px; border-radius: 5px; display: grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; font-size: 9px; color: #fff; letter-spacing: .02em; }
.ftype.txt { background: var(--ft-txt); } .ftype.xlsx { background: var(--ft-xlsx); }
.ftype.pptx { background: var(--ft-pptx); } .ftype.pdf { background: var(--ft-pdf); }
.ftype.docx { background: var(--ft-docx); } .ftype.folder { background: #ffd15c; color:#7a5a00; }

/* ============================================================
   HERO
   ============================================================ */
#hero { position: relative; display: block; padding: 86px 0 18px; overflow: hidden; }
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.hero-center .eyebrow { margin-bottom: 14px; white-space: nowrap; }
.hero-center h1 { font-size: clamp(38px, 4.6vw, 68px); font-weight: 700; line-height: 1.1; letter-spacing: 0.004em; margin-bottom: 14px; }
.hero-center h1 .accent { color: var(--brand-accent, var(--dt-purple)); }
.hero-center .sub { font-size: clamp(16px, 1.25vw, 18px); font-weight: 300; color: var(--fg-2); line-height: 1.5; max-width: 60ch; margin: 0 auto 22px; }
.hero-actions { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-primary { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; padding: 13px 22px; border-radius: 4px; border: 0; cursor: pointer; background: var(--dt-purple); color: #fff; text-decoration: none; transition: background .18s, transform .18s; isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0); }
.btn-primary:hover { background: #463872 !important; color: #fff !important; }
.btn-primary:active { transform: scale(.98); }
.btn-ghost { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; padding: 13px 20px; border-radius: 4px; cursor: pointer; background: transparent; color: var(--dt-purple); text-decoration: none; border: 1px solid var(--dt-purple-200); transition: background .18s; isolation: isolate; transform: translateZ(0); -webkit-transform: translateZ(0); }
.btn-ghost:hover { background: #f1eff7 !important; color: #57468b !important; }
.hero-meta { margin-top: 30px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta .m { display: flex; flex-direction: column; gap: 2px; }
.hero-meta .m b { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--dt-ink); }
.hero-meta .m span { font-size: 13px; color: var(--fg-3); letter-spacing: .02em; }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg-3); font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; z-index: 6; }
.scroll-hint .mouse { width: 22px; height: 34px; border: 2px solid var(--dt-purple-300); border-radius: 12px; position: relative; }
.scroll-hint .mouse::after { content:''; position:absolute; top:6px; left:50%; transform: translateX(-50%); width:3px; height:7px; border-radius:2px; background: var(--dt-purple); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0%{opacity:0; transform:translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform:translate(-50%,10px);} }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* ============================================================
   3D building blocks reused across scenes
   ============================================================ */
/* floating file tile (same vocabulary as hero scene) */
.tile { position: absolute; width: 124px; height: 152px; border-radius: 18px;
  background: linear-gradient(160deg, #ffffff 0%, #f3f1f9 100%);
  border: 1px solid rgba(255,255,255,0.9);
  box-shadow: 0 30px 55px rgba(38,31,63,0.22), inset 0 1px 0 rgba(255,255,255,0.9);
  padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .corner { position: absolute; top: 0; right: 0; width: 34px; height: 34px; border-bottom-left-radius: 14px; background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0)); }
.tile .badge { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: #fff; padding: 4px 9px; border-radius: 7px; }
.tile .lines { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.tile .lines i { height:5px; border-radius:3px; background: var(--dt-grey-light); }
.tile .lines i:nth-child(1){width:76%;} .tile .lines i:nth-child(2){width:90%;} .tile .lines i:nth-child(3){width:58%;}
.tile .ext { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--dt-grey-mid); }
.tile.pdf .badge{background:var(--status-danger);} .tile.png .badge{background:var(--dt-blue-400);}
.tile.pptx .badge{background:var(--status-warning);} .tile.xlsx .badge{background:#217346;}
.tile.docx .badge{background:#2b579a;} .tile.txt .badge{background:#5c5c5c;}

/* ============================================================
   STEPS (So funktioniert's)
   ============================================================ */
.steps-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.steps-head { text-align: center; margin-bottom: 64px; }
.steps-head .eyebrow { margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.step { background: #fff; border: 1px solid var(--dt-line); border-radius: 16px; padding: 34px 30px; box-shadow: var(--shadow-2); position: relative; }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--dt-blue); letter-spacing: .1em; margin-bottom: 20px; }
.step .ic { width: 56px; height: 56px; border-radius: 14px; background: var(--dt-purple-50); display: grid; place-items: center; margin-bottom: 22px; color: var(--dt-purple); }
.step h3 { font-size: 24px; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.step .connector { position: absolute; top: 60px; right: -28px; width: 28px; height: 2px; background: var(--dt-purple-200); z-index: 2; }
.step:last-child .connector { display: none; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } .step .connector { display: none; } }

/* ============================================================
   FEATURE GRID
   ============================================================ */
.features { padding: 120px 0; }
.features-head { margin-bottom: 60px; max-width: 640px; }
.features-head .eyebrow { margin-bottom: 18px; }
.features-head h2 { margin-bottom: 18px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat { background: #fff; border: 1px solid var(--dt-line); border-radius: 14px; padding: 30px 28px; transition: transform .25s var(--ease-out), box-shadow .25s, border-color .25s; }
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); border-color: var(--dt-purple-200); }
.feat .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--dt-purple-50); color: var(--dt-purple); display: grid; place-items: center; margin-bottom: 20px; }
.feat h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.feat p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); }
@media (max-width: 980px) { .feat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .feat-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { position: relative; padding: 120px 0; text-align: center; overflow: hidden; }
.cta-band .eyebrow { margin-bottom: 22px; }
.cta-band h2 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; color: #fff; margin-bottom: 20px; }
.cta-band p { font-size: 19px; font-weight: 300; color: var(--dt-purple-100); max-width: 52ch; margin: 0 auto 38px; line-height: 1.5; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-primary { background: #fff; color: var(--dt-purple); }
.cta-band .btn-primary:hover { background: #f1eff7 !important; color: #57468b !important; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.1) !important; color: #fff !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dt-bg-alt); border-top: 1px solid var(--dt-line); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 72px 32px 44px; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 88px; margin-bottom: 18px; }
.footer-brand p { font-size: 14px; font-weight: 300; color: var(--fg-2); max-width: 340px; line-height: 1.55; margin-bottom: 18px; }
.footer-contact { font-family: var(--font-mono); font-size: 13px; color: var(--fg-1); display: flex; flex-direction: column; gap: 8px; }
.footer-contact a { color: var(--dt-purple); text-decoration: none; border: 0; transition: color var(--dur-fast) var(--ease-standard); }
.footer-contact a:hover { color: var(--dt-purple-600); }
.footer-legal { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-social { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--fg-2); transition: color var(--dur-fast) var(--ease-standard); }
.footer-social:hover { color: var(--dt-purple); }
.footer-col .ct { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--dt-ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--fg-2); text-decoration: none; border: 0; }
.footer-col a:hover { color: var(--dt-purple); }
.footer-bar { border-top: 1px solid var(--dt-line); }
.footer-bar-inner { max-width: 1200px; margin: 0 auto; padding: 20px 32px; display: flex; justify-content: space-between; font-size: 12px; color: var(--fg-3); gap: 16px; flex-wrap: wrap; }
.footer-bar-inner a { color: var(--fg-3); text-decoration: none; border: 0; }
@media (max-width: 880px) { .footer-inner { grid-template-columns: 1fr 1fr; } }

/* reveal-on-scroll utility */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity:1; transform:none; } }

/* progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--dt-purple), var(--dt-blue)); z-index: 110; }

/* (legacy hero-stage / teams-card definitions removed — superseded by
   the .h3-* hero scene further down) */

/* ============================================================
   SCENE caption + view toggle
   ============================================================ */
.scene-caption { z-index: 6; }
.view-toggle { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; }
.view-toggle.right { justify-content: flex-end; }
.vt-label { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); }
.vt-pill { font-family: var(--font-display); font-weight: 600; font-size: 13px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--dt-purple-200); color: var(--dt-purple); background: #fff; transition: all .25s; }
.vt-pill.active { background: var(--dt-purple); color: #fff; border-color: var(--dt-purple); }

.mock-holder { position: absolute; left: 50%; top: 50%; transform-style: preserve-3d; will-change: transform; }

/* SharePoint library mock */
.sp { width: 760px; }
.sp .sp-top { padding: 14px 18px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 12px; }
.sp .sp-top .dw { 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: 13px; }
.sp .sp-top .crumb { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--ms-text); }
.sp .sp-tabs { display: flex; gap: 8px; margin-left: auto; }
.sp .sp-tabs span { font-size: 12px; color: var(--ms-text-2); padding: 4px 10px; border-radius: 6px; }
.sp .sp-tabs span.on { background: #eef4fb; color: var(--ms-blue); font-weight: 600; }
.sp-head, .sp-rowx { display: grid; grid-template-columns: 2.4fr 1fr 1.1fr 1.1fr 1fr; align-items: center; gap: 10px; padding: 0 20px; }
.sp-head { height: 42px; border-bottom: 1px solid #eee; font-size: 12px; font-weight: 600; color: var(--ms-text-2); }
.sp-rowx { height: 52px; border-bottom: 1px solid #f3f3f5; font-size: 13.5px; }
.sp-rowx:hover { background: #f8fbff; }
.sp-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sp-name .nm { color: var(--ms-text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-prufen { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ms-blue); border: 1px solid #cfe0f3; background: #f3f8fd; padding: 4px 10px; border-radius: 5px; }
.sp-by { display: inline-flex; align-items: center; font-size: 12px; color: var(--ms-text-2); background: #f0f0f2; padding: 4px 9px; border-radius: 5px; }
.sp-date { font-size: 12.5px; color: var(--ms-text-2); }

/* Dashboard mocks */
.dashpanel { width: 880px; position: relative; }
.dashpanel .dp-pad { padding: 24px 26px; }
.dp-title { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.dp-title h4 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--dt-ink); }
.dp-count { background: var(--ms-blue); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 999px; }
.view-layer { transition: opacity .4s; }

/* card grid view */
.dp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dcard { border: 1px solid #e6e6ea; border-radius: 10px; padding: 16px; background: #fff; }
.dcard .dc-h { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.dcard .dc-h .nm { color: var(--ms-link); font-weight: 600; font-size: 14px; }
.dcard .dc-h .su { font-size: 11.5px; color: var(--ms-text-2); }
.dcard .dc-open { margin-left: auto; }
.dc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 8px; padding: 13px 0; border-top: 1px solid #f0f0f2; margin-bottom: 14px; }
.dc-meta .k { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: #9a9aa0; text-transform: uppercase; }
.dc-meta .v { font-size: 12.5px; color: var(--ms-text); margin-top: 2px; }
.dc-acts { display: flex; gap: 8px; }
.dc-acts .ms-btn { flex: 1; justify-content: center; }
.pill-open { background: var(--st-amber-bg); color: var(--st-amber-fg); }

/* list view */
.dp-list { display: flex; flex-direction: column; }
.dlist-row { display: grid; grid-template-columns: 2.2fr .8fr 1fr .8fr 1.5fr; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid #f0f0f2; }
.dlist-row .nm { color: var(--ms-link); font-weight: 600; font-size: 14px; }
.dlist-row .su { font-size: 11.5px; color: var(--ms-text-2); }
.dlist-row .lcol .k { font-size: 9px; font-weight: 700; letter-spacing: .08em; color: #9a9aa0; text-transform: uppercase; }
.dlist-row .lcol .v { font-size: 12.5px; color: var(--ms-text); }
.dlist-acts { display: flex; gap: 8px; justify-content: flex-end; }
@media (max-width: 1100px) { .scene-caption { width: min(420px, 44vw); } }

/* ============================================================
   HERO 3D SCENE (namespaced .h3-*)
   1920×1080 fixed scene, scaled-to-fit via JS — same layout
   regardless of viewport so tiles/card/buttons stay clean.
   ============================================================ */
.hero-stage { position: relative; width: 100vw; margin: 14px 0 0 calc(50% - 50vw); overflow: hidden; padding: 0; perspective: none; height: auto; }
.h3-scene { position: absolute; top: 0; left: 0; width: 1920px; height: 1080px; transform-origin: top left; will-change: transform; }
.h3-world { position: absolute; inset: 0; perspective: 2000px; perspective-origin: 56% 44%; }
.h3-layer { position: absolute; transform-style: preserve-3d; }

.h3-floor { position: absolute; left: 760px; top: 880px; width: 760px; height: 150px; background: radial-gradient(ellipse at center, rgba(38,31,63,0.34), rgba(38,31,63,0) 70%); filter: blur(8px); transform: rotateX(62deg) scaleX(1.05); }

.h3-ghost { position: absolute; left: 705px; top: 226px; width: 612px; height: 632px; border-radius: 20px; background: #fff; border: 1px solid var(--dt-line); }
.h3-ghost.g1 { transform: rotateX(7deg) rotateY(-19deg) rotateZ(1deg) translate3d(20px, 28px, -120px); opacity: 0.7; filter: blur(0.5px); box-shadow: var(--shadow-3); }
.h3-ghost.g2 { transform: rotateX(7deg) rotateY(-19deg) rotateZ(1deg) translate3d(42px, 58px, -240px); opacity: 0.45; filter: blur(2.5px); box-shadow: var(--shadow-2); }

.h3-card-wrap { position: absolute; left: 705px; top: 226px; transform-style: preserve-3d; transform: rotateX(7deg) rotateY(-19deg) rotateZ(1deg); filter: drop-shadow(0 50px 70px rgba(38,31,63,0.28)); }
.h3-card-wrap::after { content: ""; position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(135deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 30%); pointer-events: none; transform: translateZ(1px); }
.h3-card { width: 612px; background: #fff; border-radius: 20px; border: 1px solid var(--dt-line); padding: 18px 18px 16px; color: var(--fg-1); transform-style: preserve-3d; box-shadow: 0 5px 0 #efedf4, 0 10px 0 #e6e3ef, 0 15px 0 #ddd9e9, 0 20px 0 #d4cfe3, 0 26px 0 #cbc5dd, 0 30px 0 #c3bcd7; }

.h3-hdr { display: flex; align-items: center; gap: 12px; padding: 6px 8px 16px; }
.h3-hdr .h3-avatar { width: 34px; height: 34px; border-radius: 9px; background: var(--dt-purple-50); border: 1px solid var(--dt-purple-100); display: grid; place-items: center; flex: none; }
.h3-hdr .h3-avatar img { width: 22px; height: 22px; display: block; }
.h3-hdr .h3-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--dt-ink); letter-spacing: .01em; }
.h3-hdr .h3-meta { font-size: 13px; color: var(--fg-2); margin-left: auto; white-space: nowrap; }
.h3-hdr .h3-meta b { color: var(--fg-1); font-weight: 500; }

.h3-panel { background: var(--dt-bg-alt); border: 1px solid var(--dt-line); border-radius: 14px; padding: 22px 24px 20px; transform-style: preserve-3d; }
.h3-panel-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 6px; }
.h3-warn { width: 30px; height: 30px; flex: none; margin-top: 2px; display: grid; place-items: center; }
.h3-panel-head h3 { font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--dt-ink); letter-spacing: .005em; line-height: 1.15; margin-bottom: 8px; }
.h3-panel-head p { font-size: 14.5px; line-height: 1.5; color: var(--fg-2); max-width: 430px; }

.h3-rule { height: 1px; background: var(--dt-line); margin: 18px 2px; }

.h3-doc { background: #fff; border: 1px solid var(--dt-line); border-radius: 12px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; transform-style: preserve-3d; box-shadow: 0 2px 0 #ece9f3, 0 4px 0 #e4e0ee, 0 6px 0 #dcd7e9, 0 8px 0 #d4cee4, 0 10px 0 #cdc5df, 0 14px 20px rgba(38,31,63,0.20); }
.h3-doc.r1 { transform: translateZ(26px); }
.h3-doc.r2 { transform: translateZ(34px); }
.h3-doc .h3-name { font-size: 16px; font-weight: 600; color: var(--dt-ink); margin-bottom: 4px; }
.h3-doc .h3-date { font-size: 13px; color: var(--fg-3); }

.h3-status { display: inline-flex; align-items: center; gap: 8px; color: var(--status-success); font-weight: 600; font-size: 15px; white-space: nowrap; }
.h3-chk { width: 22px; height: 22px; border-radius: 6px; background: var(--status-success); display: grid; place-items: center; flex: none; }

.h3-btn { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .04em; border-radius: 8px; padding: 11px 16px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dt-line); background: #fff; color: var(--dt-ink); white-space: nowrap; cursor: default; transform: translateZ(10px); box-shadow: 0 2px 0 #d9d4e6, 0 4px 0 #cfc9df, 0 6px 0 #c5bed8, 0 9px 12px rgba(38,31,63,0.18); }
.h3-btn.primary { background: var(--dt-purple); color: #fff; border-color: var(--dt-purple); box-shadow: 0 2px 0 #4a3c77, 0 4px 0 #41346a, 0 6px 0 #382c5c, 0 10px 16px rgba(87,70,139,0.45); }
.h3-btn .h3-ic { display: grid; place-items: center; }

.h3-doc.active { flex-direction: column; align-items: stretch; gap: 14px; transform: translateZ(46px); }
.h3-doc.active .h3-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; transform-style: preserve-3d; }
.h3-doc.active .h3-actions { display: flex; gap: 12px; transform-style: preserve-3d; }

.h3-foot { text-align: center; font-size: 13px; color: var(--fg-3); padding: 14px 0 4px; letter-spacing: .01em; }
.h3-foot b { color: var(--fg-2); font-weight: 500; }

/* tiles */
.h3-tile { position: absolute; width: 132px; height: 162px; border-radius: 18px; background: linear-gradient(160deg, #fff 0%, #f3f1f9 100%); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 30px 55px rgba(38,31,63,0.22), inset 0 1px 0 rgba(255,255,255,0.9); padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.h3-tile .h3-corner { position: absolute; top: 0; right: 0; width: 38px; height: 38px; border-bottom-left-radius: 14px; background: linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0)); }
.h3-tile .h3-lines { display: flex; flex-direction: column; gap: 7px; margin-top: 8px; }
.h3-tile .h3-lines i { display: block; height: 5px; border-radius: 3px; background: var(--dt-grey-light); }
.h3-tile .h3-lines i:nth-child(1){ width: 76%; }
.h3-tile .h3-lines i:nth-child(2){ width: 90%; }
.h3-tile .h3-lines i:nth-child(3){ width: 60%; }
.h3-tile .h3-badge { align-self: flex-start; font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .08em; color: #fff; padding: 5px 10px; border-radius: 7px; }
.h3-tile .h3-ext { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; color: var(--dt-grey-mid); }
.h3-tile.pdf  .h3-badge { background: var(--status-danger); box-shadow: 0 6px 14px rgba(209,66,66,.4); }
.h3-tile.png  .h3-badge { background: var(--dt-blue-400); box-shadow: 0 6px 14px rgba(74,143,209,.4); }
.h3-tile.pptx .h3-badge { background: var(--status-warning); box-shadow: 0 6px 14px rgba(217,154,43,.4); }
.h3-tile.xlsx .h3-badge { background: #217346; box-shadow: 0 6px 14px rgba(33,115,70,.4); }
.h3-tile.img  .h3-badge { background: var(--dt-purple-400); box-shadow: 0 6px 14px rgba(112,89,163,.4); }
.h3-tile.sp   .h3-badge { background: #038387; box-shadow: 0 6px 14px rgba(3,131,135,.4); }
.h3-tile .h3-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.h3-tile .h3-sheet span { height: 12px; border-radius: 2px; background: #e4e8e4; }
.h3-tile .h3-sheet span.h { background: #217346; }
.h3-tile .h3-photo { margin-top: 8px; height: 66px; border-radius: 9px; overflow: hidden; position: relative; background: linear-gradient(165deg, #c4e2ff 0%, #eaf4ff 60%); }
.h3-tile .h3-photo .h3-sun { position: absolute; top: 9px; right: 12px; width: 15px; height: 15px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px rgba(255,210,122,.8); }
.h3-tile .h3-photo .h3-mtn { position: absolute; bottom: 0; left: 0; right: 0; height: 38px; background: linear-gradient(135deg, #9ec291, #6f9e8a); clip-path: polygon(0 100%, 26% 42%, 48% 72%, 70% 26%, 100% 100%); }
.h3-tile .h3-page { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.h3-tile .h3-page .h3-bar { height: 16px; border-radius: 3px; background: #038387; }
.h3-tile .h3-page .h3-cols { display: flex; gap: 6px; }
.h3-tile .h3-page .h3-cols b { flex: 1; height: 28px; border-radius: 3px; background: #d9eef0; display: block; }

.h3-chip-el { position: absolute; width: 116px; height: 116px; border-radius: 28px; background: linear-gradient(160deg, #fff, #efeef5); box-shadow: 0 28px 50px rgba(38,31,63,0.26), inset 0 1px 0 rgba(255,255,255,0.9); display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.9); }
.h3-chip-el img { width: 64px; height: 64px; }

.h3-coin { position: absolute; width: 92px; height: 92px; border-radius: 50%; background: linear-gradient(160deg, #34b07e, #2e9c6e); display: grid; place-items: center; box-shadow: 0 24px 44px rgba(46,156,110,0.45), inset 0 2px 0 rgba(255,255,255,0.35); }

@keyframes h3bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.h3-float { animation: h3bob 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .h3-float { animation: none; } }

/* ============================================================
   Adaptive-card row resolve interaction
   ============================================================ */
.h3-btn { cursor: pointer; transition: transform .12s var(--ease-out), box-shadow .15s, background .15s; }
.h3-btn:hover { transform: translateZ(14px) translateY(-1px); }
.h3-btn.primary:hover { background: var(--dt-purple-600); }
.h3-btn:not(.primary):hover { background: var(--dt-bg-tint); }
.h3-btn:active { transform: translateZ(6px) translateY(1px); box-shadow: 0 2px 0 #cfc9df, 0 4px 6px rgba(38,31,63,0.16); }

/* the active row, while resolving, animates: lift forward, spin, settle */
.h3-doc.h3-resolving {
  animation: h3resolve 1.15s cubic-bezier(.55, .05, .25, 1) forwards;
  z-index: 5;
  pointer-events: none;
}
@keyframes h3resolve {
  0%   { transform: translateZ(46px) rotateY(0deg);   box-shadow: 0 2px 0 #ece9f3, 0 4px 0 #e4e0ee, 0 6px 0 #dcd7e9, 0 8px 0 #d4cee4, 0 10px 0 #cdc5df, 0 14px 20px rgba(38,31,63,0.20); }
  35%  { transform: translateZ(180px) rotateY(140deg); box-shadow: 0 30px 50px rgba(38,31,63,0.30); }
  60%  { transform: translateZ(180px) rotateY(300deg); box-shadow: 0 30px 50px rgba(38,31,63,0.30); }
  100% { transform: translateZ(28px) rotateY(360deg); box-shadow: 0 2px 0 #ece9f3, 0 4px 0 #e4e0ee, 0 6px 0 #dcd7e9, 0 8px 0 #d4cee4, 0 10px 0 #cdc5df, 0 14px 20px rgba(38,31,63,0.16); }
}
@media (prefers-reduced-motion: reduce) {
  .h3-doc.h3-resolving { animation: none; }
}

/* archived status variant — muted purple instead of green */
.h3-status.archived { color: var(--dt-purple); }
.h3-chk.archived { background: var(--dt-purple); }
