/* ==========================================================================
   2026 design system — blog, portfolio, careers, 404 and policy pages
   (phase 3). Loads after ak-2026-base.css and uses its tokens, buttons,
   FAQ and form styles. Classes are prefixed .pg-; a few legacy class names
   are styled on purpose because assets/js/contact/contact-shrt-cont.js
   still builds the blog cards and the read-aloud widget with them.
   ========================================================================== */

.pg {
  font-family: var(--ak26-font);
  color: var(--ak26-ink);
}

.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg h1, .pg h2, .pg h3, .pg h4 { margin: 0; text-transform: none; letter-spacing: -0.3px; }
.pg p { margin: 0; }
.pg ul, .pg ol { margin: 0; padding: 0; list-style: none; }
.pg a { color: var(--ak26-teal-deep); }
/* Buttons keep their own colours: the link rule above must not win over the pill styles. */
.pg a.ak2026-pill-btn { color: var(--ak26-ink); }
.pg a.ak2026-pill-btn--filled, .pg a.ak2026-pill-btn--filled:hover { color: #fff; }
.pg a.v2-btn, .pg a.v2-btn:hover { color: #fff; }
.pg a.v2-btn-outline, .pg a.v2-btn-outline:hover { color: var(--ak26-teal-deep); }
.pg a.v2-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: transparent; }
.pg a.v2-btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pg a:focus-visible, .pg button:focus-visible { outline: 3px solid var(--ak26-teal-mid); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   Page hero (teal gradient, same surface as the engine pages)
   -------------------------------------------------------------------------- */

.pg-hero {
  position: relative;
  padding: 48px 0 64px;
  color: #fff;
  background-image:
    radial-gradient(circle at 85% -20%, rgba(255, 255, 255, 0.08) 0 180px, transparent 181px),
    radial-gradient(circle at 85% -20%, rgba(255, 255, 255, 0.05) 0 260px, transparent 261px),
    var(--ak26-card-gradient);
}

.pg-hero--split .pg-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.pg-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--ak26-radius-lg);
  box-shadow: var(--ak26-shadow-lg);
  background: rgba(0, 0, 0, 0.15);
}

.pg-crumbs {
  margin-bottom: 26px;
}

.pg-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.pg-crumbs li + li::before { content: "\203A"; margin-right: 6px; opacity: 0.6; }
.pg-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.pg-crumbs a:hover { color: #fff; text-decoration: underline; }
.pg-crumbs [aria-current] { color: #fff; }

.pg-eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.pg-h1 {
  max-width: 760px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.2px;
}

.pg-h1 .accent { color: #a9ebef; }

.pg-lede {
  max-width: 640px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.pg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pg-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.pg-chip svg { width: 14px; height: 14px; }
.pg-chip--live { background: #1f7a4d; }

/* --------------------------------------------------------------------------
   Sections and headings
   -------------------------------------------------------------------------- */

.pg-section { padding: 72px 0; }
.pg-section--tint { background: var(--ak26-surface-2); }
.pg-section--flush { padding-top: 0; }

.pg-head { max-width: 760px; margin-bottom: 36px; }
.pg-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pg-label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ak26-ink-muted); }
.pg-h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.8px; }
.pg-h2 .accent { color: var(--ak26-teal-mid); }
.pg-intro { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--ak26-ink-muted); }

/* --------------------------------------------------------------------------
   Filters (blog categories)
   -------------------------------------------------------------------------- */

.pg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.pg-filters .cat-filter,
.pg-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: #fff;
  font: 500 14px var(--ak26-font);
  color: var(--ak26-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.pg-filters .cat-filter:hover,
.pg-filters a:hover { background: var(--ak26-tint); }

.pg-filters .cat-filter.active,
.pg-filters a[aria-current] {
  background: var(--ak26-teal-deep);
  border-color: var(--ak26-teal-deep);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Card grids: new markup (.pg-card) and the blog cards the JavaScript builds
   (.wrapper-box-card and friends)
   -------------------------------------------------------------------------- */

.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pg-grid--2 { grid-template-columns: repeat(2, 1fr); }

.pg-card,
.pg-grid .wrapper-box-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--ak26-radius);
  background: var(--ak26-tint);
  overflow: hidden;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.pg-card:hover,
.pg-grid .wrapper-box-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(15, 77, 92, 0.16);
}

.pg-card--link { text-decoration: none; color: inherit; cursor: pointer; }

.pg-card__media,
.pg-grid .wrapper-box-card > a:first-child {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dbe7ea;
}

/* Blog thumbnails are uploaded at 1920x1080, so post cards keep 16:9 and
   never crop the image. */
.pg-card--post .pg-card__media,
.pg-grid .wrapper-box-card > a:first-child { aspect-ratio: 16 / 9; }

.pg-card__media img,
.pg-grid .wrapper-box-card > a:first-child img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ak26-ease);
}

