/* pages.css — the HOME language for content pages (About, FAQ, Resources).
   Loaded after tokens.css + styles.css + chrome.css, so every section
   primitive (.section, .sec-bg, .container, .eyebrow, .section__title,
   .section__lead, .cap__*, .btn) is the home page's own; this file adds only
   what a content page needs and the home page does not: a compact page
   hero, a reading measure, figures for diagrams, data tables, the parts
   strip, the FAQ split, and the article cards. One accent, hairlines, mono
   eyebrows, display caps — nothing new. */

/* ---- page hero: eyebrow + display title + lead, bottom-left over a still ---- */
.phero { display: flex; align-items: flex-end;
  min-height: clamp(380px, 54vh, 560px);
  padding: clamp(110px, 18vh, 200px) 0 clamp(48px, 8vh, 88px);
  /* pulled up under the transparent nav like the home hero */
  margin-top: calc(-1 * var(--nav-h)); }
.phero .sec-bg img { opacity: .62; filter: saturate(.8) contrast(1.05); }
.phero .sec-bg::after {
  background:
    radial-gradient(ellipse at 30% 60%, rgba(6,7,8,.55) 0%, rgba(6,7,8,.22) 55%, rgba(6,7,8,.05) 100%),
    linear-gradient(180deg, rgba(6,7,8,.55) 0%, rgba(6,7,8,0) 26%, rgba(6,7,8,0) 70%, var(--bg) 100%);
}
/* content pages run wider than the home's 1180px measure (operator
   2026-09-04: "leaving a lot of width on the table"); the mobile layouts
   are unaffected because they stack below 900px anyway */
.phero .container, .psec .container { max-width: min(1600px, calc(100vw - 64px)); }
.phero__box { max-width: 920px; }
.phero .eyebrow { margin-bottom: 14px; }
.phero__title { text-align: left; font-size: clamp(34px, 5.4vw, 66px); margin: 0; }
.phero__lead { text-align: left; margin: 20px 0 0; max-width: 640px; font-size: clamp(16px, 1.3vw, 18px); }
.phero__meta { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg-3); margin: 22px 0 0; }
.phero__meta a { color: var(--fg-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.phero__meta a:hover { color: var(--fg); }

/* ---- reading sections ---- */
/* overflow visible, not the .section default of hidden: a hidden-overflow
   section is a scroll container, and a sticky rail inside one pins itself
   92px down from the SECTION's top on load instead of the viewport's. The
   page-level overflow-x clip in styles.css still contains the side stills. */
.psec { padding: clamp(56px, 9vh, 104px) 0; overflow: visible; }
.psec + .psec { padding-top: 0; }
/* header left, body right — the home page's split rhythm */
.psplit { display: grid; grid-template-columns: minmax(240px, .58fr) minmax(0, 1.42fr);
  gap: clamp(36px, 5vw, 96px); align-items: start; }
.psplit .eyebrow, .psplit .section__title { text-align: left; }
.psplit .section__title { font-size: clamp(26px, 3.4vw, 42px); }
.psplit__head { position: sticky; top: calc(var(--nav-h) + 28px); }
.prose { max-width: 960px; color: var(--gray-400, var(--fg-2)); font-size: 16.5px; line-height: 1.72; font-weight: 300; }
.prose p { margin: 0 0 16px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.prose a:hover { color: var(--accent); }
.prose h2 { text-transform: uppercase; letter-spacing: -.2px; font-size: 20px; font-weight: 700;
  color: var(--fg); margin: 44px 0 12px; padding-bottom: 10px; position: relative; }
.prose h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(127,160,204,.45) 40%, rgba(127,160,204,0) 100%); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

/* ---- figures (diagrams) ---- */
.fig { margin: 28px 0 30px; border: 1px solid var(--line); background: var(--panel); padding: 20px 22px 16px; }
.fig img, .fig svg { width: 100%; height: auto; display: block; }
.fig__cap { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--fg-3); margin: 14px 0 0; line-height: 1.6; }
.fig__cap b { color: var(--accent); font-weight: 600; }
.fig--wide { margin-left: 0; }

/* ---- data tables ---- */
.dwrap { overflow-x: auto; margin: 22px 0 26px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.dtable th { font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-3); border-bottom-color: var(--line-2); }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable td { color: var(--fg-2); font-family: var(--mono); font-size: 12.5px; }
.dtable td:first-child { font-family: var(--font); font-size: 13.5px; color: var(--fg); }
.dtable td a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.dtable td a:hover { color: var(--accent); }
.dtable .hi { color: var(--accent); }

/* ---- the parts strip: real SKUs to order, in the requirements-band idiom ---- */
.parts { margin: 36px 0 8px; border: 1px solid var(--line-2); background: rgba(8,10,12,.78);
  padding: clamp(22px, 3vw, 34px); }
.parts .eyebrow { margin-bottom: 10px; }
.parts p { color: var(--fg-2); font-size: 15px; line-height: 1.65; margin: 0 0 14px; max-width: 70ch; }
.parts p a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.parts .dwrap { margin: 6px 0 16px; }
.parts .hero__actions { margin-top: 10px; justify-content: flex-start; }
.parts .btn { text-decoration: none; }
.parts__note { font-size: 12.5px; color: var(--fg-3); margin: 0; }

/* ---- article cards (resources index + "more") ---- */
.rgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin: 34px 0 0; }
.rcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  color: inherit; text-decoration: none; overflow: hidden;
  transition: border-color var(--dur) var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.rcard:hover { border-color: var(--accent-line); transform: translateY(-3px);
  box-shadow: 0 14px 34px -20px rgba(0,0,0,.95); }
