/* ═══════════════════════════════════════════════════════════════════════
   mgmnt.work — subpage shell: page hero, alternating feature blocks, role
   chips + role strip, cross-link rail, nav dropdown active state.
   `.feat` is also used by the landing's module-overview blocks.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── nav: current page ── */
.nav__links a.is-active,
.nav__menu a.is-active .nav__menu-t { color: var(--accent); }

/* ── page hero (detail pages) ── */
.page-hero { position: relative; overflow: hidden; padding: 158px 0 30px; }
.page-hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 78% -14%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent 46%),
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 34px 100%;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  opacity: .5;
}
[data-theme="dark"] .page-hero__bg { opacity: .38; }
.page-hero__inner { position: relative; z-index: 1; max-width: 880px; }
.page-hero .display { font-size: clamp(2rem, 4.4vw, 3.6rem); }
.page-hero__lede { margin-top: 20px; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 58ch; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ── role chip ── */
.role-chip {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  padding: 5px 11px; border-radius: 999px;
}
.section--dark .role-chip {
  color: var(--dk-accent);
  border-color: color-mix(in srgb, var(--dk-accent) 32%, transparent);
  background: color-mix(in srgb, var(--dk-accent) 12%, transparent);
}

/* ── alternating feature blocks ── */
.feats { padding: 26px 0 96px; }
.feat {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 60px;
  align-items: center; padding: 58px 0;
}
.feat + .feat { border-top: 1px solid var(--border); }
.feat--flip .feat__copy { order: 2; }
.feat--flip .feat__visual { order: 1; }
.feat__copy { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.feat__copy h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.025em; }
.feat__copy h3 .serif-em { font-size: 1.06em; }
.feat__p { font-size: 16px; line-height: 1.62; color: var(--text-2); max-width: 50ch; }
.feat__list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.feat__list li {
  position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55;
  color: var(--text-2); max-width: 52ch;
}
.feat__list li b { color: var(--text); font-weight: 600; }
.feat__list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg); border-radius: 1px;
}
.feat__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.section__more { margin-top: 38px; display: flex; justify-content: flex-start; }
.feat__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14.5px; font-weight: 500; color: var(--accent); }
.section--dark .feat__more { color: var(--dk-accent); }
.feat__more svg { transition: transform .18s var(--ease); }
.feat__more:hover svg { transform: translateX(3px); }
.feat__visual { min-width: 0; }

/* ── "who it's for" role strip ── */
.roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.roles__card {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-elev);
  padding: 22px; display: flex; flex-direction: column; gap: 9px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.roles__card:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-md); }
.roles__card h4 { font-size: 15.5px; }
.roles__card p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* ── cross-link rail ("also explore") ── */
.xp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.xp__card {
  display: flex; flex-direction: column; gap: 7px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-elev);
  padding: 20px 22px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.xp__card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: var(--shadow-md); }
.xp__k { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--accent); }
.xp__t { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.xp__t svg { color: var(--text-3); transition: transform .18s var(--ease), color .18s var(--ease); }
.xp__card:hover .xp__t svg { transform: translateX(3px); color: var(--accent); }
.xp__p { font-size: 13px; color: var(--text-3); line-height: 1.5; }

/* ── capability tile grid (AI section + subpages) ── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tiles--2 { grid-template-columns: repeat(2, 1fr); }
.tile {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-elev);
  padding: 24px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow-md); }
.tile__ic {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.tile h4 { font-size: 16px; margin-top: 4px; }
.tile p { font-size: 13.5px; color: var(--text-2); line-height: 1.55; }
.section--dark .tile { background: rgba(255,255,255,0.03); border-color: var(--dk-border); }
.section--dark .tile h4 { color: var(--dk-text); }
.section--dark .tile p { color: var(--dk-text-2); }
.section--dark .tile__ic { background: color-mix(in srgb, var(--dk-accent) 14%, transparent); color: var(--dk-accent); }

/* ── responsive ── */
@media (max-width: 1040px) {
  .feat { grid-template-columns: 1fr; gap: 30px; padding: 44px 0; }
  .feat--flip .feat__copy { order: 1; }
  .feat--flip .feat__visual { order: 2; }
  .roles, .xp, .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .page-hero { padding: 128px 0 20px; }
  .roles, .xp, .tiles { grid-template-columns: 1fr; }
  .feats { padding: 10px 0 56px; }
}
