/* =====================================================================
   PLAYBOOK — pages-b.css (31 Oct 2026)
   Page-specific styles for work, who-we-work-with, work-with-us,
   insights, faqs and contact. Loaded after site.css.
   Only components Home lacks live here; everything else reuses site.css.
   The page-head and split-grid rules mirror pages-a.css so the inner
   pages read as one system.
   ===================================================================== */

/* ---------- Nav: current page ---------- */
.nav-links a[aria-current] { background-size: 100% 1px; }

/* ---------- Page head (light opener) ---------- */
.page-head { padding-top: calc(var(--nav-h) + 56px + env(safe-area-inset-top, 0px)); padding-bottom: 0; }
.page-head .wrap { gap: 40px; }
.page-head h1 { font-size: clamp(3rem, 1.2rem + 5.6vw, 7rem); line-height: .9; max-width: 1300px; overflow-wrap: anywhere; }
.page-head .page-intro { font: 500 var(--fs-quote)/1.1 var(--font-text); letter-spacing: var(--ls-tight); max-width: 900px; }
.page-head .btn-row { gap: 8px; }
.ph-wide { width: 100%; aspect-ratio: 16 / 7; }
.page-head .ph-wide { margin-top: 24px; }
.page-head + .sec { padding-top: var(--section-y); }
@media (min-width: 810px) {
  .page-head { padding-top: calc(var(--nav-h) + 96px + env(safe-area-inset-top, 0px)); }
}

/* ---------- Split grid: intro left, definition list right ---------- */
.sg { display: grid; grid-template-columns: 450px minmax(0, 1fr); gap: 100px; align-items: start; }
.sg-intro { display: flex; flex-direction: column; gap: 24px; }
.sg-intro .lead { max-width: 450px; }
.defs { border-bottom: 1px solid var(--fg); }
.def { display: grid; grid-template-columns: 56px 300px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-top: 1px solid var(--fg); align-items: start; }
.def .label { color: var(--muted); }
.def p { max-width: 560px; }

