/* Bracbort page CSS: only what the kit lacks. Tokens, grid, type, buttons and cards come from
   /assets/system.css; nothing here sets a new colour, radius, button or spacing scale. */

/* CMS-driven sections grow with their content (articles, service bodies, lists of any length);
   the home page keeps the kit's one-section-per-screen boxes. */
main > section.flow { height: auto; min-height: 0; padding: var(--padt) 0 calc(var(--padb) + var(--bar)); }
main > section.flow > .wrap { height: auto; }
section.page-head { padding-top: calc(var(--nav) + var(--s-8)); min-height: 60svh; }
section.page-head h1 { font-size: var(--t-h1); line-height: 1.04; max-width: 18ch; margin: 0; }
section.page-head .hero__lead { margin-top: var(--s-5); max-width: 62ch; font-size: var(--t-lead); line-height: 1.5; }

/* the hero's window: the automation run on the lit ground, as tall as the hero's content box */
.hero__media--ui { display: flex; }
.hero__media--ui > .frame { flex: 1; --ratio: 0; padding: clamp(16px, 3vw, 40px); }
.hero-ui > .stage { position: relative; inset: auto; width: 100%; display: flex; align-items: center; justify-content: center; }
.hero-ui .ui-pipe { width: min(100%, 520px); }
.hero__media > img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }
.hero--inner .hero__media { min-height: 420px; }
@media (max-width: 1023px) { .hero--inner .hero__media { min-height: 300px; } }

/* nav panel: real tool marks in each practice's card */
.menu-icons { display: flex; align-items: center; justify-content: center; gap: var(--s-5); background: var(--surface); }
.menu-icons img { width: 40px; height: 40px; object-fit: contain; }

/* home: the four practices, two screens */
#services .panel { --p-h: 300px; }
@media (max-width: 639px) { #services .panel { --p-h: 200px; } #services .ui-chat__day { display: none; } }
.card--link { color: inherit; text-decoration: none; }
.card--link p .muted { color: var(--muted); }

/* home: the agent diagram as the section's one framed visual */
.connect-frame { flex: 1 1 0; min-height: 320px; margin-top: var(--s-7); --ratio: 0; }
.connect-frame > .dg { width: 100%; height: 100%; }

/* real tool marks */
.icon-wall { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: var(--s-4) var(--gutter); }
.icon-wall li { display: flex; flex-direction: column; align-items: center; gap: var(--s-2); text-align: center; font-size: var(--t-small); padding: var(--s-4) var(--s-2); border-radius: var(--r-md); background: var(--bg); }
.icon-wall li img { width: 40px; height: 40px; object-fit: contain; }
.icon-wall--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-5); }
.icon-wall--rows { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icon-wall li small { display: block; color: var(--muted); }
@media (max-width: 1023px) { .icon-wall { grid-template-columns: repeat(6, minmax(0, 1fr)); } .icon-wall--rows, .icon-wall--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 639px) { .icon-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } .icon-wall li { font-size: 13px; } .icon-wall--rows, .icon-wall--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } #stack .icon-wall li:nth-child(n+13) { display: none; } }

/* figures from the database (counts of services, cases, industries, tools) */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); margin: var(--s-8) 0 0; }
.figures > div { display: grid; gap: var(--s-1); border-top: 1px solid var(--line); padding-top: var(--s-4); }
.figures dt { font-size: var(--t-small); color: var(--muted); }
.figures dd { margin: 0; }
@media (max-width: 639px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-6); } }