.pg-card:hover .pg-card__media img,
.pg-grid .wrapper-box-card:hover > a:first-child img { transform: scale(1.04); }

.pg-card__body,
.pg-grid .card--content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  padding: 20px 20px 22px;
}

.pg-card__meta,
.pg-grid .posted--content {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ak26-ink-muted);
}

.pg-grid .posted--content a { color: var(--ak26-teal-deep); text-decoration: none; font-weight: 500; }

.pg-card__title,
.pg-grid .blog--d--title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: var(--ak26-ink);
}

.pg-grid .card--content > a { text-decoration: none; }

.pg-card__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ak26-ink-muted);
}

.pg-card__foot,
.pg-grid .readmore-wrapper {
  margin-top: auto;
  padding-top: 6px;
}

.pg-card__more,
.pg-grid .readmore-wrapper a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ak26-teal-deep);
  text-decoration: none;
}

.pg-grid .readmore-wrapper a img { display: none; }
.pg-grid .readmore-wrapper a::after,
.pg-card__more::after { content: "\2192"; transition: transform 0.2s; }
.pg-card:hover .pg-card__more::after,
.pg-grid .wrapper-box-card:hover .readmore-wrapper a::after { transform: translateX(4px); }

.pg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: var(--ak26-teal-deep);
}

.pg-load { margin-top: 40px; text-align: center; }
.pg-load .jsLoadMoreBtn img { display: none; }

/* Job cards */
.pg-job { padding: 22px 22px 24px; }
.pg-job__head { display: flex; gap: 14px; align-items: center; }
.pg-job__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.pg-job__logo img { width: 34px; height: 34px; object-fit: contain; }
.pg-job__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 13px; color: var(--ak26-ink-muted); }
.pg-job__meta span { display: inline-flex; align-items: center; gap: 5px; }
.pg-job__meta svg { width: 14px; height: 14px; color: var(--ak26-teal-deep); }
.pg-job__live { color: #1f7a4d; font-weight: 600; }
.pg-job .pg-card__text { margin-top: 14px; }
.pg-job .ak2026-pill-btn { align-self: flex-start; margin-top: 16px; }

/* Value cards (careers) */
.pg-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pg-value { padding: 26px 24px; border-radius: var(--ak26-radius); background: var(--ak26-tint); }
.pg-value img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 16px; }
.pg-value h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.pg-value p { font-size: 15px; line-height: 1.6; color: var(--ak26-ink-muted); }

/* --------------------------------------------------------------------------
   Article (blog detail) and the sidebar
   -------------------------------------------------------------------------- */

.pg-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.pg-article-head { margin-bottom: 28px; }
.pg-article-head .pg-h1 { max-width: 100%; }

.pg-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ak26-ink-muted);
}

.pg-article-meta a { color: var(--ak26-teal-deep); text-decoration: none; font-weight: 500; }
.pg-article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.pg-article-meta svg { width: 15px; height: 15px; }

.pg-article-cover {
  display: block;
  width: 100%;
  height: auto;
  margin: 28px 0 32px;
  border-radius: var(--ak26-radius-lg);
}

