/* The home page's own layout (site/index.html, body.home), on the identity in
   inspection.css: numbered sections on the twelve-column grid, the live panel
   beside the headline, five desks, dated news rows, the connectors spec, the
   Atlas preview and the lettered side pockets. One block per section, top to
   bottom, then the breakpoints. */

/* ---------- shared: numbered section labels, spec tables, the live dot ---------- */
.home .section-no { font: 400 12px/1.6 var(--mono); letter-spacing: 0.05em; color: var(--ink-2); margin: 0; }
.home .section-head { align-items: flex-end; margin-bottom: 28px; gap: 16px 32px; }
.home .section-head .eyebrow { margin: 0 0 10px; }
.home .section-head h2 { margin: 0; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -0.035em; }
.home .section-head .section-lead { max-width: 44ch; margin: 0; font-size: 15px; }
.home .spec { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 0 24px; margin: 0; border-bottom: 1px solid var(--line); }
.home .spec dt { padding: 12px 0; border-top: 1px solid var(--line); font: 400 12px/1.6 var(--mono); letter-spacing: 0.05em; color: var(--ink-2); }
.home .spec dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.home .spec dd a { text-decoration: none; }
.home .spec dd a:hover { text-decoration: underline; }
.home .code { font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink); }
.home .live-tag { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font: 400 12px/1 var(--mono); color: var(--green); }
.home .text-link { font-size: 14px; }

/* ---------- hero: the headline and prompt beside the live panel ---------- */
.home .home-hero { padding: 64px 0 48px; }
.home .hero-layout { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; }
.home .hero-copy { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 24px; }
.home .hero-eyebrow { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.home .hero-eyebrow .dot { width: 6px; height: 6px; margin-right: 8px; }
.home .hero h1 { margin: 0; max-width: none; font-size: clamp(44px, 5.3vw, 76px); line-height: 0.98; letter-spacing: -0.045em; }
.home .lit { color: var(--blue-400); }
.home .hero p.lead { margin: 0; font-size: 18px; max-width: 50ch; }
.home .hero-search { max-width: 600px; margin: 2px 0 0; }
.home .hero-search input { font-size: 16px; }
.home .hero-try { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font: 400 12px/1.6 var(--mono); letter-spacing: 0.05em; color: var(--ink-2); }
.home .hero-try a { color: var(--ink-nav); text-decoration: none; }
.home .hero-try a:hover { color: var(--ink); text-decoration: underline; }
.home .live-panel { grid-column: 8 / span 5; display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--glow); min-width: 0; }
.home .live-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0.05em; color: var(--ink); }
.home .live-addr { margin-left: auto; color: var(--ink-2); text-decoration: none; }
.home .live-addr:hover { color: var(--ink); text-decoration: underline; }
.home .live-body { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 22px; overflow-wrap: anywhere; }
.home .prompt { color: var(--blue-400); }
.home .ok { color: var(--green); }
.home .dim { color: var(--ink-2); }
.home .live-answer { border-left: 2px solid var(--blue); padding-left: 14px; color: var(--ink-nav); }
.home .cursor { display: inline-block; width: 9px; height: 17px; background: var(--blue-400); vertical-align: -3px; }
html.motion .home .cursor { animation: home-blink 1.1s steps(2, start) infinite; }
@keyframes home-blink { to { visibility: hidden; } }
.home .desk-today { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 40px; padding: 12px 0 0; border-top: 1px solid var(--line); font: 400 12px/1.6 var(--mono); letter-spacing: 0.03em; color: var(--ink-2); }
.home .desk-label { color: var(--ink); }
.home .desk-note { flex: 1 1 320px; }
.home .desk-today a { margin-left: auto; text-decoration: none; }
.home .desk-today a:hover { text-decoration: underline; }

/* ---------- site facts ---------- */
.home .facts-section { padding: 28px 0 48px; }
.home .facts-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: start; }
.home .facts-grid .section-no { grid-column: 1 / span 2; padding-top: 12px; }
.home .facts-grid .spec:nth-of-type(1) { grid-column: 3 / span 5; }
.home .facts-grid .spec:nth-of-type(2) { grid-column: 8 / span 5; }

