/* Stellar brand tokens on the design system (the client's blue #1D4ED8 as action and accent, navy ink,
   Mona Sans with Geist Mono), and the page CSS the kit leaves to the site: logo, hero window, app frame,
   bento panels, stack band, offices, forms, articles, careers. */

:root {
  --p-bg: #ffffff; --p-surface: #f2f4fa; --p-ink: #0b1530; --p-muted: #4a5573;
  --p-accent: #1d4ed8; --p-accent-ink: #ffffff; --p-action: #1d4ed8; --p-action-ink: #ffffff;
  --p-inv-bg: #050b1f; --p-inv-surface: #0d1630; --p-inv-ink: #f4f7ff; --p-inv-muted: #a7b1c8;
  --p-inv-accent: #38bdf8; --p-inv-accent-ink: #050b1f; --p-inv-action: #2563eb; --p-inv-action-ink: #ffffff;
  --grad-accent: linear-gradient(92deg, #3b82f6 0%, #22d3ee 100%);
  --grad-action: linear-gradient(92deg, #1d4ed8 0%, #0ea5e9 100%);
  --font-display: "Sora", "Mona Sans", system-ui, sans-serif;
  --font-text: "Mona Sans", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.03em;
  --display-tracking-xl: -0.04em;
  --display-stretch: 104%;
  --ly-scale: 0.96;
  /* names the plugin restyle in jobs.css reads */
  --paper: var(--bg); --paper-ink: var(--ink); --paper-muted: var(--muted); --gold: var(--action); --gold-deep: var(--action);
}

/* skip link: first in the bar, off screen until focused */
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { width: auto; height: auto; clip-path: none; padding: var(--s-2) var(--s-4); background: var(--bg); color: var(--ink); z-index: 20; outline: 2px solid var(--action); }

/* logo */
.nav__logo img { height: 32px; width: auto; display: block; }
.closing .nav__logo img { height: 36px; }

/* home hero: the window's columns, the result card, the logo dock */
.hero__art { isolation: isolate; }
.hero__art > .ly-piece--note { left: var(--s-6); bottom: var(--s-6); width: 300px; z-index: 2; }
.hero__proof { font-size: var(--t-small); color: var(--muted); }
.ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 64px 104px; }
.ly-piece--main .d-main { padding-right: var(--ly-cut-room); }
.d-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.d-note__line { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: #3d4659; border-top: 1px solid rgb(0 0 0 / .06); }
.d-note__line:first-of-type { border-top: 0; }
.d-note__line i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; background: #e6edff; color: #1d4ed8; font-style: normal; font-size: 12px; font-weight: 700; }
.d-note__line b { font-weight: 500; color: #0b1530; }
.d-thumb { display: grid; place-items: center; font: 500 12px/1 var(--font-text); color: #0b1530; }
.client-logos { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6) var(--s-8); list-style: none; margin: 0; padding: 0; }
.client-logos img { height: 28px; width: auto; }
.hero__dock .client-logos { gap: var(--s-5) var(--s-6); margin-top: var(--s-3); }
.hero__dock .client-logos img { height: 24px; }

/* the talent desk app frame */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}

/* services bento: panels lit like the hero ground; a linked title covers its card */
.bento .panel { --p-h: 300px; background:
    radial-gradient(80% 70% at 20% 0%, color-mix(in oklab, var(--ground-surface) 70%, white), transparent 70%),
    radial-gradient(70% 60% at 100% 100%, color-mix(in oklab, var(--ground-surface) 80%, #c7d5ff), transparent 70%),
    var(--ground-surface); }
.bento .d-card { box-shadow: 0 0 0 1px rgb(11 21 48 / .06), 0 14px 32px -18px rgb(11 21 48 / .35); }
.bento .stage > .at-rise { --ax: 20px; --ay: 28px; --fit-max: 300px; }
.bento .d-note__line:first-of-type { border-top: 1px solid rgb(0 0 0 / .06); }
.bento > .card { grid-column: 1 / -1; position: relative; transition: transform var(--dur, .2s) var(--ease, ease); }
.bento > .card:has(.bento__link):hover { transform: translateY(-2px); }
.bento__link { color: inherit; text-decoration: none; }
.bento__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.bento__link:focus-visible { outline: none; }
.bento > .card:has(.bento__link:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
@media (min-width: 1024px) { .bento > .card { grid-column: auto / span 4; } .bento > .card--wide { grid-column: auto / span 8; } }
.d-bar { height: 6px; border-radius: 3px; background: #e3e8f4; overflow: hidden; }
.d-bar i { display: block; height: 100%; width: var(--v); background: #1d4ed8; border-radius: inherit; }

/* stack band */
.stack-grid { margin-top: var(--s-5); }
.stack-proof { margin-top: var(--s-7); }
.stat-aside .t-stat { display: block; }
a.ic-cell { transition: transform var(--dur, .2s) var(--ease, ease); }
a.ic-cell:hover { transform: translateY(-2px); }
.quote .person { display: grid; gap: var(--s-3); justify-items: start; }
.quote .person img.person__logo { width: auto; height: 36px; object-fit: contain; background: #fff; padding: 6px 10px; border-radius: var(--r-sm); }

/* closing */
.closing__links .footer__lede { max-width: 32ch; }
.close__word { line-height: 1; padding-top: .12em; padding-bottom: .08em; margin-bottom: var(--s-5); }

.offices { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-4); }
.mail-line { display: flex; gap: var(--s-3); align-items: center; }
.offices li { display: flex; gap: var(--s-3); align-items: center; font-size: var(--t-lead); }

/* tablet: the services and stack take two screens, the bento two columns */
@media (min-width: 640px) and (max-width: 1023px) {
  main > #services, main > #stack { --h: 2 !important; }
  .bento > .card { grid-column: auto / span 4; }
  .group .bento > .card { grid-column: 1 / -1; }
  .bento .panel { --p-h: 220px; }
}
/* a phone: four logos, no head-count line (it is in the stack band), short bento panels,
   compact stack cells, four questions */
@media (max-width: 639px) {
  .ly-piece--main .d-row { grid-template-columns: 36px minmax(0, 1fr) 104px; }
  .ly-piece--main .d-row .num { display: none; }
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .hero__dock > .t-small, .hero__proof { display: none; }
  .d-win__bar > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .hero__dock .client-logos li:nth-child(n+5) { display: none; }
  .hero__dock .client-logos img { height: 20px; }
  .hero__dock .client-logos { gap: var(--s-4) var(--s-5); }
  .hero__art { min-height: 184px; margin-top: var(--s-5); }
  .bento .d-bar { display: none; }
  .bento .panel { --p-h: 116px; }
  .bento .card > .panel { margin-top: var(--s-5); }
  .bento .card > p { margin-bottom: 0; }
  .bento .stage > .at-rise { --ay: 16px; --ax: 16px; }
  #services h2 .muted { display: none; }
  #stack .ic-cell { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s-3); padding: var(--s-3); }
  #stack .ic-cell__meta, #stack .stat-aside { display: none; }
  #stack .stack-proof { margin-top: var(--s-6); }
  #questions .faq__item { padding-block: var(--s-3); }
  #questions .faq__item:nth-child(n+5), #contact-form .offices li + li { display: none; }
  .closing__cta .btn { width: 100%; }
  #contact-form .offices { margin-top: var(--s-3); }
  main > #contact-form { --hm: 2; }
  #roles .wrap > .ic-grid { align-self: start; }
  #roles .ic-cell:nth-child(n+7) { display: none; }
}

/* inner page header: the h1 and its intro, under the fixed bar */
main > section.page-head, main > article > header.page-head { --h: auto; min-height: 0; padding-bottom: var(--s-8); }
main > article > header.page-head { padding-top: var(--padt); }
.page-head h1 { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking-xl); font-size: var(--t-h1); line-height: 1.05; max-width: 18ch; }
.page-head .section-head { max-width: 860px; }
main > section.page-head--tall { min-height: 80vh; }
.crumbs a { color: inherit; }
.crumbs { color: var(--muted); }

/* sections written by the theme size to their content */
main > .section:not(.g2m):not(.g2):not(.hero) { --h: auto; }
.cards { row-gap: var(--s-5); list-style: none; padding: 0; margin: 0; }
.cards > .card { height: 100%; }
.card__lead { font-weight: 500; }
.card__glyph { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--surface); color: var(--action); }
.ground-surface .card__glyph { background: var(--bg); }
.statement { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.3; letter-spacing: var(--display-tracking); }
.stats--rule { margin-top: var(--s-9); padding-top: var(--s-7); border-top: 1px solid var(--line); }
.steps .step-num { margin-bottom: var(--s-2); }
.tool-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3); }
.tool-list li { display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 var(--s-4) 0 var(--s-2); border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-small); background: var(--bg); }
.tool-list li:not(:has(.ic-tile)) { padding-left: var(--s-4); }
.tool-list .ic-tile { width: 28px; height: 28px; }
.tool-list .ic-tile img { max-width: 20px; max-height: 20px; }
.svc .checks { list-style: none; padding: 0; margin: 0; font-size: var(--t-lead); }
.contact-rows { list-style: none; padding: 0; margin: 0; }

/* contact form (Contact Form 7 with the theme's form body) */
.wpcf7 { margin: 0; }
.wpcf7-form.form { display: block; }
.form-panel { background: var(--surface); border-radius: var(--r-lg); padding: var(--s-7); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.form-panel > * { min-width: 0; }
.form-panel > :is(.field--full, .btn-row, p) { grid-column: 1 / -1; margin: 0; }
.form-panel .field { font-size: var(--t-label); }
.form-panel .field :is(input, textarea) { width: 100%; height: 48px; padding: 0 var(--s-4); font: 400 16px/1.5 var(--font-text); color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); }
.form-panel .field textarea { height: 120px; padding: var(--s-3) var(--s-4); resize: vertical; }
@media (min-width: 1280px) { .form-panel .field textarea { height: 152px; } }
.form-panel .field :is(input, textarea):focus-visible { outline: 2px solid var(--action); outline-offset: 1px; }
.form-panel fieldset { border: 0; padding: 0; margin: 0; }
.form-panel legend { padding: 0; margin-bottom: var(--s-2); font-weight: 500; }
.form-panel .picks .wpcf7-checkbox { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.form-panel .picks .wpcf7-list-item { margin: 0; }
.form-panel .picks label { display: inline-flex; align-items: center; gap: var(--s-2); height: 40px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font: 400 var(--t-small)/1 var(--font-text); cursor: pointer; }
.form-panel .picks label:has(input:checked) { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.form-panel .picks input { width: 16px; height: 16px; accent-color: var(--action); }
.form-panel .wpcf7-submit { border: 0; cursor: pointer; }
.form-panel .wpcf7-spinner { margin: 0 0 0 var(--s-3); }
.wpcf7-not-valid-tip { font-size: var(--t-small); color: #b42318; margin-top: var(--s-1); }
.wpcf7 form .wpcf7-response-output { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-size: var(--t-small); }
@media (max-width: 639px) {
  .form-panel { grid-template-columns: minmax(0, 1fr); padding: var(--s-5); gap: var(--s-4); }
  .form-panel .field textarea { height: 96px; }
}

/* articles */
.post-card { display: grid; gap: var(--s-3); align-content: start; color: inherit; text-decoration: none; transition: transform var(--dur, .2s) var(--ease, ease); }
.post-card:hover { transform: translateY(-2px); }
.post-card h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; margin: 0; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r-md); background: var(--surface); margin-bottom: var(--s-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease, ease); }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.topics { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-7); }
.topics .pill { text-decoration: none; color: var(--ink); }
.topics .pill[aria-current="page"] { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.pager { margin-top: var(--s-8); display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 var(--s-3); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.pager .current { background: var(--action); color: var(--action-ink); border-color: var(--action); }
.article__img { margin-top: var(--s-7); border-radius: var(--r-lg); overflow: hidden; }
.article__img img { width: 100%; height: auto; display: block; }
main :is(.article__body, .job-body, .job-list).section { padding-top: 0; }
.prose { max-width: 70ch; font-size: 18px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose :is(h2, h3, h4) { font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.2; margin-top: 1.8em; }
.prose h2 { font-size: var(--t-h3); }
.prose h3 { font-size: 22px; }
.prose a { color: var(--action); text-underline-offset: 3px; }
.prose img, .prose figure { max-width: 100%; height: auto; border-radius: var(--r-md); }
.prose :is(ul, ol) { padding-left: 1.3em; }
.prose blockquote { margin-left: 0; padding-left: var(--s-5); border-left: 2px solid var(--line-strong); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose :is(th, td) { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--line); text-align: left; }

/* careers */
.job-specs { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* WordPress basics */
.alignleft { float: left; margin: 0 var(--s-5) var(--s-4) 0; }
.alignright { float: right; margin: 0 0 var(--s-4) var(--s-5); }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption.wp-element-caption { font-size: var(--t-small); color: var(--muted); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* signed-in editors: the fixed bar sits under the WordPress toolbar */
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }

/* stand-in photograph in the intro split */
.split-photo { margin: var(--s-5) 0 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease, ease); }
.split-photo:hover img { transform: scale(1.02); }

/* contact page on a phone: the heading, then the form, then the details */
@media (max-width: 639px) {
  .contact-split > .stack-5 { display: contents; }
  .contact-split > .stack-5 > *, .contact-split > .start-7 { grid-column: 1 / -1; min-width: 0; }
  .contact-split > .stack-5 > .section-head { order: 1; }
  .contact-split > .start-7 { order: 2; margin-block: var(--s-5); }
  .contact-split .contact-rows, .contact-split .contact-lines { order: 3; margin-bottom: var(--s-6); }
  .contact-split .offices-clock { order: 4; }
}

/* tablet: the form sits in a half-width column, so it is set tighter to keep the section on one screen */
@media (min-width: 640px) and (max-width: 1023px) {
  .form-panel { padding: var(--s-5); gap: var(--s-4); }
  .form-panel .field textarea { height: 96px; }
  .form-panel .picks label { height: 36px; padding: 0 var(--s-3); }
}

/* inner page hero with a side card (Services, About) */
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-8); align-items: center; }
.page-head--card .section-head { max-width: none; }
.page-head__art { position: relative; padding: var(--s-7) var(--s-6) 76px; border-radius: var(--r-lg); isolation: isolate;
  background: radial-gradient(80% 70% at 15% 0%, #ffffff, transparent 70%), radial-gradient(70% 70% at 100% 100%, #c7d5ff, transparent 70%), linear-gradient(135deg, #e9efff, #dbe5ff); }
.hero-card { position: relative; }
.hero-card__win { max-width: 480px; margin-inline: auto; }
.hero-card__rows { display: grid; padding: 6px 14px 10px; }
.hero-card__row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgb(0 0 0 / .07); font-size: 13px; }
.hero-card__row:last-child { border-bottom: 0; }
.hero-card__row .d-thumb { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #eef2ff; color: #1d4ed8; font: 600 12px/1 var(--font-text); }
.hero-card__name { min-width: 0; }
.hero-card__name b { display: block; font-weight: 500; color: #16181a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-card__name small { color: #7b8086; font-size: 12.5px; }
.hero-card__note { position: absolute; left: calc(-1 * var(--s-5)); bottom: -56px; width: min(320px, 80%); }

/* intro statement without the stock photo */
.split .statement { margin: 0; }

/* service rows: copy on one side, the work's status card on the other */
.svc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-9); align-items: center; }
.svc--flip .svc__art { order: -1; }
.svc__eyebrow { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); margin: 0; }
.svc__eyebrow .card__glyph { width: 40px; height: 40px; }
.svc__art { display: grid; place-items: center; min-height: 320px; padding: var(--s-7); border-radius: var(--r-lg);
  background: radial-gradient(80% 70% at 20% 0%, #ffffff, transparent 70%), radial-gradient(70% 60% at 100% 100%, #c7d5ff, transparent 70%), #e9efff; }
.svc__art .d-card { width: min(420px, 100%); padding: 20px 22px; font-size: 15px; box-shadow: 0 0 0 1px rgb(11 21 48 / .06), 0 18px 40px -20px rgb(11 21 48 / .4); }
.svc__art .d-card h5 { font-size: 16px; }
.svc__art .d-note__line { font-size: 14.5px; padding: 10px 0; }
.svc__art .d-note__line:first-of-type { border-top: 1px solid rgb(0 0 0 / .06); }

@media (max-width: 899px) {
  .page-head__grid, .svc__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .svc--flip .svc__art { order: 0; }
  .svc__art { min-height: 240px; padding: var(--s-6); }
  .hero-card__note { left: var(--s-4); bottom: -52px; }
}
@media (max-width: 639px) {
  .page-head__art { padding: var(--s-5) var(--s-4) 68px; }
  .hero-card__row { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-card__row .d-thumb { display: none; }
  .hero-card__row .d-chip { font-size: 12px; }
}