/* case and post cards */
.card--case, .card--post, .card--svc { color: inherit; text-decoration: none; }
.card--case { gap: var(--s-2); }
.card--case > .panel { --p-h: 260px; height: var(--p-h); flex: none; border-radius: var(--r-lg); overflow: hidden; position: relative; }
.card--case h3 { margin: 0; }
.case-grid, .post-grid, .svc-grid { row-gap: var(--s-7); }
.card--svc { gap: var(--s-3); }
.card--svc .link { margin-top: auto; padding-top: var(--s-3); }
.svc-icons { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.svc-icons img { width: 24px; height: 24px; object-fit: contain; }
@media (max-width: 1023px) { .svc-grid > .span-4, .case-grid > .span-4, .post-grid > .span-4, #work .grid > .span-4, #more .grid > .span-4, #cases .grid > .span-4 { grid-column: span 6; } }
@media (max-width: 639px) { .svc-grid > .span-4, .case-grid > .span-4, .post-grid > .span-4, #work .grid > .span-4, #more .grid > .span-4, #cases .grid > .span-4 { grid-column: 1 / -1; } }
#work .panel { --p-h: 340px; }
@media (max-width: 1023px) { #work .grid > .span-4:nth-child(3) { display: none; } }
@media (max-width: 639px) { #work .panel { --p-h: 200px; } #work .grid > .span-4:nth-child(n+2) { display: none; } }

/* lists */
.post-rows > li { display: block; }
.post-rows a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-5); color: inherit; text-decoration: none; }
.post-rows .rows__name { font-size: var(--t-card); }
.rows a { color: inherit; text-decoration: none; }
.rows--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.rows--cols > li:nth-child(2) { padding-top: 0; }
.rows--cols > li { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 639px) { .rows--cols { grid-template-columns: 1fr; } .rows--cols > li:nth-child(2) { padding-top: var(--s-4); } }
.insights-frame { --ratio: 0; min-height: 460px; }
.insights-frame > .stage { position: relative; width: 100%; }
@media (max-width: 1023px) { .insights-frame { display: none; } }
.faq--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); }
.faq--cols > .faq__item:nth-child(2) { padding-top: 0; }
@media (max-width: 1023px) { .faq--cols { grid-template-columns: 1fr; } .faq--cols > .faq__item:nth-child(2) { padding-top: var(--s-5); } }

/* filters (case studies, insights) */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-7) 0 var(--s-7); }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font: 500 var(--t-small)/1 var(--font-text); text-decoration: none; cursor: pointer; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.jump { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); margin-top: var(--s-6); }

