/* ─────────────────────────────────────────────
   Company pages: /work/, /about/, /contact/
   Builds on base.css, home.css and pages.css.
   ───────────────────────────────────────────── */

/* Breadcrumb sits in a <nav>, so give the label after it some room */
.page-hero nav + .label { margin-top: 28px; }

/* ── Work: hero aside ─────────────────────────── */
.wk-aside { display: grid; gap: 0; padding: 8px 26px; }
.wk-aside div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 0; }
.wk-aside div + div { border-top: 1px solid var(--on-dark-line); }
.wk-aside dt { font-family: var(--display); font-weight: var(--dw); font-size: 1.9rem; letter-spacing: var(--dt); line-height: 1; color: var(--lav); }
.wk-aside dd { color: var(--on-dark-muted); font-size: .95rem; text-wrap: balance; }

/* ── Work: filter bar ─────────────────────────── */
.wk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 32px; }
.wk-bar-title { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-right: auto; }
.wk-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.wk-filter button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px;
  background: none; cursor: pointer; font: 600 .92rem var(--font); color: var(--muted); transition: background .25s, color .25s;
}
.wk-filter button:hover { color: var(--ink); }
.wk-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.wk-filter button[aria-pressed="true"] .dot-wp { background: var(--lav); }
.wk-count { flex-basis: 100%; order: 3; font-size: var(--fs-small); color: var(--faint); }
@media (min-width: 761px) { .wk-count { flex-basis: auto; order: 0; } }

/* ── Work: project grid ───────────────────────── */
/* Six columns: wide cards take half a row, the rest a third */
.wk-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.wk { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; border-radius: 18px; background: var(--card); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.wk[hidden] { display: none; }
.wk-wide { grid-column: span 3; }
.wk:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35); }
.wk:not([hidden]) { animation: fade .35s var(--ease); }

.wk-thumb { position: relative; overflow: hidden; aspect-ratio: 16 / 9; border-bottom: 1px solid var(--line); }
.wk-ph { display: grid; place-items: center; aspect-ratio: 16 / 7; background-image: radial-gradient(rgba(0, 0, 0, .09) 1px, transparent 1.2px); background-size: 14px 14px; }
.wk-ph .ms { font-size: 56px; font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 48; }
.wk-ph-tag { position: absolute; left: 14px; bottom: 12px; font: 500 .72rem var(--mono); letter-spacing: .02em; opacity: .8; }
.wk-ph-wp { background-color: var(--wp-soft); color: var(--purple-600); }
.wk-ph-hs { background-color: var(--hs-soft); color: var(--hs-ink); }
.wk-ph-care { background-color: var(--care-soft); color: var(--care-ink); }
.wk-ph-lav { background-color: var(--lav); color: var(--ink); }
.wk-ph-paper { background-color: var(--paper-2); color: var(--ink); }
.wk-ph-ink { background-color: var(--ink); color: var(--lav); background-image: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.2px); }
.wk-ph-ink .wk-ph-tag { color: #fff; }

.wk-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.wk-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .85rem; color: var(--faint); }
.wk-plat { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-weight: 650; font-size: .8rem; }
.wk-plat-wp { background: var(--wp-soft); color: var(--purple-600); }
.wk-plat-hs { background: var(--hs-soft); color: var(--hs-ink); }
.wk-plat-int { background: var(--care-soft); color: var(--care-ink); }
.wk-status { margin-left: auto; padding: 3px 9px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .74rem; font-weight: 650; color: var(--muted); }
.wk h3 { font-family: var(--display); margin-top: 14px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
.wk-wide h3 { font-size: 1.6rem; }
.wk-body > p:not(.wk-meta):not(.wk-win) { margin-top: 10px; color: var(--muted); font-size: .96rem; }
.wk-win { display: inline-flex; align-items: center; align-self: flex-start; gap: 8px; margin-top: 16px; padding: 6px 12px; border-radius: 10px; background: var(--care-soft); color: var(--care-ink); font-weight: 650; font-size: .88rem; }
.wk-win .ms { font-size: 18px; }
.wk-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 20px; }
.wk-stack li { padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); font: 500 .74rem var(--mono); color: var(--muted); }

@media (max-width: 1000px) {
  .wk, .wk-wide { grid-column: span 3; }
  .wk-ph { aspect-ratio: 16 / 8; }
}
@media (max-width: 640px) {
  .wk-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wk, .wk-wide { grid-column: auto; }
  .wk-wide h3 { font-size: 1.4rem; }
  .wk-body { padding: 20px 20px 22px; }
  .wk-ph { aspect-ratio: 16 / 6; }
  .wk-filter { display: flex; width: 100%; border-radius: 16px; }
  .wk-filter button { flex: 1 1 0; justify-content: center; padding: 0 10px; border-radius: 12px; }
}

