/* ============================================================
   HOME (`/`) + SERVICES (`/services`) — editorial dark register.
   Reuses .about-* primitives from about.css via shared classes.
   This file adds the screen scaffolding + the home/services-only
   list rows.
   ============================================================ */

.screen--home,
.screen--services { display: none; }
.screen--home.active,
.screen--services.active { display: block; }

/* Single scroll surface: the page scrolls at document level (like the
   legal/brief screens) — no inner fixed-height scroller, so visitors
   never see a scrollbar inside a scrollbar (Task #615/#616). Footer
   clearance lives on .home-wrap's bottom padding (Task #612 shell
   convention). */
.home-scroll {
  background: var(--ink);
  color: var(--text);
}
.home-wrap {
  max-width: 1280px;
  margin: 0 auto;
  /* Bottom padding clears the 40px fixed-position .footer-bar so the
     final section (stats band / chat / Element entry) never tucks
     under the footer rule. --footer-h is defined globally in main.css
     and matches the footer height. */
  padding: var(--sp-20) var(--sp-12) var(--sp-20);
}

/* Legacy home selected-work list (.home-summary-body, .home-work-list,
   .home-work-row*) removed in Task #704 — /home now renders the shared
   .work-tile hero cards inside .home-work-featured. */
.home-work-cta-row {
  margin-top: var(--sp-6);
}
.home-work-cta {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--be-yellow);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: var(--sp-1);
}

/* /home — selected-work empty state (Task #750). Rendered when no
   case qualifies for the featured band: a single full-width editorial
   invitation panel that clicks through to /work. Eyebrow carries the
   live portfolio counts; the CTA reuses the .home-work-cta recipe. */
.home-work-empty {
  display: block;
  margin-top: var(--sp-2);
  padding: var(--sp-10) var(--sp-8);
  border: 1px solid var(--ink-line);
  text-decoration: none;
  color: inherit;
}
.home-work-empty:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 4px;
}
.home-work-empty__eyebrow {
  display: block;
  margin-bottom: var(--sp-4);
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--text-faint);
}
.home-work-empty__headline {
  /* Same title register as the shared list rows (Task #735 recipe):
     display medium at sublede size, headline tracking. */
  display: block;
  margin-bottom: var(--sp-6);
  font-family: var(--display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sublede);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-headline);
  color: var(--text);
  transition: color 0.18s ease;
}
.home-work-empty:hover .home-work-empty__headline,
.home-work-empty:focus-visible .home-work-empty__headline {
  color: var(--be-yellow);
}
.home-work-empty__cta {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--be-yellow);
  border-bottom: 1px solid currentColor;
  padding-bottom: var(--sp-1);
}
@media (prefers-reduced-motion: reduce) {
  .home-work-empty__headline { transition: none; }
}

/* Services — discipline rows */
.services-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-line);
}
.services-discipline {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: var(--sp-8);
  align-items: baseline;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--ink-line);
}
.services-discipline__num {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-nav);
  color: var(--be-yellow);
}
.services-discipline__body {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .services-discipline {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: var(--sp-4);
  }
}
.services-discipline__name {
  font-family: var(--serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-h1);
  letter-spacing: var(--ls-headline);
  line-height: var(--lh-snug);
  margin: 0 0 var(--sp-2);
  color: var(--text);
}
/* Discipline descriptors render in DM Sans body register — they sit
   directly under the serif discipline name and switching them to sans
   gives the eye a clean role split (serif name → sans body).
   Task #488 Phase 3. */
/* Locked off-scale (Task #527 / docs/TYPOGRAPHY.md):
   discipline descriptions render at --fs-sm, DM Sans. */
.services-discipline__descriptor {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--text-mute);
  margin: 0 0 var(--sp-3);
  max-width: var(--measure-body, 60ch);
}
.services-discipline__body-copy {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: var(--lh-body);
  color: var(--text-faint);
  margin: 0 0 var(--sp-4);
  max-width: var(--measure-body);
}
.services-discipline__cta {
  display: inline-block;
  background: none;
  border: none;
  padding: var(--sp-1) 0;
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--be-yellow);
  border-bottom: 1px solid currentColor;
  cursor: pointer;
}
.services-discipline__cta:hover { opacity: 0.8; }

/* WORK pane — editorial full-width chrome (matches about/aiops/careers) */
.proof-pane.proof-pane--work {
  padding: 0;
}
/* Document-level scroll (Task #616) — the pane grows with its content
   and the page scrolls at document level; no inner scroller. */
.proof-pane.proof-pane--work.active {
  display: block;
}
.work-editorial {
  background: var(--ink);
  color: var(--text);
}
.work-editorial__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-12) var(--sp-20);
}
/* .work-editorial__eyebrow is aliased onto the .eyebrow--rule
   primitive in main.css (Task #424). No page-local override needed. */
.work-editorial__headline {
  font-family: var(--serif);
  font-weight: var(--fw-light);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-headline);
  margin: 0 0 var(--sp-8);
  color: var(--text);
}
.work-editorial__headline em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--be-yellow);
}
/* Sublede renders in DM Sans per the v1.1 typography roles — prose
   body copy ("or browse the index" sentence) sits in sans; serif is
   reserved for the headline above. Task #550. */
.work-editorial__sublede {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sublede);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0 0 var(--sp-12);
}
.work-editorial__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  /* Task #735: filter-to-list spacing matches .insights-filters. */
  margin: 0 0 var(--sp-12);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--ink-line);
}

/* /work — inline case rendering inside the editorial wrap. The
   index controls collapse via [data-work-hidden] when a case is
   opened in place (preserves Task #342's "inline case view is kept"
   behaviour with the new full-width chrome). */
.work-editorial__wrap [data-work-hidden] { display: none !important; }
/* .work-inline-case removed in Task #704 — unreferenced. */

/* /home — Browse Mode addendum (Task #427) overrides the discipline
   numeral to DM Sans 900 48px. Scoped to the /home wrap so the about
   page keeps its existing 32px size. */
.home-wrap .about-discipline-num {
  font-size: var(--fs-display);
}

/* /home — sublede renders in DM Sans. As of Task #568 the shared
   .about-sublede atom is sans by default site-wide, so no /home-
   specific override is needed; this comment is left as a marker. */

/* /home — selected-work block. Reuses .work-tile--hero styling from the
   /work hybrid layout; this wrapper just gives the grid breathing room
   and the CTA row its own rule. */
.home-work-featured {
  margin-top: var(--sp-2);
}

/* .home-chat-section wrapper rule removed in Task #704 — no markup
   renders that class; .contained-chat owns its own spacing. */

@media (max-width: 767px) {
  .home-wrap { padding: var(--sp-14) var(--sp-5) var(--sp-14); }
  .work-editorial__wrap { padding: var(--sp-14) var(--sp-5) var(--sp-14); }
  /* Task #735: matches the .insights-filters mobile spacing. */
  .work-editorial__filters { margin-bottom: var(--sp-8); padding-bottom: var(--sp-5); }
  .services-discipline { grid-template-columns: 60px 1fr; gap: var(--sp-5); }
  .home-wrap .about-discipline-num { font-size: var(--fs-display); }
}