.pg-article { font-size: 17px; line-height: 1.75; color: rgba(0, 0, 0, 0.8); }
.pg-article > * + * { margin-top: 1.1em; }
.pg-article h2 { margin-top: 2em; font-size: 28px; line-height: 1.25; letter-spacing: -0.6px; color: var(--ak26-ink); }
.pg-article h3 { margin-top: 1.6em; font-size: 22px; line-height: 1.3; color: var(--ak26-ink); }
.pg-article h4 { margin-top: 1.4em; font-size: 18px; color: var(--ak26-ink); }
.pg-article p { margin: 0 0 1.1em; }
.pg-article ul, .pg-article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.pg-article ul { list-style: disc; }
.pg-article ol { list-style: decimal; }
.pg-article li { margin-bottom: 0.4em; }
.pg-article li::marker { color: var(--ak26-teal-mid); }
.pg-article a { color: var(--ak26-teal-deep); text-decoration: underline; text-underline-offset: 3px; }
.pg-article img { max-width: 100%; height: auto; border-radius: 16px; }
.pg-article blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--ak26-teal-mid); border-radius: 0 16px 16px 0; background: var(--ak26-tint); font-size: 18px; }
.pg-article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 15px; }
.pg-article th, .pg-article td { padding: 12px 14px; border-bottom: 1px solid var(--ak26-line); text-align: left; vertical-align: top; }
.pg-article th { background: var(--ak26-tint); font-weight: 600; }
.pg-article pre { padding: 18px 20px; border-radius: 14px; background: #0b2a33; color: #e6f2f4; overflow-x: auto; font-size: 14px; }
.pg-article code { font-size: 0.92em; }
.pg-article iframe, .pg-article video { max-width: 100%; border-radius: 16px; }
.pg-article .lists { }

/* Read-aloud widget (markup kept for contact-shrt-cont.js) */
.pg-listen {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ak26-tint);
}
.pg-listen .heading { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: var(--ak26-ink-muted); }
.pg-listen .container_music { display: inline-flex; align-items: center; gap: 10px; }
.pg-listen .jsSpeck { cursor: pointer; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--ak26-teal-deep); color: #fff; }
.pg-listen .jsSpeck svg { width: 16px; height: 16px; }
.pg-listen .musicBoxContainer { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.pg-listen .musicBox { width: 3px; height: 6px; border-radius: 2px; background: var(--ak26-teal-mid); }
.pg-listen .jsPlay .musicBox { animation: pgBars 0.9s ease-in-out infinite alternate; }
.pg-listen .jsPlay .box2, .pg-listen .jsPlay .box6, .pg-listen .jsPlay .box10 { animation-delay: 0.15s; }
.pg-listen .jsPlay .box3, .pg-listen .jsPlay .box7 { animation-delay: 0.3s; }
.pg-listen .jsPlay .box4, .pg-listen .jsPlay .box8 { animation-delay: 0.45s; }
@keyframes pgBars { from { height: 4px; } to { height: 18px; } }

.pg-aside { position: sticky; top: calc(var(--header, 96px) + 24px); display: grid; gap: 20px; }

.pg-aside-card {
  padding: 26px 24px;
  border-radius: var(--ak26-radius);
  background: var(--ak26-tint);
}

.pg-aside-card--teal {
  color: #fff;
  background-image: var(--ak26-card-gradient);
}

.pg-aside-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.pg-aside-card p { font-size: 14.5px; line-height: 1.55; color: rgba(0, 0, 0, 0.65); }
.pg-aside-card--teal p { color: rgba(255, 255, 255, 0.85); }
.pg-aside-card .ak2026-cta-talk { margin-top: 18px; height: 56px; }
.pg-aside-links { display: grid; gap: 10px; margin-top: 14px; }
.pg-aside-links a { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 500; color: var(--ak26-ink); text-decoration: none; }
.pg-aside-links a:hover { color: var(--ak26-teal-deep); }
.pg-aside-links svg { width: 16px; height: 16px; color: var(--ak26-teal-deep); flex-shrink: 0; }

/* FAQ in the article column (Bootstrap accordion markup from the CMS) */
.pg-faq { margin-top: 56px; }
.pg-faq .pg-h2 { margin-bottom: 20px; }
.pg-faq .accordion-item { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-radius: 0; background: transparent; }
.pg-faq .accordion-item:last-child { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.pg-faq .accordion-header { margin: 0; }
.pg-faq .accordion-button {
  padding: 20px 0;
  background: transparent;
  box-shadow: none;
  font: 600 17px/1.4 var(--ak26-font);
  color: var(--ak26-ink);
}
.pg-faq .accordion-button:not(.collapsed) { color: var(--ak26-teal-deep); }
.pg-faq .accordion-button::after { width: 22px; height: 22px; border: 1px solid rgba(0, 0, 0, 0.2); border-radius: 50%; background-image: none; background-size: 0; }
.pg-faq .accordion-button::after { background: none; position: relative; }
.pg-faq .accordion-button::before { content: "+"; position: absolute; right: 5px; width: 22px; text-align: center; font-size: 16px; font-weight: 400; transition: transform 0.2s; }
.pg-faq .accordion-button:not(.collapsed)::before { transform: rotate(45deg); }
.pg-faq .accordion-body { padding: 0 48px 22px 0; font-size: 15.5px; line-height: 1.65; color: rgba(0, 0, 0, 0.7); }
.pg-faq .accordion-body p { margin: 0; }

/* Shared FAQ include (includes/faq-section.php) on the portfolio pages */
.pg .faq--section .head-wrapper { max-width: 760px; margin-bottom: 36px; }
.pg .faq--section .smalltitle { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ak26-ink-muted); }
.pg .faq--section .maintitle { font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -0.8px; }
.pg .faq--grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 48px; align-items: start; }
.pg .faq--grid .contact-box { padding: 26px 24px; border-radius: var(--ak26-radius); background: var(--ak26-tint); }
.pg .faq--grid .contact-box h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.pg .faq--grid .contact-box p { font-size: 14.5px; line-height: 1.55; color: rgba(0, 0, 0, 0.65); margin-bottom: 16px; }
.pg .faq--grid .contact-box .default--btn { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; border-radius: 999px; background-image: var(--ak26-cta-gradient); color: #fff; font: 600 15px var(--ak26-font); text-decoration: none; text-transform: capitalize; }

/* --------------------------------------------------------------------------
   Case study detail
   -------------------------------------------------------------------------- */

.pg-meta-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.pg-meta { display: grid; gap: 18px; padding: 24px; border-radius: var(--ak26-radius); background: var(--ak26-tint); }
.pg-meta__logo img { display: block; max-width: 160px; max-height: 56px; object-fit: contain; margin-bottom: 6px; }
.pg-meta dt { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ak26-ink-muted); }
.pg-meta dd { margin: 4px 0 0; font-size: 15px; line-height: 1.5; font-weight: 500; }
.pg-prose { font-size: 17px; line-height: 1.7; color: rgba(0, 0, 0, 0.8); }
.pg-prose p { margin: 0 0 1em; }
.pg-prose ul, .pg-prose ol { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.pg-prose li { margin-bottom: 0.4em; }
.pg-prose li::marker { color: var(--ak26-teal-mid); }
.pg-prose h2, .pg-prose h3 { margin: 1.4em 0 0.5em; }

.pg-impact { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; }
.pg-quote { position: relative; padding: 32px; border-radius: var(--ak26-radius-lg); color: #fff; background-image: var(--ak26-card-gradient); }
.pg-quote__text { font-size: 20px; font-weight: 500; line-height: 1.45; letter-spacing: -0.3px; }
.pg-quote__text p { margin: 0; }
.pg-quote__who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.pg-quote__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: rgba(255, 255, 255, 0.2); }
.pg-quote__initials { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); font-weight: 600; }
.pg-quote__name { display: block; font-weight: 600; }
.pg-quote__role { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.pg-stats { display: grid; gap: 16px; }
.pg-stat { padding: 26px; border-radius: var(--ak26-radius); background: var(--ak26-tint); }
.pg-stat__num { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -1.5px; color: var(--ak26-teal-deep); }
.pg-stat__label { margin-top: 8px; font-size: 14px; color: var(--ak26-ink-muted); }

.pg-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pg-panel { padding: 30px; border-radius: var(--ak26-radius-lg); background: var(--ak26-tint); }
.pg-panel--dark { color: #fff; background-image: var(--ak26-card-gradient); }
.pg-panel--dark .pg-prose { color: rgba(255, 255, 255, 0.9); }
/* The CMS editor pastes inline colours (black text, white backgrounds) into
   the solution copy; on the dark panel those have to lose to the panel. */
.pg-panel--dark .pg-prose *:not(a) { color: inherit !important; background: transparent !important; }
.pg-panel--dark .pg-prose h2, .pg-panel--dark .pg-prose h3, .pg-panel--dark .pg-prose strong { color: #fff !important; }
.pg-panel--dark .pg-prose a { color: #fff !important; text-decoration: underline; }
.pg-badge { display: inline-block; margin-bottom: 16px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ak26-teal-deep); }
.pg-panel--dark .pg-badge { background: rgba(255, 255, 255, 0.18); color: #fff; }
.pg-panel .pg-prose ul { list-style: none; padding-left: 0; }
/* The CMS editor writes list-style-type inline on every <li>; !important is
   what stops a disc bullet printing beside the tick. The editor also wraps
   each item in a <p> with a trailing <br>, which is why item spacing comes
   from the li, not the paragraph. */
.pg-panel .pg-prose li { position: relative; padding-left: 26px; list-style: none !important; }
.pg-panel .pg-prose li > p { margin: 0; }
.pg-panel .pg-prose li > p > br:last-child { display: none; }
.pg-panel .pg-prose li + li { margin-top: 0.55em; }
.pg-panel .pg-prose li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ak26-teal-mid); mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5L20 7'/></svg>") center/contain no-repeat; }
.pg-panel--dark .pg-prose li::before { background: #fff; }
.pg-full img { display: block; width: 100%; height: auto; border-radius: var(--ak26-radius-lg); }

/* --------------------------------------------------------------------------
   Job detail and the application form (markup kept for career-detail.js)
   -------------------------------------------------------------------------- */

.pg-job-grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; align-items: start; }
.pg-lists { margin-top: 32px; }
.pg-lists h2 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.pg-lists ul { padding-left: 1.3em; list-style: disc; font-size: 16px; line-height: 1.65; color: rgba(0, 0, 0, 0.8); }
.pg-lists li { margin-bottom: 6px; }
.pg-lists li::marker { color: var(--ak26-teal-mid); }

.pg-apply { position: sticky; top: calc(var(--header, 96px) + 24px); padding: 28px; border-radius: var(--ak26-radius-lg); background: #fff; box-shadow: var(--ak26-shadow-lg); }
.pg-apply h2 { font-size: 24px; font-weight: 600; margin-bottom: 18px; }
.pg-apply .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin: 0; }
.pg-apply .row > [class*="col-"] { padding: 0; width: auto; max-width: none; flex: none; }
.pg-apply .row > .col-sm-12 { grid-column: 1 / -1; }
.pg-apply .custom--input { width: 100%; min-height: 48px; margin-bottom: 14px; padding: 11px 14px; border: 1px solid var(--ak26-line-strong); border-radius: 14px; background: #fff; font: 400 15px var(--ak26-font); color: var(--ak26-ink); transition: border-color 0.2s, box-shadow 0.2s; }
.pg-apply .custom--input:focus { border-color: var(--ak26-teal-deep); box-shadow: 0 0 0 3px rgba(44, 122, 140, 0.18); outline: none; }
.pg-apply textarea.custom--input { min-height: 90px; resize: vertical; }
.pg-apply label.error { display: block; margin: -8px 0 12px; font-size: 12.5px; color: #a61b1b; }
.pg-apply .upload--box { margin-bottom: 16px; padding: 16px; border: 1px dashed var(--ak26-line-strong); border-radius: 14px; background: var(--ak26-surface-2); }
.pg-apply .upload--box .label { font-size: 13.5px; color: var(--ak26-ink-muted); margin-bottom: 10px; }
.pg-apply .upload--btn { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 999px; background: #fff; font: 600 14px var(--ak26-font); color: var(--ak26-teal-deep); cursor: pointer; }
.pg-apply .upload--file--input { display: none; }
.pg-apply #file-chosen { display: inline-block; margin-left: 10px; font-size: 13.5px; color: var(--ak26-ink-muted); }
.pg-apply .default--btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 52px; padding: 13px 26px; border: 0; border-radius: 999px; background-image: var(--ak26-cta-gradient); color: #fff; font: 600 15px var(--ak26-font); cursor: pointer; }
.pg-apply .default--btn img { width: 16px; filter: brightness(0) invert(1); }
.pg-apply .loading--gif { width: 28px; margin-bottom: 8px; }
.pg-apply .success--box, .pg-apply .error--box { margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.pg-apply .success--box { background: #e6f4ec; color: #1f7a4d; }
.pg-apply .error--box { background: #fbe9e9; color: #a61b1b; }
.pg-apply .success--box p, .pg-apply .error--box p { margin: 0; }
.pg-apply .iti { width: 100%; }

/* --------------------------------------------------------------------------
   Gallery (careers), CTA band, 404, policy prose
   -------------------------------------------------------------------------- */

.pg-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pg-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.pg-gallery img:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; height: 100%; }

.pg-cta {
  padding: 56px 40px;
  border-radius: var(--ak26-radius-lg);
  color: #fff;
  text-align: center;
  background-image: radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.08) 0 160px, transparent 161px), var(--ak26-card-gradient);
}
.pg-cta h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -0.8px; }
.pg-cta p { max-width: 620px; margin: 12px auto 28px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.85); }
.pg-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.pg-404 { text-align: center; padding: 80px 0; }
.pg-404 .pg-h1 { margin: 0 auto; }
.pg-404 .pg-lede { margin-left: auto; margin-right: auto; }
.pg-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.pg-404__links a { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 18px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 999px; background: #fff; font-size: 14px; font-weight: 500; color: var(--ak26-ink); text-decoration: none; }
.pg-404__links a:hover { background: var(--ak26-tint); }

.pg-policy .policy--content { max-width: 820px; }
.pg-policy .policy--content, .pg-policy .pg-prose { font-size: 16.5px; line-height: 1.75; color: rgba(0, 0, 0, 0.8); }
.pg-policy .policy--content p { margin: 0 0 1em; }
.pg-policy .policy--content .heading { margin: 2em 0 0.6em; font-size: 24px; font-weight: 600; color: var(--ak26-ink); }
.pg-policy .policy--content .sub--heading { margin: 1.4em 0 0.4em; font-size: 18px; font-weight: 600; color: var(--ak26-ink); }
.pg-policy .policy--content ul, .pg-policy .policy--content ol { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.pg-policy .policy--content a { color: var(--ak26-teal-deep); }

/* --------------------------------------------------------------------------
   Breakpoints
   -------------------------------------------------------------------------- */

@media (max-width: 1023px) {
  .pg-hero { padding: 36px 0 48px; }
  .pg-hero--split .pg-hero__grid { grid-template-columns: 1fr; gap: 28px; }
  .pg-section { padding: 48px 0; }
  .pg-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .pg-values { grid-template-columns: 1fr; }
  .pg-article-wrap { grid-template-columns: 1fr; gap: 32px; }
  .pg-aside { position: static; }
  .pg .faq--grid { grid-template-columns: 1fr; gap: 24px; }
  .pg-meta-grid { grid-template-columns: 1fr; gap: 24px; }
  .pg-impact, .pg-two { grid-template-columns: 1fr; }
  .pg-job-grid { grid-template-columns: 1fr; gap: 32px; }
  .pg-apply { position: static; }
  .pg-gallery { grid-template-columns: repeat(2, 1fr); }
  .pg-gallery img:nth-child(1) { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  .pg-grid, .pg-grid--2 { grid-template-columns: 1fr; }
  .pg-article { font-size: 16px; }
  .pg-article h2 { font-size: 24px; }
  .pg-apply { padding: 20px 16px; }
  .pg-apply .row { grid-template-columns: 1fr; }
  .pg-cta { padding: 40px 20px; }
  .pg-cta__actions > * { width: 100%; justify-content: center; }
  .pg-gallery { grid-template-columns: 1fr; }
  .pg-stat__num { font-size: 36px; }
}

/* Chips in the hero may be links (industry pages); keep the chip look. */
.pg-hero a.pg-chip { color: #fff; text-decoration: none; }
.pg-hero a.pg-chip:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* --------------------------------------------------------------------------
   Case study header (Figma node 11498:16932): white and stacked, with the
   cover image full-width below the intro — not the shared teal split hero.
   Everything is scoped to .pg-hero--case so the About / Services / Blog /
   Careers heroes keep their teal gradient. Placed after the shared hero
   rules above so the equal-specificity chip-link override lands by source
   order rather than needing extra weight.
   -------------------------------------------------------------------------- */
.pg-hero--case {
  color: var(--ak26-ink);
  background: var(--ak26-surface);
}

/* The whole case study page runs near-full-width in Figma — content is 1760
   of a 1920 frame, ~80px side gutters — not the centered 1320 page container.
   Scoped to the page (.pg--case on <main>) so every section, header included,
   shares one width; capped at the 1920 frame so ultra-wide screens don't
   stretch past the design. Text columns keep their own max-widths for
   readability (the design lays copy out in columns, not across the full
   width). The title and subtitle carry max-width caps (760 / 640) for the
   teal split hero; in this header both span the full width, as in Figma. */
.pg--case .container {
  max-width: 1920px;
  padding-inline: clamp(16px, 4.17vw, 80px);
}
.pg-hero--case .pg-h1,
.pg-hero--case .pg-lede { max-width: none; }
/* Figma title is 95px at the 1920 frame (leading-none, tight tracking).
   Scale it with the viewport and cap at the design size; the shared .pg-h1
   capped at ~50px, far smaller than the design. */
.pg-hero--case .pg-h1 {
  font-size: clamp(2.25rem, 4.95vw, 95px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.pg-hero--case .pg-crumbs ol,
.pg-hero--case .pg-crumbs a { color: var(--ak26-ink-muted); }
.pg-hero--case .pg-crumbs a:hover,
.pg-hero--case .pg-crumbs [aria-current] { color: var(--ak26-ink); }
.pg-hero--case .pg-eyebrow { color: var(--ak26-ink-muted); }
.pg-hero--case .pg-h1 { color: var(--ak26-ink); }
.pg-hero--case .pg-lede { color: var(--ak26-ink-muted); }
/* `a.pg-chip` (not just `.pg-chip`) to match the shared `.pg-hero a.pg-chip`
   white override's specificity — equal weight, so this later rule wins. */
.pg-hero--case .pg-chip,
.pg-hero--case a.pg-chip { background: rgba(0, 0, 0, 0.05); color: var(--ak26-ink-muted); }
.pg-hero--case a.pg-chip:hover { background: rgba(0, 0, 0, 0.09); color: var(--ak26-ink); }

/* Category line (Figma 11498:20130): a client chip, "Case Study", a dot and
   the year. Reuses .pg-chip (already dark-on-light in this scope), bumped a
   little to match the design's larger chip. */
.pg-hero--case .pg-catline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ak26-ink-muted);
}
.pg-hero--case .pg-catline .pg-chip { padding: 8px 16px; font-size: 14px; }
.pg-hero--case .pg-catline__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

/* Project meta row (Figma 11576:39024): Client | Domain | Services under a
   top rule, with vertical dividers between the columns (Services is the wide
   one). The adjacent-sibling border means whichever column renders first has
   no divider, so missing fields never leave a dangling line. */
.pg-hero--case .pg-case-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--ak26-line);
}
.pg-hero--case .pg-case-meta__item {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 40px;
}
.pg-hero--case .pg-case-meta__item--wide { flex: 2.6 1 0; }
.pg-hero--case .pg-case-meta__item + .pg-case-meta__item {
  padding-left: 40px;
  border-left: 1px solid var(--ak26-line);
}
.pg-hero--case .pg-case-meta__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ak26-ink-muted);
}
.pg-hero--case .pg-case-meta__val {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ak26-ink);
}
.pg-hero--case .pg-case-meta__val a { color: var(--ak26-teal-deep); text-decoration: none; }
.pg-hero--case .pg-case-meta__val a:hover { text-decoration: underline; }

@media (max-width: 1023px) {
  .pg-hero--case .pg-case-meta { flex-direction: column; gap: 24px; }
  .pg-hero--case .pg-case-meta__item,
  .pg-hero--case .pg-case-meta__item + .pg-case-meta__item { padding: 0; border-left: 0; }
}

.pg-hero--case .pg-hero__cover {
  margin-top: 40px;
  border-radius: var(--ak26-radius-lg);
  overflow: hidden;
  background: #0a0a0a;
}
.pg-hero--case .pg-hero__cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Case study "About" block (Figma "04 About", node 11498:20202): full-width
   2-col — the label and the Value Delivered card on the left, the about copy
   and the result stats on the right. The stats reuse .pg-stat markup but drop
   its tinted-card look for the design's big black figures with a divider. */
.pg--case .pg-about {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
}
.pg--case .pg-about__head .pg-label { margin-bottom: 24px; }
.pg--case .pg-value {
  background: #f2f2f2;
  border-radius: 28px;
  padding: 28px 32px;
}
.pg--case .pg-value__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ak26-teal-deep);
}
.pg--case .pg-value__text {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: var(--ak26-ink);
}
.pg--case .pg-value__text p { margin: 0 0 0.5em; }
.pg--case .pg-value__text p:last-child { margin-bottom: 0; }

.pg--case .pg-about__body .pg-prose {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ak26-ink-muted);
}
.pg--case .pg-about__stats {
  display: flex;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--ak26-line);
}
.pg--case .pg-about__stats .pg-stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}
.pg--case .pg-about__stats .pg-stat + .pg-stat {
  padding-left: 48px;
  border-left: 1px solid var(--ak26-line);
}
.pg--case .pg-about__stats .pg-stat__num {
  font-size: clamp(3rem, 4.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ak26-ink);
}
.pg--case .pg-about__stats .pg-stat__label {
  margin-top: 12px;
  font-size: 18px;
  color: var(--ak26-ink-muted);
}