/* rich text from the editor */
.prose { font-size: var(--t-body); line-height: 1.7; }
.prose > * { max-width: 68ch; }
.prose h2 { font-size: var(--t-h3); line-height: 1.2; margin: var(--s-7) 0 var(--s-4); font-family: var(--font-display); font-weight: var(--display-weight); }
.prose h3 { font-size: var(--t-card); margin: var(--s-6) 0 var(--s-3); font-weight: 500; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s-4); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: var(--s-2); }
.prose a { color: var(--action); text-underline-offset: 3px; }
.prose blockquote { margin: var(--s-6) 0; padding-left: var(--s-5); border-left: 2px solid var(--action); font-size: var(--t-lead); }
.prose blockquote cite { display: block; margin-top: var(--s-3); font-size: var(--t-small); font-style: italic; color: var(--muted); }
.prose img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose pre { background: var(--surface); padding: var(--s-4); border-radius: var(--r-md); overflow-x: auto; font: 14px/1.6 var(--font-mono); }
.prose code { font-family: var(--font-mono); font-size: .92em; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: var(--s-2) var(--s-3); text-align: left; }
.article-body { margin-top: var(--s-8); }
.article-cover { margin: var(--s-7) 0 0; }
.article-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-lg); }
.tags { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-7); }
.case-meta { display: grid; gap: var(--s-4); align-content: start; }
.case-meta p { margin: 0; }
.t-h3 { font-size: var(--t-h3); line-height: 1.2; font-family: var(--font-display); font-weight: var(--display-weight); margin: 0; }
.price { margin-top: var(--s-5); }
.contact-rows { margin-top: var(--s-7); }
textarea { width: 100%; min-height: 120px; font: inherit; font-size: 16px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); resize: vertical; }
select { width: 100%; height: 48px; font: inherit; font-size: 16px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.preview-bar { position: fixed; z-index: 20; bottom: 16px; left: 50%; transform: translateX(-50%); margin: 0; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: 999px; font-size: 14px; }
.preview-bar a { color: inherit; }
.insights-frame { align-items: center; }
.insights-frame .stage > .at-rise { position: relative; left: auto; top: auto; bottom: auto; right: auto; transform: none; margin: 0 auto; width: min(100%, 520px); }
#faq .faq--home { max-width: none; }
.close__word { line-height: 1.1; padding-block: 0.04em 0.08em; overflow: visible; }
.insights-frame { min-height: 520px; }
/* inner heroes: a smaller headline, and fragments that rise from the frame's foot fill the frame */
.hero--inner h1 { font-size: clamp(38px, 1.9vw + 26px, 56px); line-height: 1.05; }
.hero-ui > .stage:has(> .at-rise) { position: absolute; inset: 0; display: block; }
.hero--inner .hero__media--ui > .frame { min-height: 460px; }
section.page-head h1 { font-size: clamp(38px, 2.2vw + 24px, 60px); line-height: 1.08; padding-bottom: 0.06em; text-box: none; }
section.page-head .hero__lead { margin-top: var(--s-6); }
section.article-head h1 { max-width: 22ch; }
main > article > section.flow { padding: calc(var(--nav) + var(--s-8)) 0 calc(var(--padb) + var(--bar)); }
@media (max-width: 359px) { header.nav .nav__bar > .nav__actions { display: none; } }
.insights-photo { min-height: 460px; }
@media (max-width: 639px) { .insights-photo { min-height: 260px; margin-top: var(--s-6); } }
.faq-visual { margin-top: var(--s-7); --ratio: 0; min-height: 340px; padding: var(--s-4); }
.faq-visual > .dg { width: 100%; }
@media (max-width: 639px) { .faq-visual { min-height: 260px; } }

/* ---- alignment fixes (desktop and laptop screens) ---- */
/* interface windows in hero frames and in the steps frame: drawn in place, centred, never risen from the foot */
.hero-ui > .stage:has(> .at-rise) { position: relative; inset: auto; display: flex; align-items: center; justify-content: center; width: 100%; }
.hero-ui .at-rise, .mo-pc__visual--lit .at-rise { position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none; opacity: 1; margin: 0 auto; width: min(100%, var(--fit-max, 480px)); }
.hero-ui .stage, .mo-pc__visual--lit .stage { position: relative; inset: auto; width: 100%; height: auto; display: flex; justify-content: center; -webkit-mask-image: none; mask-image: none; }
.hero-ui .stage::after, .mo-pc__visual--lit .stage::after { display: none; }
.mo-pc__visual--lit > .ui { width: min(100%, 520px); }
@media (max-height: 820px) and (min-width: 1024px) { .mo-pc__visual--lit .ui { zoom: 0.88; } }
/* the steps line up with the heading above them; the step bar sits in the margin */
@media (min-width: 1024px) { [data-moment="pinned-chapters"].is-live .mo-pc__step { margin-left: calc(-1 * (var(--s-5) + 2px)); } }
/* short laptop screens: the stack shows two rows of logos so its figures stay inside the section */
@media (min-width: 1024px) and (max-height: 820px) {
  #stack .icon-wall li:nth-child(n+17) { display: none; }
  #stack .icon-wall { margin-top: var(--s-6); }
  #stack .figures { margin-top: var(--s-6); }
}
/* lists in page text keep their bullets and numbers */
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--muted); }
/* a label over each column, on one line */
.col-label { margin: 0 0 var(--s-4); }
.icon-wall--sm { margin-top: 0; }
/* tablets and phones: inner heroes and the home services grow with their content instead of overlapping the next section */
@media (max-width: 1023px) {
  main > section.hero--inner { height: auto; min-height: 100svh; }
  .hero--inner .hero__media--ui > .frame { min-height: 320px; }
}
@media (max-width: 639px) {
  main > section#services.g2 { height: auto; min-height: calc(2 * 100lvh); }
  main > section#services.g2 > .wrap { height: auto; row-gap: var(--s-8); }
  .hero--inner .hero__media--ui > .frame { min-height: 280px; }
}
@media (max-width: 639px) {
  #services .panel { --p-h: 280px; overflow: hidden; }
  .hero--inner .hero__media, .hero--inner .hero__media--ui > .frame { height: auto; min-height: 0; }
  .hero--inner .hero__media--ui > .frame { padding: var(--s-5) var(--s-4); }
}
@media (max-width: 1023px) {
  .hero--inner .hero__media.hero__media--ui { height: auto !important; max-height: none !important; }
  .hero--inner .hero__media--ui > .frame.hero-ui { height: auto !important; max-height: none !important; }
}
@media (max-width: 1023px) { .hero--inner .hero__media.hero__media--ui { flex: none !important; } }
/* the footer wordmark: its ink starts on the page's left edge and spans the full content width at every size */
.close--word { container-type: inline-size; }
.close--word .close__word { font-size: 27.7cqi; line-height: 0.8; letter-spacing: -0.045em; white-space: nowrap; margin: 0 0 0 -0.0766em; padding: 0.08em 0 0.03em; overflow: visible; }
footer.closing { height: auto; min-height: 100vh; min-height: 100svh; }
