/* ============================================================
   THE DC MODEL page — blue long-form, built on the v2 system
   ============================================================ */

body.dcm { background: var(--blue); }
body.dcm .site-footer { background: var(--n900); }   /* footer stays dark below the blue */

/* ---- HERO ---- */
.dcm-hero { position: relative; z-index: 2; padding: clamp(132px, 17vh, 210px) 0 clamp(40px, 6vh, 72px); }
.dcm-hero-title {
  display: flex; flex-direction: column;
  font-family: var(--display); font-weight: 400; font-synthesis: none;
  font-size: clamp(40px, 6.2vw, 98px); line-height: 1.0; letter-spacing: -0.01em;
  color: #fff; margin: 0; max-width: none;
}
.dcm-hero-title .word-mask { white-space: nowrap; }   /* keep each line on ONE line */
.dcm-hero-sub {
  font-family: var(--mono); font-size: clamp(14px, 1.1vw, 18px); line-height: 1.7;
  letter-spacing: 0.01em; color: var(--b300); margin: clamp(28px, 4vh, 46px) 0 0; max-width: 78ch;
}

/* ---- BODY: sticky TOC + content ---- */
.dcm-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: start;
  padding-top: clamp(44px, 6vh, 80px);
  padding-bottom: clamp(80px, 12vh, 170px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.dcm-toc { position: sticky; top: 100px; align-self: start; }
.dcm-toc-label {
  display: block; font-family: var(--mono); text-transform: uppercase;
  font-size: var(--fs-micro); letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.45); margin-bottom: 22px;
}
.dcm-toc-nav { display: flex; flex-direction: column; gap: 13px; }
.dcm-toc-link {
  font-family: var(--mono); text-transform: uppercase; font-size: var(--fs-sm); letter-spacing: 0.04em;
  color: var(--b300); opacity: 0.5; text-decoration: none; transition: opacity 0.2s ease, color 0.2s ease;
}
.dcm-toc-link:hover { opacity: 0.85; }
.dcm-toc-link.is-active { color: #fff; opacity: 1; }

/* ---- content sections ---- */
.dcm-section { scroll-margin-top: 96px; padding: clamp(40px, 7vh, 88px) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.dcm-section:first-child { padding-top: 0; }
.dcm-section:last-child { border-bottom: 0; }
.dcm-num {
  display: block; font-family: var(--mono); text-transform: uppercase;
  font-size: var(--fs-label); letter-spacing: 0.14em; color: var(--b300); opacity: 0.8; margin-bottom: 22px;
}
.dcm-h2 {
  font-family: var(--display); font-weight: 400; font-synthesis: none;
  font-size: clamp(30px, 3.5vw, 54px); line-height: 1.03; letter-spacing: -0.01em;
  color: #fff; margin: 0 0 clamp(28px, 4vh, 44px); max-width: 32ch;
  text-wrap: balance;   /* split into even lines, no lonely last word */
}
.dcm-prose { max-width: 91ch; }   /* wide big-text measure, middle ground (37signals-style) */
.dcm-prose p { font-family: var(--body); font-weight: 400; font-size: clamp(16px, 1.6vw, 24px); line-height: 1.5; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.92); margin: 0 0 0.6em; }
.dcm-prose p:last-child { margin-bottom: 0; }
.dcm-prose b { color: #fff; font-weight: 500; }
.dcm-prose i { color: rgba(255, 255, 255, 0.5); font-style: italic; }
.dcm-lead { color: #fff !important; font-size: clamp(17px, 1.3vw, 21px) !important; line-height: 1.5 !important; }

/* manifesto list */
.dcm-manifesto { list-style: none; counter-reset: m; margin: 0; padding: 0; max-width: 70ch; }
.dcm-manifesto li {
  position: relative; counter-increment: m;
  padding: 20px 0 20px 54px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--body); font-size: clamp(15px, 1.05vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, 0.82);
}
.dcm-manifesto li::before {
  content: counter(m, decimal-leading-zero); position: absolute; left: 0; top: 22px;
  font-family: var(--mono); font-size: var(--fs-label); color: var(--b300);
}
.dcm-manifesto b { color: #fff; font-weight: 500; }

/* team */
.dcm-team {
  list-style: none; margin: clamp(28px, 4vh, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.14);
}
.dcm-member { background: var(--blue); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.dcm-member-name { font-family: var(--display); font-size: var(--fs-md); color: #fff; }
.dcm-member-role { font-family: var(--mono); text-transform: uppercase; font-size: var(--fs-micro); letter-spacing: 0.1em; color: var(--b300); }

/* ---- mobile ---- */
@media (max-width: 860px) {
  .dcm-layout { grid-template-columns: 1fr; gap: 0; }
  .dcm-toc { display: none; }
}
/* small phones: let the hero wrap normally so a long line can't overflow */
@media (max-width: 520px) {
  .dcm-hero-title .word-mask { white-space: normal; }
}
