:root {
  --ink: #fff8ef;
  --muted: #b8ada1;
  --line: rgba(255, 255, 255, .12);
  --surface: #15110d;
  --canvas: #080705;
  --soft: #211912;
  --accent: #ff9d00;
  --accent-dark: #ff7a00;
  --accent-soft: rgba(255, 157, 0, .14);
  --sidebar: #050505;
  --sidebar-soft: #16100a;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(255, 122, 0, .16), transparent 34vw),
    radial-gradient(circle at bottom left, rgba(255, 157, 0, .1), transparent 28vw),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button { font: inherit; }

.auth-locked { overflow: hidden; }
.auth-locked .app-shell,
.auth-locked .modal-backdrop { display: none; }

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(5,5,5,.98) 0%, rgba(5,5,5,.84) 46%, rgba(255,122,0,.16) 100%),
    linear-gradient(0deg, rgba(5,5,5,.58), rgba(5,5,5,.1)),
    url("/assets/dmi-hero.jpg") center / cover;
}

.login-screen[hidden],
.auth-ready .login-screen { display: none; }

.welcome-celebration {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 157, 0, .34), transparent 26vw),
    radial-gradient(circle at 80% 16%, rgba(255, 122, 0, .28), transparent 22vw),
    linear-gradient(135deg, rgba(5,5,5,.98), rgba(18,12,7,.96) 58%, rgba(255,122,0,.28));
  animation: welcomeFadeIn .38s ease both;
}

.welcome-celebration[hidden] { display: none; }
.welcome-celebration.is-leaving { animation: welcomeFadeOut .7s ease forwards; }
.is-celebrating { overflow: hidden; }

.welcome-card {
  position: relative;
  z-index: 2;
  width: min(620px, 100%);
  padding: 42px 34px;
  border: 1px solid rgba(255, 157, 0, .38);
  border-radius: 28px;
  background: rgba(8, 7, 5, .76);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .48);
  text-align: center;
  backdrop-filter: blur(18px);
  animation: welcomeCardIn .7s cubic-bezier(.2, .9, .2, 1.08) both;
}

.welcome-logo {
  width: min(240px, 72%);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.5));
}

.welcome-kicker {
  display: inline-flex;
  margin-bottom: 13px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #0b0907;
  background: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.welcome-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 6vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
}

.welcome-card p {
  max-width: 500px;
  margin: 18px auto 0;
  color: #f4e7d8;
  font-size: clamp(17px, 2.4vw, 23px);
  line-height: 1.36;
  font-weight: 750;
}

.confetti-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.confetti {
  position: absolute;
  top: -24px;
  left: var(--left);
  width: 10px;
  height: 18px;
  border-radius: 3px;
  background: var(--accent);
  opacity: .95;
  animation: confettiFall var(--duration) linear var(--delay) both;
}