@media (max-width: 1023px) {
  .pg--case .pg-about { grid-template-columns: 1fr; gap: 32px; }
  .pg--case .pg-about__stats .pg-stat + .pg-stat { padding-left: 28px; }
}

/* --------------------------------------------------------------------------
   Video testimonial (Task 2): the same design as the homepage's video tile —
   poster, bottom scrim, white play button, client name — centred as this
   page's one standout tile rather than one card in a marquee. Reel modal
   below is the same 9:16-on-dark-backdrop design too. Both ported into their
   own pg- classes (see assets/js/pg-video-reel.js) rather than loading
   home-2026.css/js for a single component on a different page shell.
   -------------------------------------------------------------------------- */
.pg-video { display: flex; justify-content: center; }

.pg-video__tile {
  position: relative;
  width: min(100%, 640px);
  aspect-ratio: 420 / 282;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  background-color: #10151c;
  background-size: cover;
  background-position: center;
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.pg-video__tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0) 100%);
}

.pg-video__play {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  color: var(--ak26-teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.24s ease;
}
.pg-video__play svg { margin-left: 2px; }
.pg-video__tile:hover .pg-video__play,
.pg-video__tile:focus-visible .pg-video__play { transform: scale(1.1); }
.pg-video__tile:focus-visible { outline: 3px solid var(--ak26-teal-mid); outline-offset: 2px; }

.pg-video__who {
  position: relative;
  font-size: 15px;
  font-weight: 600;
}

.pg-reel {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 10, 11, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.pg-reel[hidden] { display: none; }
.pg-reel.is-visible { opacity: 1; }

.pg-reel__stage { position: relative; }

.pg-reel__frame {
  position: relative;
  width: min(450px, calc(100vw - 48px), calc((100dvh - 120px) * 9 / 16));
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.pg-reel__frame iframe,
.pg-reel__frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.pg-reel__close {
  position: absolute;
  top: 0;
  right: -64px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ak26-teal-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.24s ease;
}
.pg-reel__close:hover { transform: scale(1.08); }
.pg-reel__close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.pg-reel__caption {
  margin: 16px 0 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
.pg-reel__caption .pg-reel__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.pg-reel__caption strong { display: block; font-size: 16px; font-weight: 600; }
.pg-reel__caption span:last-child { color: rgba(255, 255, 255, 0.7); }
.pg-reel__caption span:last-child:empty { display: none; }

@media (max-width: 640px) {
  .pg-video__tile { aspect-ratio: auto; min-height: 260px; }
  .pg-reel { padding: 16px; }
  .pg-reel__frame { width: min(450px, calc(100vw - 32px), calc((100dvh - 110px) * 9 / 16)); }
  .pg-reel__close { right: 12px; top: 12px; width: 40px; height: 40px; }
}