/* ---------- the consultant directory ---------- */
.home .directory-section { padding: 48px 0 56px; }
.home .directory-feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 48px; align-items: start; }
.home .roles-label { margin: 0 0 4px; font-size: 12px; letter-spacing: 0.05em; color: var(--ink-2); }
.home .directory-roles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.home .directory-roles a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font: 500 15px/1.3 var(--font); letter-spacing: -0.01em; text-decoration: none; }
.home .directory-roles li:nth-last-child(-n + 2) a { border-bottom: 1px solid var(--line); }
.home .directory-roles a span { color: var(--blue-400); flex-shrink: 0; }
.home .directory-roles a:hover { color: var(--blue-400); }
.home .directory-side { display: flex; flex-direction: column; gap: 16px; padding-top: 28px; }
.home .directory-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.home .directory-actions a { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1 1 200px; }
.home .directory-browse { box-shadow: 0 0 28px rgba(0, 71, 255, 0.35); }
.home .directory-list { color: var(--ink); }
.home .directory-terms { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }

/* ---------- the five desks ---------- */
.home .kit-section { padding: 48px 0 64px; }
.home .task-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.home .task-cards li, .home .task-cards li:nth-child(n+4), .home .task-cards li:last-child { display: flex; min-width: 0; grid-column: auto; }
.home .task-card { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 20px 0 0; min-height: 220px; background: transparent; border: 0; border-top: 2px solid var(--line-2); border-radius: 0; box-shadow: none; color: var(--ink); text-decoration: none; }
.home .task-card .mono { font-size: 12px; letter-spacing: 0.05em; color: var(--ink-2); }
.home .task-card h3 { margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; }
.home .task-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.home .task-card .more { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue-400); }
.home .task-card .more::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--blue); box-shadow: 0 0 10px rgba(0, 71, 255, 0.8); }
.home .task-card:hover { transform: none; border-top-color: var(--blue); color: var(--ink); box-shadow: none; }
.home .task-card:hover .more { text-decoration: underline; }

/* ---------- this week's news: dated rows ---------- */
.home .news-home { padding: 48px 0 64px; }
.home .news-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: start; }
.home .news-copy { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 12px; }
.home .news-copy .eyebrow { margin: 0; }
.home .news-copy h2 { margin: 0; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -0.035em; }
.home .news-copy p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.home .news-rows { grid-column: 4 / span 9; display: flex; flex-direction: column; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); min-width: 0; }
.home .news-rest { display: flex; flex-direction: column; }
.home .news-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; column-gap: 24px; row-gap: 6px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.home .news-rows > .news-row:first-child { border-top: 0; }
.home .news-row-meta { display: contents; }
.home .news-row time { grid-column: 1; grid-row: 1; font: 400 12px/1.6 var(--mono); letter-spacing: 0.05em; color: var(--ink-2); }
.home .news-row-lead time { color: var(--blue-400); }
.home .news-row-title { grid-column: 2; grid-row: 1; font: 600 17px/1.3 var(--font); letter-spacing: -0.015em; }
.home .news-row-lead .news-row-title { font-size: 20px; }
.home .news-row-meta .tag { grid-column: 3; grid-row: 1; justify-self: end; position: static; background: transparent; padding: 0; color: var(--ink-2); font-size: 12px; text-transform: none; }
.home .news-row-source { grid-column: 1; grid-row: 2; font: 400 11px/1.5 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.home .news-row-summary { grid-column: 2; grid-row: 2; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.home .news-row:hover .news-row-title { color: var(--blue-400); }
.home .news-empty { grid-column: 4 / span 9; margin: 0; padding: 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--ink-2); }

/* ---------- AI connectors: the spec and the three clients ---------- */
.home .connectors { padding: 48px 0 64px; }
.home .connectors-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: start; }
.home .connectors-copy { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 14px; }
.home .connectors-copy .eyebrow { margin: 0; }
.home .connectors-copy h2 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.home .connectors-copy p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
.home .connectors-copy .actions { margin-top: 6px; }
.home .connectors-side { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home .connectors-side .spec dd.code { font-size: 14px; }
.home .connectors-clients { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home .client { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.home .client .mono { font-size: 12px; letter-spacing: 0.05em; color: var(--ink); }
.home .connectors-cmd { font-size: 12px; color: var(--ink-nav); overflow-wrap: anywhere; }

/* ---------- the Atlas ---------- */
.home .research { padding: 48px 0 64px; }
.home .research-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 28px; align-items: center; }
.home .case-file { grid-column: 1 / span 6; display: block; padding: 8px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); }
.home .case-file img { display: block; width: 100%; height: auto; aspect-ratio: 1344 / 840; border-radius: 0; }
.home .file-caption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 6px 2px; font: 400 12px/1.4 var(--mono); letter-spacing: 0.05em; }
.home .research-copy { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 14px; }
.home .research-copy .eyebrow { margin: 0; }
.home .research-copy h2 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.home .research-copy p { margin: 0; color: var(--ink-2); max-width: 44ch; }
.home .research-limit { font-size: 14px; }