.confetti-1 { background: #fff8ef; width: 8px; height: 14px; }
.confetti-2 { background: #ff7a00; width: 12px; height: 12px; border-radius: 50%; }
.confetti-3 { background: #ffd17a; width: 7px; height: 20px; }

@keyframes welcomeFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes welcomeFadeOut {
  to { opacity: 0; visibility: hidden; }
}

@keyframes welcomeCardIn {
  from { opacity: 0; transform: translateY(22px) scale(.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes confettiFall {
  0% { transform: translate3d(0, -30px, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate3d(var(--drift), 108vh, 0) rotate(var(--rotate)); opacity: 0; }
}

.login-card {
  width: min(480px, 100%);
  padding: 36px;
  border: 1px solid rgba(255, 157, 0, .28);
  border-radius: 24px;
  background: rgba(8, 7, 5, .78);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .44);
  backdrop-filter: blur(16px);
}

.login-brand {
  padding: 0 0 30px;
}

.login-card h1 {
  margin: 10px 0 10px;
  color: #fff;
  font-size: clamp(38px, 7vw, 62px);
  text-transform: uppercase;
}

.login-card p {
  margin: 0;
  color: #e8d9cb;
  font-size: 16px;
}

.login-form {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #f8efe5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 11px;
  color: var(--ink);
  background: rgba(255,255,255,.08);
  font: inherit;
  outline: none;
}

.login-form input:focus {
  border-color: rgba(255, 157, 0, .62);
  box-shadow: 0 0 0 4px rgba(255, 157, 0, .13);
}

.login-error {
  color: #ffbd7a;
  font-size: 13px;
  font-weight: 700;
}

.login-submit {
  min-height: 52px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  color: #0b0907;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 38px rgba(255, 122, 0, .24);
}

.login-submit:hover { filter: brightness(1.05); }
.login-submit:focus-visible { outline: 3px solid rgba(255, 157, 0, .4); outline-offset: 3px; }

.app-shell { min-height: 100vh; display: flex; }

.sidebar {
  width: 292px;
  flex: 0 0 292px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 18px 22px;
  background: linear-gradient(180deg, #050505 0%, #0f0b08 100%);
  color: #fff;
}

.brand-lockup { display: flex; align-items: center; gap: 11px; padding: 0 14px 42px; }
.brand-lockup.logo-lockup {
  align-items: flex-start;
  gap: 0;
  padding-bottom: 34px;
}

.brand-logo {
  width: 174px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.login-brand.logo-lockup {
  padding-bottom: 30px;
}

.login-brand .brand-logo {
  width: 190px;
}

.brand-mark {
  width: 48px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #fff 0 58%, var(--accent) 58% 100%);
  border-radius: 10px;
  color: #0a0908;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.08em;
}

.brand-name { font-size: 17px; font-weight: 800; letter-spacing: 0.08em; }
.brand-name span { color: var(--accent); font-weight: 700; }

.sidebar-heading { display: flex; justify-content: space-between; align-items: center; padding: 0 14px 13px; }
.eyebrow { color: #a59a90; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.sidebar-count { color: #7c7066; font-size: 12px; }

.section-nav { display: grid; gap: 4px; }

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #d8cfc4;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease;
}

.nav-item:hover { color: #fff; background: var(--sidebar-soft); }
.nav-item:focus-visible { outline: 3px solid rgba(255, 157, 0, .42); outline-offset: 2px; }
.nav-item.is-active { color: #fff; border-color: rgba(255, 157, 0, .4); background: rgba(255, 157, 0, .13); }
.nav-item.is-active .folder-icon { color: var(--accent); }
.nav-item > span:last-child { font-size: 14px; font-weight: 650; }

.folder-icon { width: 20px; height: 20px; display: inline-flex; flex: 0 0 20px; color: #92867b; }
.folder-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.sidebar-footer { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 20px 14px 0; color: #8a7f75; font-size: 12px; }
.status-dot, .badge-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 157, 0, .16); }

.main-content { min-width: 0; flex: 1; padding: 0 5.5vw; }

.topbar { min-height: 79px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: #9c9186; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.breadcrumb strong { color: var(--ink); font-size: 11px; }
.breadcrumb-separator { color: #645950; }
.access-badge { display: inline-flex; align-items: center; gap: 8px; color: #b7aba0; font-size: 12px; font-weight: 650; }
.logout-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 157, 0, .28);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255,255,255,.04);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.logout-button:hover { border-color: rgba(255, 157, 0, .48); background: rgba(255, 157, 0, .1); }
.logout-button:focus-visible { outline: 3px solid rgba(255, 157, 0, .4); outline-offset: 2px; }

.workspace-heading { max-width: 1160px; display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 54px 0 31px; }
.accent-eyebrow { color: var(--accent); }
h1 { margin: 8px 0 7px; font-size: clamp(32px, 4vw, 52px); line-height: 1.04; letter-spacing: -0.055em; }
.workspace-heading p { max-width: 620px; margin: 0; color: var(--muted); font-size: 17px; }

.heading-note { min-width: 250px; max-width: 285px; display: flex; align-items: flex-start; gap: 11px; padding: 14px 15px; border: 1px solid rgba(255, 157, 0, .34); border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.heading-note strong, .heading-note small { display: block; }
.heading-note strong { font-size: 13px; }
.heading-note small { margin-top: 2px; color: #e0c2a0; font-size: 12px; line-height: 1.35; }
.note-icon { width: 24px; height: 24px; display: inline-flex; flex: 0 0 24px; }
.note-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.content-panel { max-width: 1160px; padding-bottom: 40px; }
.content-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 0 0 18px; }
.section-kicker { color: #9299a1; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker strong { color: var(--ink); }
.result-count { color: #9aa0a8; font-size: 13px; }

.category-tabs { display: flex; gap: 8px; margin: 0 0 22px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); scrollbar-width: thin; }
.category-tab { flex: 0 0 auto; padding: 10px 15px; border: 0; border-radius: 10px; color: #b1a69b; background: transparent; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.category-tab:hover { color: var(--ink); }
.category-tab.is-active { color: #0b0907; background: var(--accent); box-shadow: 0 10px 24px rgba(255, 122, 0, .18); }
.category-tab:focus-visible, .card-action:focus-visible, .modal-close:focus-visible { outline: 3px solid rgba(255, 157, 0, .4); outline-offset: 2px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.resource-card { min-height: 226px; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)); box-shadow: 0 18px 44px rgba(0, 0, 0, .2); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.resource-card:hover { border-color: rgba(255, 157, 0, .42); box-shadow: 0 22px 50px rgba(0, 0, 0, .32); transform: translateY(-2px); }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-label { width: fit-content; padding: 5px 8px; border-radius: 7px; color: #ffb84a; background: var(--accent-soft); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.card-meta { color: #a99d92; font-size: 12px; }
.resource-card h2 { margin: 19px 0 9px; font-size: 20px; line-height: 1.18; letter-spacing: -.03em; }
.resource-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card-action { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin-top: auto; padding: 17px 0 0; border: 0; color: var(--accent); background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; }
.card-action span { transition: transform .18s ease; }
.card-action:hover span { transform: translateX(3px); }

.document-card { min-height: 430px; overflow: hidden; padding: 0; }
.document-cover { position: relative; height: 190px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #0f0c09; }
.document-cover img { width: 100%; height: 100%; padding: 12px; object-fit: contain; }
.document-format { position: absolute; top: 12px; right: 12px; padding: 5px 8px; border-radius: 7px; color: #0b0907; background: var(--accent); font-size: 10px; font-weight: 850; letter-spacing: .08em; }
.document-content { display: flex; flex: 1; flex-direction: column; padding: 19px 22px 20px; }
.document-content h2 { margin-top: 17px; }
.document-actions { display: flex; align-items: center; gap: 16px; margin-top: auto; }
.document-actions .card-action { margin-top: 0; }
.download-action { padding-top: 17px; color: #b3a89d; font-size: 13px; font-weight: 750; text-decoration: none; }
.download-action:hover { color: var(--ink); }
.download-action:focus-visible { outline: 3px solid rgba(255, 157, 0, .4); outline-offset: 2px; border-radius: 4px; }

.media-card { min-height: 0; overflow: hidden; padding: 0; }
.media-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0f0c09; }
.media-preview { display: block; width: 100%; height: 100%; object-fit: cover; background: #0f0c09; }
.media-badge { position: absolute; top: 12px; left: 12px; padding: 5px 8px; border-radius: 7px; color: #fff; background: rgba(17, 21, 27, .78); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.media-play-badge {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 50%;
  color: #0b0907;
  background: rgba(255, 157, 0, .92);
  box-shadow: 0 14px 32px rgba(0, 0, 0, .34);
  font-size: 22px;
  transform: translate(-50%, -50%);
}
.media-content { display: flex; flex: 1; flex-direction: column; padding: 18px 20px 20px; }
.media-content h2 { margin: 16px 0 8px; font-size: 18px; }
.media-content p { font-size: 13px; }
.media-action { margin-top: auto; padding-top: 15px; color: var(--accent); text-decoration: none; }
.media-action:hover { text-decoration: underline; }

.training-recording-card .card-action { text-decoration: none; }
.training-visual { display: grid; place-items: center; min-height: 210px; background: radial-gradient(circle at 54% 42%, rgba(255,157,0,.2), transparent 32%), linear-gradient(135deg, #050505 0%, #21160d 58%, #ff7a00 160%); color: #fff; }
.training-mascot { position: relative; width: min(150px, 56%); transform: translateY(-6px); filter: drop-shadow(0 22px 28px rgba(0,0,0,.35)); }
.training-mascot svg { display: block; width: 100%; height: auto; overflow: visible; }
.mascot-glow { fill: rgba(255,157,0,.16); }
.mascot-body { fill: #ff9d00; }
.mascot-neck, .mascot-face { fill: #f3bd93; }
.mascot-hair { fill: #16110d; }
.mascot-ear-left, .mascot-ear-right { fill: #edae80; }
.mascot-headset, .mascot-mic { fill: none; stroke: #f6efe6; stroke-width: 8; stroke-linecap: round; }
.mascot-phone { fill: #11151b; stroke: #ffb84a; stroke-width: 2; }
.mascot-mic-dot { fill: #ffb84a; stroke: #11151b; stroke-width: 2; }
.mascot-eye { fill: none; stroke: #11151b; stroke-width: 7; stroke-linecap: round; }
.mascot-smile, .mascot-shirt-line { fill: none; stroke: #11151b; stroke-width: 4; stroke-linecap: round; }
.training-play { position: absolute; right: 1px; bottom: 8px; width: 43px; height: 43px; display: grid; place-items: center; padding-left: 3px; border: 2px solid rgba(255,255,255,.78); border-radius: 50%; color: #0b0907; background: var(--accent); box-shadow: 0 16px 42px rgba(0,0,0,.32); font-size: 18px; }
.training-visual-copy { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.training-visual-copy span { color: rgba(255,255,255,.72); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.training-visual-copy strong { color: #fff; font-size: 19px; line-height: 1; }

.video-reference-card { margin-bottom: 22px; padding: 18px 21px 21px; border: 1px solid rgba(255, 157, 0, .24); border-radius: var(--radius); background: linear-gradient(100deg, rgba(255,157,0,.12) 0%, rgba(255,255,255,.04) 70%); box-shadow: 0 18px 44px rgba(0, 0, 0, .2); }
.reference-header { display: flex; align-items: center; gap: 18px; }
.reference-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 14px; color: #0b0907; background: var(--accent); font-size: 25px; font-weight: 850; }
.reference-copy { min-width: 0; flex: 1; }
.video-reference-card h2 { margin: 9px 0 5px; font-size: 19px; line-height: 1.2; letter-spacing: -.03em; }
.reference-embed { display: flex; justify-content: center; min-height: 105px; margin: 18px 0 16px; padding: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.reference-embed > * { max-width: 100%; }
.reference-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.video-reference-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.reference-action { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 10px 13px; border: 1px solid rgba(255, 157, 0, .36); border-radius: 9px; color: var(--accent); background: rgba(255,255,255,.04); font-size: 13px; font-weight: 800; text-decoration: none; }
.reference-action span { transition: transform .18s ease; }
.reference-action:hover span { transform: translateX(3px); }
.reference-action:focus-visible { outline: 3px solid rgba(255, 157, 0, .4); outline-offset: 2px; }

.simple-section .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.simple-section .resource-card { min-height: 210px; }
.section-intro { margin: 0 0 21px; padding: 18px 20px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: rgba(255, 157, 0, .08); color: #dfd2c6; font-size: 14px; }

.empty-state { display: grid; place-items: center; min-height: 220px; border: 1px dashed rgba(255,255,255,.18); border-radius: var(--radius); color: var(--muted); background: rgba(255,255,255,.04); text-align: center; }
.empty-state strong { display: block; color: var(--ink); }

.site-footer { max-width: 1160px; display: flex; justify-content: space-between; gap: 20px; padding: 21px 0 32px; border-top: 1px solid var(--line); color: #969da5; font-size: 12px; }
.site-footer span:first-child { color: var(--accent); font-weight: 850; letter-spacing: .08em; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(17, 21, 27, .58); backdrop-filter: blur(4px); }
.modal-backdrop[hidden] { display: none; }
.detail-modal { position: relative; width: min(560px, 100%); padding: 31px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 24px 80px rgba(0, 0, 0, .42); }
.detail-modal h2 { margin: 15px 0 12px; font-size: 28px; line-height: 1.12; letter-spacing: -.04em; }
.detail-modal > p:not(.modal-footer-text) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.modal-close { position: absolute; top: 13px; right: 15px; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #0b0907; background: var(--accent); font-size: 25px; line-height: 1; cursor: pointer; }
.modal-rule { height: 1px; margin: 25px 0 14px; background: var(--line); }
.modal-footer-text { color: #c9a777; font-size: 12px; }

.main-content.is-home .workspace-heading {
  position: relative;
  max-width: 1160px;
  min-height: 430px;
  align-items: end;
  margin: 34px 0 31px;
  padding: 68px 46px 46px;
  overflow: hidden;
  border: 1px solid rgba(255, 157, 0, .24);
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.76) 45%, rgba(255,122,0,.2) 100%),
    linear-gradient(0deg, rgba(5,5,5,.72), rgba(5,5,5,.12)),
    url("/assets/dmi-hero.jpg") center / cover;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

.main-content.is-home .workspace-heading::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), #ff5a00, transparent);
}

.main-content.is-home .workspace-heading > * {
  position: relative;
  z-index: 1;
}

.main-content.is-home h1 {
  max-width: 700px;
  color: #fff;
  font-size: clamp(44px, 6vw, 82px);
  text-transform: uppercase;
}

.main-content.is-home .workspace-heading p {
  max-width: 690px;
  color: #f1e8df;
  font-size: 19px;
}

.main-content.is-home .heading-note {
  border-color: rgba(255, 157, 0, .42);
  background: rgba(0, 0, 0, .52);
  backdrop-filter: blur(10px);
}

.home-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 20px;
  margin-bottom: 20px;
}

.home-story-copy,
.stat-card,
.pillar-card,
.shortcut-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.home-story-copy {
  padding: 30px;
}

.home-story-copy h2 {
  max-width: 760px;
  margin: 12px 0 14px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.home-story-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  min-height: 150px;
  padding: 20px;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: -.055em;
}

.stat-card span {
  display: block;
  margin-top: 12px;
  color: #efe4d9;
  font-size: 14px;
  font-weight: 750;
}

.home-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.pillar-card {
  padding: 23px;
}

.pillar-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -.03em;
}

.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.shortcut-card {
  min-height: 122px;
  padding: 22px;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.shortcut-card:hover {
  border-color: rgba(255, 157, 0, .42);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .32);
}

.shortcut-card span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shortcut-card strong {
  display: block;
  margin-top: 14px;
  font-size: 20px;
  line-height: 1.16;
}

@media (max-width: 980px) {
  .sidebar { width: 244px; flex-basis: 244px; }
  .main-content { padding: 0 4vw; }
  .workspace-heading { align-items: start; flex-direction: column; }
  .heading-note { max-width: none; }
  .cards-grid, .simple-section .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-content.is-home .workspace-heading { align-items: start; min-height: 380px; padding: 48px 32px 34px; }
  .home-story { grid-template-columns: 1fr; }
  .home-pillars, .home-shortcuts { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: auto; padding: 18px 14px 12px; }
  .brand-lockup { padding: 0 4px 20px; }
  .brand-lockup.logo-lockup { padding-bottom: 18px; }
  .brand-logo { width: 142px; }
  .login-brand .brand-logo { width: 176px; }
  .sidebar-heading { padding: 0 4px 9px; }
  .section-nav { display: flex; gap: 6px; overflow-x: auto; padding: 0 0 3px; scrollbar-width: thin; }
  .nav-item { width: auto; flex: 0 0 auto; padding: 10px 11px; }
  .nav-item > span:last-child { font-size: 13px; white-space: nowrap; }
  .folder-icon { width: 17px; height: 17px; flex-basis: 17px; }
  .folder-icon svg { width: 17px; height: 17px; }
  .sidebar-footer { display: none; }
  .main-content { padding: 0 18px; }
  .topbar { min-height: 66px; }
  .access-badge { display: none; }
  .workspace-heading { gap: 22px; padding: 36px 0 27px; }
  h1 { font-size: 38px; }
  .workspace-heading p { font-size: 16px; }
  .heading-note { width: 100%; }
  .main-content.is-home .workspace-heading {
    min-height: 430px;
    margin: 22px 0 26px;
    padding: 34px 22px 26px;
    border-radius: 20px;
    background:
      linear-gradient(180deg, rgba(5,5,5,.92) 0%, rgba(5,5,5,.76) 70%, rgba(255,122,0,.22) 100%),
      url("/assets/dmi-hero.jpg") center / cover;
  }
  .main-content.is-home h1 { font-size: 42px; }
  .main-content.is-home .workspace-heading p { font-size: 16px; }
  .home-story-copy, .pillar-card, .shortcut-card { padding: 21px; }
  .home-stats { grid-template-columns: 1fr; }
  .stat-card { min-height: 118px; }
  .content-toolbar { align-items: start; flex-direction: column; gap: 5px; }
  .reference-header { align-items: flex-start; gap: 14px; }
  .reference-copy { flex-basis: calc(100% - 66px); }
  .reference-footer { align-items: flex-start; flex-direction: column; gap: 13px; }
  .reference-action { margin-left: 0; }
  .cards-grid, .simple-section .cards-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 198px; }
  .media-content { padding: 16px 17px 18px; }
  .site-footer { align-items: start; flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .confetti { display: none; }
}