.rcard__art { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #050607; }
.rcard__art img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity var(--dur); }
.rcard:hover .rcard__art img { opacity: 1; }
.rcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rcard__body .eyebrow { margin: 0; font-size: 9.5px; }
.rcard__body h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.2px; line-height: 1.25; color: var(--fg); }
.rcard__body p { margin: 0; color: var(--fg-2); font-size: 13.5px; font-weight: 300; line-height: 1.55; }
.rcard__go { margin-top: auto; padding-top: 12px; font: 600 10px var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--fg-3); transition: color var(--dur); }
.rcard:hover .rcard__go { color: var(--accent); }

/* ---- the FAQ split: question rail left, answers right ---- */
.faq { display: grid; grid-template-columns: minmax(220px, .28fr) minmax(0, .72fr);
  gap: clamp(36px, 5vw, 96px); align-items: start; }
.faq__rail { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__rail .eyebrow { margin-bottom: 12px; }
.faq__rail a { display: block; padding: 8px 0; color: var(--fg-2); font-size: 13.5px; text-decoration: none;
  border-bottom: 1px solid var(--line); transition: color var(--dur); }
.faq__rail a:hover { color: var(--fg); }
.faq__q { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--nav-h) + 20px); }
.faq__q:first-child { padding-top: 0; }
.faq__q h2 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -.2px; color: var(--fg); }
.faq__q p { margin: 0; color: var(--fg-2); font-size: 15.5px; line-height: 1.7; font-weight: 300; max-width: 980px; }
.faq__q p + p { margin-top: 10px; }
.faq__q a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.faq__q a:hover { color: var(--accent); }
.faq__q strong { color: var(--fg); font-weight: 600; }

/* ---- an article's sticky rail: contents + the parts button ---- */
.toc a { display: block; padding: 7px 0; color: var(--fg-2); font-size: 13.5px; text-decoration: none;
  border-bottom: 1px solid var(--line); transition: color var(--dur); }
.toc a:hover { color: var(--fg); }
.toc .btn { display: inline-flex; margin-top: 18px; border-bottom: 0; text-decoration: none; }

/* ---- the process rail (About): how an order becomes a part, step by step.
   Not on the home page — that has the triangle and the capabilities band;
   this is a numbered rail with the kerf line running down its spine, each
   step a mechanism title, one paragraph, and its own art. ---- */
.flow { margin-top: 8px; position: relative; }
.flow::before { content: ""; position: absolute; left: 22px; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(127,160,204,.45) 40%, rgba(127,160,204,.08) 100%); }
.flow__step { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(220px, .62fr);
  gap: 20px 30px; padding: 30px 0; align-items: center; border-top: 1px solid var(--line); }
.flow__step:first-child { border-top: 0; }
.flow__n { position: relative; font: 700 12px var(--mono); letter-spacing: .16em; color: var(--accent);
  text-shadow: 0 0 14px var(--accent-glow); align-self: start; padding-top: 4px; }
.flow__n::before { content: ""; position: absolute; left: 18px; top: 26px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--accent);
  box-shadow: 0 0 10px var(--accent-glow); }
.flow__t { text-transform: uppercase; font-weight: 700; font-size: 19px; letter-spacing: -.2px;
  color: var(--fg); margin: 0 0 8px; }
.flow__p { color: var(--fg-2); font-size: 15px; line-height: 1.68; font-weight: 300; margin: 0; max-width: 58ch; }
.flow__p b { color: var(--fg); font-weight: 600; }
.flow__art { border: 1px solid var(--line); background: #050607; aspect-ratio: 16 / 9; overflow: hidden; }
.flow__art img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.flow__art--diagram img { object-fit: contain; background: var(--panel); }

/* ---- the numbers strip (About): big mono figures on hairlines, no boxes ---- */
.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px;
  margin-top: 30px; border-top: 1px solid var(--line-2); }
.nums > div { padding: 22px 0 18px; border-bottom: 1px solid var(--line); min-width: 0; }
.nums b { display: block; font-family: var(--mono); font-size: clamp(20px, 2.1vw, 30px); font-weight: 700;
  letter-spacing: -1.2px; color: var(--fg); line-height: 1; white-space: nowrap; }
@media (max-width: 640px) { .nums { grid-template-columns: repeat(2, 1fr); } }
.nums span { display: block; font: 600 10px var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--fg-3); margin-top: 8px; }

@media (max-width: 900px) {
  .flow::before { display: none; }
  .flow__step { grid-template-columns: 1fr; gap: 12px; }
  .flow__n::before { display: none; }
}

/* ---- feature trio (About) ---- */
.feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); margin-top: 36px; }
.feat > div { background: var(--bg); padding: 26px 24px 28px; }
.feat b { display: block; font-family: var(--mono); font-size: clamp(22px, 2.4vw, 28px); font-weight: 700;
  letter-spacing: -1px; color: var(--fg); margin-bottom: 6px; }
.feat span { display: block; font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; }
.feat p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.6; font-weight: 300; }

/* ---- the “more articles” rail at an article's foot ---- */
.rmore { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line-2); }
.rmore .eyebrow { margin-bottom: 4px; }

@media (max-width: 900px) {
  .psplit, .faq { display: block; }
  .psplit__head, .faq__rail { position: static; margin-bottom: 26px; }
  .faq__rail a { display: inline-block; margin-right: 14px; border: 0; padding: 4px 0; }
  .phero { min-height: 0; }
}