/* ---------- Work: client grid (five across, rule on top) ---------- */
.cl-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px var(--gap); }
.cl-cell { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cl-cell .quote { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project .ph { width: 100%; }
.project .card-title { max-width: 32ch; }
.head-row .small { max-width: 360px; }
.cta-line .ul.small { padding-bottom: 2px; }

/* ---------- Who we work with: reuse service rows; chips carry the draft marker ---------- */
.srow-foot .chips { max-width: 600px; }

/* ---------- Work with us: price cards ---------- */
.partner.price { gap: 16px; }
.num { font: 400 clamp(3.5rem, 2rem + 4.2vw, 5.5rem)/1 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.partner.price .h3 { font-size: var(--fs-h3); }
.partner.price p:last-child { max-width: 36ch; }

/* ---------- Insights: filter tabs, featured article, planned list ---------- */
.sec.tabs-sec { padding: 48px 0 0; }
.tabs-sec .wrap { gap: 0; }
.tabs-sec + .sec { padding-top: 64px; }
.tabs { display: flex; flex-wrap: wrap; gap: 12px 32px; padding-bottom: 8px; }
.tab { font: 500 var(--fs-label)/1.2 var(--font-text); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--muted); padding: 6px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 300ms var(--ease-in-out), color 200ms; }
.tab:hover, .tab:focus-visible { color: var(--fg); background-size: 100% 1px; }
.tab[aria-pressed="true"] { color: var(--fg); background-size: 100% 1px; }
.feat { display: grid; grid-template-columns: minmax(0, 672fr) minmax(0, 768fr); gap: 32px; align-items: start; }
.feat .ph { width: 100%; transition: transform 600ms var(--ease-spring); transform-origin: 50% 100%; }
.feat:hover .ph { transform: scale(1.02); }
.feat-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.feat-copy .statement { max-width: 672px; }
.feat-copy .lead { max-width: 600px; }
.feat:hover .statement { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.feat:hover .read i { transform: translate3d(6px, 0, 0); }
.article[hidden], .feat[hidden] { display: none; }
#featured[hidden] { display: none; }
.soon { border-bottom: 1px solid var(--fg); }
.soon-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 32px; align-items: center; padding: 18px 0; border-top: 1px solid var(--fg); }
.soon-row .card-title { max-width: 60ch; }
.soon-row[hidden] { display: none; }

/* ---------- Forms (contact + checklist): rule-under inputs, square checkbox ---------- */
.form { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; width: 100%; min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: 100%; }
.field { display: flex; flex-direction: column; gap: 10px; width: 100%; min-width: 0; }
.field > .label .muted { text-transform: none; letter-spacing: 0; }
.form input:not([type="checkbox"]), .form select, .form textarea {
  width: 100%; min-width: 0; height: 48px; padding: 10px 0; margin: 0;
  background: transparent; border: 0; border-bottom: 1px solid var(--fg); border-radius: 0;
  font: 400 var(--fs-lead)/1.4 var(--font-text); letter-spacing: var(--ls-tight); color: var(--fg);
  transition: border-color 200ms var(--ease-in-out);
}
.form textarea { height: auto; min-height: 140px; resize: vertical; }
.form select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23252422' stroke-width='1.5'/%3E%3C/svg%3E") right center / 14px 9px no-repeat; }
.form select:invalid, .form select option[value=""] { color: var(--muted); }
.form select:has(option:checked:not([value=""])) { color: var(--fg); }
.form ::placeholder { color: var(--muted); opacity: 1; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 0; border-bottom-width: 2px; border-bottom-color: var(--fg); }
.form .is-invalid { border-bottom-color: #B3261E; }
.field-err { font-size: var(--fs-small); line-height: 1.3; color: #B3261E; min-height: 0; }
.field-err:empty { display: none; }
.form-err { color: #B3261E; }
.check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; max-width: 700px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--fg); border-radius: 0; background: transparent; display: grid; place-items: center; cursor: pointer; transition: background-color 200ms var(--ease-in-out); }
.check input::after { content: ""; width: 10px; height: 10px; background: var(--pb-paper); clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%); opacity: 0; }
.check input:checked { background: var(--fg); }
.check input:checked::after { opacity: 1; }
.check input.is-invalid { border-color: #B3261E; }
.check input:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.form .btn-row { gap: 8px 24px; }
.form .ul, .page-intro .ul, .qa-ai .ul { background-size: 100% 1px; }
.field-spacer { display: block; }

/* ---------- Contact: details left, form right ---------- */
.contact-grid { display: grid; grid-template-columns: 450px minmax(0, 1fr); gap: 100px; align-items: start; }
.details { display: flex; flex-direction: column; gap: 40px; }
.detail { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.detail .quote { overflow-wrap: anywhere; }
.detail .lead { max-width: 450px; }
.details .margin { max-width: 360px; }

/* ---------- Footer: Cookie settings control ---------- */
.ftr-legal button.ul { font: inherit; color: inherit; }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1279px) {
  .sg, .contact-grid { grid-template-columns: 1fr 1.6fr; gap: 56px; }
  .def { grid-template-columns: 56px 200px minmax(0, 1fr); }
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .details { max-width: 640px; }
}
@media (max-width: 809px) {
  .sg, .cl-grid, .form-row { grid-template-columns: minmax(0, 1fr); }
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--gap-cards-x); }
  .sg { gap: 48px; }
  .def { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; }
  .def p { grid-column: 2; }
  .ph-wide { aspect-ratio: 4 / 3; }
  .page-head .wrap { gap: 28px; }
  .tabs { gap: 8px 20px; }
  .soon-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .field-spacer { display: none; }
  .form { gap: 24px; }
  .page-head .page-intro .ul { overflow-wrap: anywhere; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .feat .ph, .tab, .check input { transition: none; }
}