/* Why no logos: ask callout */
.wk-ask { display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; padding: 22px 24px; border-radius: 16px; background: var(--hs-soft); }
.wk-ask .ms { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; color: var(--hs-ink); font-size: 22px; }
.wk-ask p { color: var(--text); }

/* ── About: hero photo ────────────────────────── */
.ab-hero { align-items: center; }
.ab-hero h1 { max-width: 16ch; }
.ab-photo { position: relative; overflow: hidden; border-radius: 28px 28px 28px 8px; aspect-ratio: 4 / 3.4; background: var(--paper-2); }
.ab-photo img { width: 100%; height: 100%; object-fit: cover; }
.ab-photo::after { content: ''; position: absolute; right: -1px; top: -1px; width: 22%; aspect-ratio: 1; border-radius: 0 0 0 28px; background: var(--paper); }
.ab-photo::before { content: ''; position: absolute; z-index: 1; right: 0; top: 0; width: 13%; aspect-ratio: 1; border-radius: 0 0 0 18px; background: var(--hs); }

/* About: story */
.ab-story { display: grid; gap: 20px; font-size: 1.05rem; color: var(--muted); max-width: 62ch; }
.ab-big { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -.015em; line-height: 1.35; color: var(--text); }
.ab-quote { margin-top: 16px; padding: 30px 30px 26px; border-radius: 20px; background: var(--purple); color: #fff; }
.ab-quote > .ms { font-size: 40px; color: var(--lav); font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 40; }
.ab-quote blockquote p { margin-top: 8px; font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.02em; line-height: 1.3; }
.ab-quote figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: .92rem; color: #fff; }
.ab-quote figcaption strong { display: block; margin-bottom: 2px; font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; }

/* About: principles with the facts on top */
.ab-principles { align-items: end; row-gap: 56px; }
.ab-principles .facts { margin-top: 0; padding: 0 0 48px; border-top: 0; border-bottom: 1px solid var(--on-dark-line); }
.ab-principles .facts dt { color: var(--lav); }
.ab-principles .facts div + div { border-left-color: var(--on-dark-line); }
.ab-principles-head { align-self: start; }
.ab-principles-head h2 { margin-top: 14px; max-width: 14ch; }
.ab-principles .rules p { color: var(--on-dark-muted); }

/* About: remote block with the mosaic first */
.ab-remote { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ab-remote .mosaic::before { background: var(--care); }
.ab-habits li:nth-child(4) .ms { background: var(--ink); color: var(--lav); }
@media (max-width: 960px) {
  .ab-remote { grid-template-columns: minmax(0, 1fr); }
  .ab-remote .remote-copy { order: -1; }
}

/* About: stack */
/* Two platforms on the first row, three supporting skills on the second */
.ab-stack { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.ab-stack > * { grid-column: span 2; }
.ab-tools { padding: 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ab-tools-wp { background: var(--wp-soft); border-color: transparent; }
.ab-tools-hs { background: var(--hs-soft); border-color: transparent; }
.ab-tools-wf { background: var(--paper-2); border-color: var(--grey); }
.ab-tools-care { background: var(--care-soft); border-color: transparent; }
.ab-tools h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; }
.ab-tools h3 .dot { width: 10px; height: 10px; }
.ab-tools h3 .ms { font-size: 22px; color: var(--purple); }
.ab-tools-care h3 .ms { color: var(--care-ink); }
.ab-tools ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.ab-tools li { padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line); font-size: .86rem; }
@media (max-width: 1000px) { .ab-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-stack > * { grid-column: span 1; } }
@media (max-width: 560px) { .ab-stack { grid-template-columns: minmax(0, 1fr); } }

/* ── Contact ──────────────────────────────────── */
.ct-hero { padding-bottom: 72px; }
.ct-hero h1 { max-width: 14ch; }
.ct-hero .lead { max-width: 56ch; }
.ct-sec { padding-top: 72px; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; }
.ct-card { padding: 36px 36px 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35); }
.ct-title { font-size: clamp(1.6rem, 2.6vw, 2rem); }
.ct-sub { margin-top: 8px; color: var(--muted); }
.ct-form { margin-top: 28px; gap: 22px; }
.ct-req { color: var(--hs-ink); }
.ct-opt { font-weight: 400; color: var(--faint); }
.ct-set { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-set legend { padding: 0; margin-bottom: 10px; }
.ct-set .choice span { gap: 8px; }
.ct-set .choice input:checked + span .dot { box-shadow: 0 0 0 2px #fff; }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.ct-privacy { font-size: .88rem; color: var(--faint); }
.ct-privacy a { color: var(--purple); text-underline-offset: 3px; }
.ct-status:empty { display: none; }
.ct-status { display: flex; gap: 12px; align-items: flex-start; }
.ct-status .ms { font-size: 22px; margin-top: 1px; }
.ct-status a { color: inherit; font-weight: 650; text-underline-offset: 3px; }

.ct-side { display: grid; gap: 16px; position: sticky; top: 100px; }
.ct-side .clock { margin-top: 0; }
.ct-side-h { font-family: var(--font); font-size: 1.05rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }
.ct-next { padding: 26px 24px; border-radius: 18px; background: var(--wp-soft); }
.ct-steps { display: grid; gap: 16px; margin-top: 18px; }
.ct-steps li { display: flex; gap: 14px; align-items: flex-start; }
.ct-steps strong { display: block; font-weight: 650; }
.ct-steps li span:not(.ct-n) { display: block; font-size: .92rem; color: var(--muted); }
.ct-n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--purple); color: #fff; font: 500 .78rem var(--mono); }
.ct-info { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ct-info > .ms { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--hs-soft); color: var(--hs-ink); font-size: 21px; }
.ct-info p { margin-top: 4px; font-size: .94rem; color: var(--muted); }
.ct-info a { color: var(--purple); font-weight: 650; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ct-info-nda { background: var(--care-soft); border-color: transparent; }
.ct-info-nda > .ms { background: #fff; color: var(--care-ink); }
.ct-info-nda p { color: var(--text); }

@media (max-width: 960px) {
  .ct-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-side { position: static; }
}
@media (max-width: 560px) {
  .ct-card { padding: 26px 18px 24px; border-radius: 18px; }
  .ct-submit .btn { width: 100%; }
  .ct-set .choice label { flex: 1 1 auto; }
  .ct-set .choice span { justify-content: center; width: 100%; }
}
.ct-set .choice span.dot { min-height: 0; padding: 0; border: 0; width: 8px; height: 8px; cursor: inherit; }

/* Team: dark band, leadership cards and a compact crew list */
.ab-team { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.ab-team-head { position: sticky; top: 120px; }
.ab-team-head h2 { margin-top: 14px; max-width: 12ch; }
.ab-team-head > p:not(.label) { margin-top: 18px; color: var(--on-dark-muted); max-width: 34ch; }
.ab-team-note { display: inline-block; margin-top: 28px !important; color: #fff !important; }
.ab-team-kicker { margin-bottom: 18px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lav); }
.ab-team-kicker:not(:first-child) { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--on-dark-line); }
.ab-leads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ab-lead-photo { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 22px 22px 22px 6px; background: rgba(255, 255, 255, .06); }
.ab-lead-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.ab-lead:hover .ab-lead-photo img { transform: scale(1.04); }
.ab-area { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: .78rem; font-weight: 600; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ab-area .ms { font-size: 16px; color: var(--lav); }
.ab-lead h3 { margin-top: 16px; font-family: var(--display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.ab-lead p { margin-top: 2px; font-size: .92rem; color: var(--on-dark-muted); }
.ab-lead-tbd .ab-lead-photo { outline: 2px dashed var(--hs); outline-offset: 4px; }
.ab-crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ab-leads { align-items: start; }
.ab-crew-item { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--on-dark-line); }
.ab-crew-item picture { flex: none; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; }
.ab-crew-item img { width: 100%; height: 100%; object-fit: cover; }
.ab-crew-item div { flex: 1; min-width: 0; }
.ab-crew-item h3 { font-family: var(--display); font-size: .98rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; color: #fff; }
.ab-crew-item p { font-size: .86rem; line-height: 1.4; color: var(--on-dark-muted); }
@media (prefers-reduced-motion: reduce) { .ab-lead-photo img { transition: none; } .ab-lead:hover .ab-lead-photo img { transform: none; } }
@media (max-width: 1100px) { .ab-crew { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 960px) { .ab-team { grid-template-columns: minmax(0, 1fr); gap: 40px; } .ab-team-head { position: static; } }
@media (max-width: 560px) { .ab-leads { grid-template-columns: minmax(0, 1fr); max-width: 340px; } }

/* Team bios: closed by default */
.ab-bio { margin-top: 10px; }
.ab-bio summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: .84rem; font-weight: 600; color: var(--lav); }
.ab-bio summary::-webkit-details-marker { display: none; }
.ab-bio summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.ab-bio[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.ab-bio summary:hover { color: #fff; }
.ab-bio p { margin-top: 8px !important; font-size: .9rem !important; line-height: 1.55; color: var(--on-dark-muted); }
.ab-crew-item .ab-bio { flex-basis: 100%; margin-top: 0; padding-left: 60px; }
.ab-crew-item .ab-bio p { margin-left: -60px; padding: 0 4px; }

/* About hero: video over the poster photo */
.ab-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.ab-video.is-playing video { opacity: 1; }
.ab-video .m-video-btn { z-index: 2; }
.ab-video .chip-float { z-index: 2; }
.ab-video::after { z-index: 1; }

/* Country name on each photo of the About mosaic */
.ab-remote .m-place { position: absolute; left: 10px; bottom: 10px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: rgba(10, 10, 20, .62); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .01em; backdrop-filter: blur(4px); }

/* Work: products we built and run */
.wk-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wk-body .more-link { margin-top: 18px; }
