/* ============================================================
   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; }

.home-scroll {
  height: calc(100vh - var(--nav-h, 56px));
  overflow-y: auto;
  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: 80px 48px calc(80px + var(--footer-h, 40px));
}

/* Home — short summary paragraph. Switched from serif to sans per
   v1.1 typography roles: prose body ("WHAT WE DO" copy and similar)
   renders in DM Sans; serif is reserved for editorial ledes and
   display headlines. Task #488 Phase 3. */
.home-summary-body {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-article);
  color: var(--text-mute);
  max-width: var(--measure-wide, 64ch);
  margin: 0 0 16px;
}

/* Home — selected work list */
.home-work-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-line);
}
.home-work-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
  color: var(--text);
  transition: padding-left .2s var(--ease, ease), color .2s ease;
}
.home-work-row:hover {
  padding-left: 8px;
  color: var(--be-yellow);
}
.home-work-row__client {
  font-family: var(--serif);
  font-size: var(--fs-sublede);
  letter-spacing: var(--ls-body);
  line-height: var(--lh-snug);
}
.home-work-row__tag {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--text-faint);
}
.home-work-cta-row {
  margin-top: 28px;
}
.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: 4px;
}

/* 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 1fr;
  gap: 32px;
  align-items: baseline;
  padding: 32px 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__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 8px;
  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-article);
  color: var(--text-mute);
  margin: 0 0 12px;
  max-width: var(--measure-body, 60ch);
}
.services-discipline__body-copy {
  font-family: var(--sans);
  font-size: var(--fs-sm);
  line-height: var(--lh-article);
  color: var(--text-faint);
  margin: 0 0 16px;
  max-width: var(--measure-body);
}
.services-discipline__cta {
  display: inline-block;
  background: none;
  border: none;
  padding: 4px 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;
}
.proof-pane.proof-pane--work.active {
  display: block;
  height: 100%;
  overflow-y: auto;
}
.work-editorial {
  background: var(--ink);
  color: var(--text);
}
.work-editorial__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px;
}
/* .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);
  max-width: var(--measure-meta);
  margin: 0 0 32px;
  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);
  max-width: var(--measure-lede);
  margin: 0 0 48px;
}
.work-editorial__count {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  color: var(--text-faint);
  text-transform: uppercase;
  margin: 0 0 20px;
}
.work-editorial__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 32px;
  padding-bottom: 24px;
  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 { margin-top: -32px; }

/* /home — Browse Mode addendum (Task #427) overrides the discipline
   numeral to Playfair 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: 8px;
}

/* /home — contained chat section. Same wrapper rhythm as the other
   .about-section blocks; the inner .contained-chat primitive owns its
   own border, padding, chips and composer styling. */
.home-chat-section .contained-chat {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .home-wrap { padding: 56px 20px; }
  .work-editorial__wrap { padding: 56px 20px; }
  .services-discipline { grid-template-columns: 60px 1fr; gap: 20px; }
  .home-wrap .about-discipline-num { font-size: var(--fs-display); }
}