/* ---------- side pockets, lettered ---------- */
.home .references { padding: 48px 0 64px; }
.home .pockets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; counter-reset: pocket; }
.home .pocket { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; color: var(--ink); text-decoration: none; counter-increment: pocket; }
.home .pocket::before { content: counter(pocket, upper-alpha); font: 400 12px/1.6 var(--mono); letter-spacing: 0.05em; color: var(--blue-400); }
.home .pocket:hover { transform: none; border-top-color: var(--blue-400); color: var(--ink); }
.home .pocket strong { font: 600 16px/1.3 var(--font); letter-spacing: -0.015em; }
.home .pocket > span:last-child { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.home .pocket .tag { order: 1; align-self: flex-start; position: static; background: transparent; padding: 0; color: var(--ink-3); text-transform: none; margin-top: 2px; }
.home .project-link { margin: 28px 0 0; }

/* ---------- about ---------- */
.home .about { padding: 48px 0 72px; }
.home .about-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 20px; align-items: start; }
.home .about-grid > div:first-child { grid-column: 1 / span 6; }
.home .about-copy { grid-column: 8 / span 5; }
.home .about .eyebrow { margin: 0 0 12px; }
.home .about h2 { margin: 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -0.04em; }
.home .about-copy p { margin: 0 0 14px; font-size: 16px; color: var(--ink); }
.home .about-copy a { font-weight: 600; text-decoration: none; }
.home .about-copy a:hover { text-decoration: underline; }
.home .about-copy .independent { font-size: 13px; color: var(--ink-2); max-width: 46ch; }

/* ---------- breakpoints ---------- */
@media (max-width: 1100px) {
  .home .hero-copy { grid-column: 1 / -1; }
  .home .live-panel { grid-column: 1 / -1; margin-top: 36px; max-width: 640px; }
  .home .facts-grid .section-no { grid-column: 1 / -1; padding-top: 0; }
  .home .facts-grid .spec:nth-of-type(1) { grid-column: 1 / span 6; }
  .home .facts-grid .spec:nth-of-type(2) { grid-column: 7 / span 6; }
  .home .directory-feature { grid-template-columns: 1fr; }
  .home .directory-side { padding-top: 0; }
  .home .task-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home .task-card { min-height: 0; }
  .home .news-copy, .home .connectors-copy, .home .research-copy, .home .about-grid > div:first-child, .home .about-copy { grid-column: 1 / -1; }
  .home .news-rows, .home .news-empty, .home .connectors-side, .home .case-file { grid-column: 1 / -1; }
  .home .pockets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home .home-hero { padding: 36px 0 28px; }
  .home .hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .home .hero-search { flex-direction: row; }
  .home .hero-search button { min-height: 40px; padding: 0 14px; width: auto; }
  .home .live-body { padding: 16px; font-size: 12.5px; }
  .home .desk-today a { margin-left: 0; }
  .home .facts-section, .home .directory-section, .home .kit-section, .home .news-home, .home .connectors, .home .research, .home .references, .home .about { padding: 36px 0 44px; }
  .home .facts-grid .spec:nth-of-type(1), .home .facts-grid .spec:nth-of-type(2) { grid-column: 1 / -1; }
  .home .spec { grid-template-columns: 110px minmax(0, 1fr); }
  .home .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .home .directory-roles ul { grid-template-columns: 1fr; }
  .home .directory-roles li:nth-last-child(-n + 2) a { border-bottom: 0; }
  .home .directory-roles li:last-child a { border-bottom: 1px solid var(--line); }
  .home .directory-actions { flex-direction: column; }
  .home .directory-actions a { flex: none; }
  .home .task-cards { grid-template-columns: 1fr; gap: 0; }
  .home .task-card { padding: 16px 0 18px; }
  .home .task-card h3 { font-size: 20px; }
  .home .news-row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .home .news-row time, .home .news-row-title, .home .news-row-meta .tag, .home .news-row-source, .home .news-row-summary { grid-column: 1; grid-row: auto; }
  .home .news-row-meta .tag { justify-self: start; }
  .home .connectors-clients { grid-template-columns: 1fr; }
  .home .pockets { grid-template-columns: 1fr; }
}
