:root {
  --brand-blue: #104e6e;
  --brand-blue-light: #2890bf;
  --brand-blue-highlight: #78bfdf;
  --brand-green: #39622e;
  --brand-leaf: #648c47;
  --brand-leaf-highlight: #a3bf86;
  --ink: #18242c;
  --k-ink: #18242c;
  --k-text: #46555d;
  --k-navy: color-mix(in srgb, var(--brand-blue) 77%, var(--design-dark));
  --k-green: var(--brand-green);
  --k-green-dark: #2c4e24;
  --k-blue: var(--brand-blue);
  --k-tint: #f0f4f0;
  --paper: #f7f9f6;
  --design-dark: #0d354a;
  --design-accent: #bdd5a5;
  --design-border: #dce4db;
  --design-gutter: clamp(20px, 5.4vw, 104px);
  --design-width: min(1520px, calc(100% - 2 * var(--design-gutter)));
}

html { scrollbar-color: var(--brand-blue) #f2f5f0; }
body { background: var(--paper); color: var(--k-ink); }
/* Apply the standard heading weights across the page templates. */
h1 { font-weight: 600 !important; }
:is(h2, h3, h4, h5, h6) { font-weight: 700 !important; }
::selection { background: var(--design-accent); color: var(--design-dark); }

.site-header,
.site-header.is-scrolled,
.site-header.pm-glass {
  background: #fcfdfb;
  border-bottom-color: var(--design-border);
  box-shadow: none;
  backdrop-filter: none;
}

.site-header .nav-wrap {
  width: var(--design-width);
  min-height: 75px;
}

.site-header .brand img { width: 75px; }

.site-navigation { gap: clamp(17px, 2.1vw, 34px); }

.site-navigation > a:not(.button) {
  padding-block: 24px;
  color: #45544f;
  font-size: .875rem;
  font-weight: 650;
}

.site-navigation > a:not(.button)::before { content: none; }
.site-navigation > a[aria-current]:not(.button),
.site-navigation > a:not(.button):hover { color: var(--design-dark); }
.site-navigation > a[aria-current]::after {
  bottom: 13px;
  height: 2px;
  background: var(--k-green);
  box-shadow: none;
}

.site-navigation .button:not(.button-outline) {
  min-height: 42px;
  padding: 10px 17px;
  margin-inline-start: 4px;
  border-color: var(--brand-blue) !important;
  border-radius: 6px;
  background: var(--brand-blue) !important;
  font-size: .875rem;
}

.site-navigation .button:not(.button-outline):hover {
  border-color: var(--k-green) !important;
  background: var(--k-green) !important;
}

.menu-toggle {
  min-height: 44px;
  border: 1px solid var(--design-border);
  border-radius: 6px;
  color: var(--design-dark);
  font-size: .875rem;
  font-weight: 700;
}

.pm-progress { height: 2px; background: linear-gradient(90deg, var(--brand-leaf), var(--brand-blue-light)); }
.site-footer { background: var(--design-dark) !important; }

main:has(> .home-hero) {
  --home-section-dark: var(--k-navy);
  --home-section-light: var(--paper);
  --home-section-ink: var(--k-ink);
  --home-section-muted: var(--k-text);
  --home-section-accent: var(--design-accent);
  --home-section-light-line: var(--design-border);
}

.home-hero,
.home-hero.screen-panel {
  display: block;
  padding: 0;
  background: var(--design-dark);
  color: #fff;
}

.hero-scene {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 0% 88%, color-mix(in srgb, var(--brand-green) 85%, var(--design-dark)), transparent 58%),
    radial-gradient(ellipse at 100% 10%, color-mix(in srgb, var(--brand-blue), var(--brand-blue-light) 32%), transparent 62%),
    var(--design-dark);
}

.hero-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle, #cce8d612 .6px, transparent 1px) center / 9px 9px,
    linear-gradient(90deg, #beddd211 1px, transparent 1px) center / 54px 54px,
    linear-gradient(#beddd211 1px, transparent 1px) center / 54px 54px;
  mask-image: linear-gradient(90deg, #000, #0002 37%, #0002 63%, #000);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.hero-bim {
  position: absolute;
  inset: 55% auto auto max(-26px, (100% - 1800px) / 2);
  width: clamp(290px, 31vw, 550px);
  margin: 0;
  opacity: .68;
  transform: translateY(-50%);
  mask-image: linear-gradient(90deg, #000 64%, #000b 90%, transparent);
}

.hero-bim figcaption {
  margin: 0 0 12px 18%;
  color: #d7eddd;
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .085em;
  text-transform: uppercase;
}

.hero-bim img { width: 100%; height: auto; }

.hero-estimate {
  position: absolute;
  inset: 50% max(32px, (100% - 1760px) / 2) auto auto;
  width: clamp(268px, 23vw, 395px);
  padding: 16px;
  border: 1px solid #9acfe657;
  border-radius: 9px;
  background: linear-gradient(150deg, #245b75, #143c52);
  box-shadow: 10px 11px 0 -1px #153c5266, 10px 11px 0 #99cfe03b;
  color: #e5f2f7;
  opacity: .8;
  transform: translateY(-50%) rotate(7deg);
  mask-image: linear-gradient(90deg, #0006, #000 32%);
}

.hero-estimate-head, .hero-estimate-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.hero-estimate-head { margin-bottom: 12px; }
.hero-estimate-head strong { font: 650 clamp(.92rem, 1.55vw, 1.32rem)/1.12 var(--heading); }
.hero-estimate-head span { color: #abc8d5; font-size: .6875rem; font-weight: 650; }

.hero-estimate table {
  width: 100%;
  border-collapse: collapse;
  font-size: .72rem;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.hero-estimate :is(th, td) {
  padding: 8px 6px;
  border-bottom: 1px solid #aed8e33b;
  text-align: right;
  white-space: nowrap;
}

.hero-estimate :is(th, td):first-child { text-align: left; white-space: normal; }
.hero-estimate thead { background: #91c7dc24; color: #c3dce7; }
.hero-estimate tbody th { font-weight: 600; }
.hero-estimate-total { margin-top: 10px; font-size: .75rem; }
.hero-estimate-total strong { color: var(--design-accent); font-weight: 800; }

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: .38;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 42% 68% at center, #0002 22%, #0007 58%, #000 100%);
}

.hero-layout {
  display: grid;
  place-items: center;
  width: var(--design-width);
  min-height: clamp(30rem, 37.5vw, 36rem);
  padding-block: clamp(52px, 6vw, 90px);
  text-align: center;
}

.home-hero .hero-copy { min-width: 0; padding: 0; }
.home-hero .hero-copy .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 22px;
  color: #e5efd9;
  font-size: .8125rem;
  font-weight: 750;
  letter-spacing: .12em;
}

.home-hero .hero-copy .eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--design-accent);
}

.home-hero .hero-copy h1 {
  margin: 0 0 20px;
  color: #fff;
  font: 600 clamp(3.5rem, 6.2vw, 6.5rem)/.99 var(--heading);
  letter-spacing: -.075em;
}

.home-hero .hero-copy h1 span {
  display: block;
  margin: 0;
  background: none;
  color: var(--design-accent);
  font: inherit;
  -webkit-text-fill-color: currentColor;
}

.home-hero .hero-copy .lead {
  max-width: 34em;
  margin: 0 auto;
  color: #deebf2;
  font-size: clamp(1rem, 1.24vw, 1.125rem);
  font-weight: 500;
  line-height: 1.68;
}

.home-hero .hero-copy .button-row {
  flex-flow: row wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 29px;
}

.home-hero .hero-copy .button {
  min-width: 0;
  min-height: 50px;
  padding: 12px clamp(13px, 1.55vw, 23px);
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 800;
  text-align: center;
}

.home-hero .hero-copy .button:not(.button-outline) {
  border-color: var(--brand-leaf-highlight) !important;
  background: var(--brand-green) !important;
  color: #fff !important;
}

.home-hero .hero-copy .button:not(.button-outline):hover {
  border-color: var(--design-accent) !important;
  background: #447237 !important;
  box-shadow: none;
}

.home-hero .hero-copy .button-outline {
  border-color: var(--brand-blue-highlight);
  background: color-mix(in srgb, var(--brand-blue) 55%, transparent);
  color: #fff;
}

.home-hero .hero-copy .button-outline:hover {
  border-color: #cde6f3;
  background: var(--brand-blue);
}

.hero-scene :is(a, button):focus-visible { outline-color: var(--design-accent); }

.hero-tools { border-bottom: 1px solid var(--design-border); background: #fdfefc; }
.hero-work-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: var(--design-width);
}

.hero-work-links a {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 1vw, 15px);
  min-width: 0;
  min-height: 96px;
  padding: 18px clamp(10px, 1.35vw, 21px);
  border-inline-start: 1px solid var(--design-border);
  color: var(--k-ink);
  text-decoration: none;
  transition: background .2s ease;
}

.hero-work-links a:last-child { border-inline-end: 1px solid var(--design-border); }
.hero-work-links a:hover { background: #ecf5f9; }
.hero-work-links a:focus-visible { outline-offset: -4px; }

.hero-work-links .line-icon {
  box-sizing: content-box;
  align-self: center;
  flex: none;
  width: 20px;
  height: 20px;
  padding: 9px;
  border-radius: 7px;
  background: #e9f1e3;
  color: var(--brand-green);
}

.hero-work-links strong, .hero-work-links a span span { display: block; }
.hero-work-links strong { font-size: .875rem; line-height: 1.25; }
.hero-work-links a span span { margin-top: 4px; color: #485955; font-size: .8125rem; line-height: 1.45; }

.home-references.screen-panel { padding-block: clamp(45px, 4.3vw, 70px) clamp(57px, 6vw, 100px); }
.home-references > .container { width: var(--design-width); }
.home-references .screen-section-heading { align-items: center; margin-bottom: 21px; }
.home-references .screen-section-heading h2 { font-size: clamp(2rem, 3.2vw, 3.4rem); letter-spacing: -.06em; }
.home-references .text-link { color: var(--k-green); text-decoration: underline; text-underline-offset: 5px; }
.reference-grid { display: grid; grid-template-columns: 1.13fr 1fr; gap: clamp(12px, 1.6vw, 26px); }
.reference-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--design-border);
  border-radius: 8px;
  background: #fff;
  color: var(--k-ink);
  text-decoration: none;
}
.reference-media { display: block; overflow: hidden; }
.reference-card img { width: 100%; height: clamp(180px, 20vw, 310px); object-fit: cover; }
.reference-caption { display: grid; gap: 3px; padding: 17px 19px; }
.reference-caption small { color: var(--k-green); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.reference-caption strong { font: 650 clamp(1.15rem, 1.8vw, 1.55rem)/1.18 var(--heading); }
.reference-card:hover .reference-caption strong { text-decoration: underline; }
.reference-card:focus-visible { outline: 3px solid var(--k-green); outline-offset: 3px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .reference-card img { transition: transform .4s ease; }
  .reference-card:hover img { transform: scale(1.035); }
}

body:has(.home-hero) .screen-rail { right: 10px; gap: 3px; opacity: .62; }
body:has(.home-hero) .screen-rail:is(:hover, :focus-within) { opacity: 1; }

@media (max-width: 1080px) {
  .hero-scene { display: flex; flex-direction: column; }
  .hero-layout { min-height: 0; padding-block: 54px 0; }
  .hero-backdrop {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
    align-items: center;
    order: 1;
    gap: clamp(12px, 3vw, 28px);
    width: min(690px, calc(100% - 40px));
    margin: clamp(21px, 3vw, 35px) auto 25px;
  }
  .hero-bim, .hero-estimate { position: static; width: 100%; }
  .hero-bim { transform: none; mask-image: linear-gradient(0deg, #0009, #000 27%); }
  .hero-bim figcaption { margin: 0 0 4px 12%; font-size: .6875rem; }
  .hero-estimate {
    padding: clamp(7px, 2.2vw, 13px);
    transform: rotate(4deg);
    mask-image: none;
  }
}

@media (max-width: 980px) {
  .site-header .nav-wrap { min-height: 65px; }
  .site-header .brand img { width: 66px; }
  .site-navigation { background: #fcfdfb; }
  .site-navigation > a:not(.button) { padding-block: 12px; }
  .site-navigation > a[aria-current]::after { bottom: 19px; }
  .site-navigation .button:not(.button-outline) { margin-inline-start: 0; }
  .hero-work-links { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .hero-work-links a { grid-column: span 2; min-height: 82px; padding-block: 14px; }
  .hero-work-links a:nth-child(3) { border-inline-end: 1px solid var(--design-border); }
  .hero-work-links a:nth-child(n + 4) { grid-column: span 3; border-top: 1px solid var(--design-border); }
}

@media (max-width: 780px) {
  .hero-scene::before { background-size: 8px 8px, 40px 40px, 40px 40px; }
  .hero-texture { mask-image: radial-gradient(ellipse 55% 54% at center, #0001 25%, #0005 64%, #000 100%); }
  .home-hero .hero-copy h1 { font-size: clamp(2.45rem, 10.6vw, 4.9rem); }
  .hero-estimate-head { margin-bottom: 6px; }
  .hero-estimate-head span { font-size: .55rem; }
  .hero-estimate table { font-size: clamp(.53rem, 1.48vw, .67rem); }
  .hero-estimate :is(th, td) { padding: 4px 3px; }
  .hero-estimate-total { margin-top: 6px; font-size: .62rem; }
}

@media (max-width: 560px) {
  .hero-layout { padding-block-start: 47px; }
  .home-hero .hero-copy .eyebrow { margin-bottom: 16px; }
  .home-hero .hero-copy h1 { margin-bottom: 16px; }
  .home-hero .hero-copy .button-row { margin-top: 22px; gap: 8px; }
  .home-hero .hero-copy .button { min-height: 46px; font-size: .8125rem; }
  .hero-work-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-work-links a, .hero-work-links a:nth-child(n + 4) { align-items: center; grid-column: auto; min-height: 62px; border-top: 0; }
  .hero-work-links a:nth-child(n + 3) { border-top: 1px solid var(--design-border); }
  .hero-work-links a:nth-child(3) { border-inline-end: 0; }
  .hero-work-links a:nth-child(even) { border-inline-end: 1px solid var(--design-border); }
  .hero-work-links a:last-child { grid-column: 1 / -1; }
  .hero-work-links .line-icon { width: 18px; height: 18px; padding: 7px; }
  .hero-work-links a span span { display: none; }
  .reference-grid { grid-template-columns: 1fr; }
  .hero-estimate-head { gap: 4px; white-space: nowrap; }
  .hero-estimate-head strong { font-size: .72rem; }
  .hero-estimate table { table-layout: fixed; }
  .hero-estimate :is(th, td):first-child { width: 52%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero-estimate :is(th, td):nth-child(2) { width: 18%; }
  .hero-estimate :is(th, td):nth-child(3) { display: none; }
  .hero-estimate thead th span { display: none; }
  .hero-estimate-total { gap: 4px; font-size: .55rem; white-space: nowrap; }
}

@media (max-width: 360px) {
  .home-hero .hero-copy h1 { font-size: clamp(2rem, 11.4vw, 2.5rem); }
  .home-hero .hero-copy .button-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); }
  .home-hero .hero-copy .button { padding-inline: 6px; font-size: .75rem; }
}

/* ==========================================================================
   Soft, structured finish (logo blue and green only)
   ========================================================================== */
:root {
  --soft-radius: 20px;
  --soft-radius-sm: 12px;
  --soft-pill: 999px;
  --soft-line: color-mix(in srgb, var(--brand-blue) 11%, #fff);
  --soft-shadow: 0 14px 38px -18px color-mix(in srgb, var(--design-dark) 28%, transparent);
  --soft-shadow-up: 0 24px 48px -20px color-mix(in srgb, var(--design-dark) 36%, transparent);
  --soft-blue-wash: color-mix(in srgb, var(--brand-blue-light) 11%, #fff);
  --soft-green-wash: color-mix(in srgb, var(--brand-leaf) 14%, #fff);
  --brand-band:
    radial-gradient(ellipse at 0% 100%, color-mix(in srgb, var(--brand-green) 88%, var(--design-dark)), transparent 62%),
    radial-gradient(ellipse at 100% 0%, color-mix(in srgb, var(--brand-blue), var(--brand-blue-light) 34%), transparent 64%),
    var(--design-dark);
}

/* Sitewide: rounder, calmer corners */
body .button,
body .site-navigation .button:not(.button-outline),
body .home-hero .hero-copy .button,
body .innovation-button { border-radius: var(--soft-pill) !important; }
body .menu-toggle,
body .catalogue-search input,
body .field :is(input, select, textarea) { border-radius: var(--soft-radius-sm); }
body :is(.reference-card, .project-card, .research-card, .innovation-card, .scope-list article, .hero-estimate, .portfolio-feature img, .estimate-sheet, .deliverable-preview) { border-radius: var(--soft-radius); }
body :is(.reference-card, .project-card) { box-shadow: var(--soft-shadow); }
body .hero-work-links .line-icon { border-radius: 50%; }

/* Home: How We Work in one section */
.home-process { background: #fff; }
.home-process > .container { width: var(--design-width); }
.process-heading { text-align: center; margin-bottom: 34px; }
.process-heading .eyebrow { margin-bottom: 10px; }
.process-heading h2 { margin: 0; font-size: clamp(1.9rem, 3vw, 3rem); letter-spacing: -.045em; }
.process-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.process-steps li { padding: 26px 18px; border: 1px solid var(--soft-line); border-radius: var(--soft-radius); background: #fff; box-shadow: var(--soft-shadow); text-align: center; }
.process-number { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 16px; border-radius: 50%; background: var(--soft-green-wash); color: var(--brand-green); font-weight: 700; }
.process-steps li:nth-child(even) .process-number { background: var(--soft-blue-wash); color: var(--brand-blue); }
.process-steps h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.process-steps p { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--k-text); }
@media (max-width: 1100px) {
  .process-steps { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .process-steps li { grid-column: span 2; }
  .process-steps li:nth-child(n + 4) { grid-column: span 3; }
}
@media (max-width: 620px) {
  .process-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .process-steps li, .process-steps li:nth-child(n + 4) { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; grid-column: auto; padding: 18px; text-align: left; }
  .process-number { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
}

/* Home shortcuts: four items */
@media (min-width: 981px) { .hero-work-links { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 561px) and (max-width: 980px) {
  .hero-work-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-work-links a, .hero-work-links a:nth-child(n + 4) { grid-column: auto; }
  .hero-work-links a:nth-child(n + 3) { border-top: 1px solid var(--design-border); }
}
@media (max-width: 560px) { .hero-work-links a:last-child { grid-column: auto; } }

/* --------------------------------------------------------------------------
   Shared hero band for Services, About and Contact
   -------------------------------------------------------------------------- */
body:is(.page-services, .page-about, .page-contact) .page-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(52px, 6vw, 92px) clamp(88px, 8vw, 128px);
  border: 0;
  background: var(--brand-band) !important;
}
/* curved lower edge */
body:is(.page-services, .page-about, .page-contact) .page-intro::after {
  content: '';
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -1px;
  height: clamp(44px, 5.5vw, 82px);
  background: var(--paper);
  clip-path: ellipse(52% 100% at 50% 100%);
  pointer-events: none;
}
body:is(.page-services, .page-about, .page-contact) .page-intro .screen-copy h1,
body.page-contact .contact-hero .contact-hero-copy h1 { color: #fff; letter-spacing: -.05em; }
body:is(.page-services, .page-about, .page-contact) .page-intro h1 span { color: var(--design-accent); -webkit-text-fill-color: currentColor; background: none; }
body:is(.page-services, .page-about, .page-contact) .page-intro .eyebrow { color: var(--design-accent); }
body:is(.page-services, .page-about, .page-contact) .page-intro .lead,
body.page-contact .contact-hero .contact-hero-actions p { color: #deebf2; }
body:is(.page-services, .page-about, .page-contact) .page-intro .button { min-height: 50px; padding-inline: 26px; border-color: #fff !important; background: #fff !important; color: var(--design-dark) !important; box-shadow: var(--soft-shadow-up); }
body:is(.page-services, .page-about, .page-contact) .page-intro .button:hover { background: var(--design-accent) !important; border-color: var(--design-accent) !important; }
body:is(.page-services, .page-about, .page-contact) .page-intro :focus-visible { outline-color: var(--design-accent); }

/* White floating card in the hero */
body:is(.page-services, .page-about) .studio-intro .studio-index {
  padding: clamp(20px, 2.2vw, 30px);
  border: 0;
  border-radius: 26px;
  background: #fff;
  color: var(--k-ink);
  box-shadow: 0 30px 60px -24px #00000066;
}
body.page-about .studio-intro .studio-index h2 { color: var(--k-ink); }
body.page-about .studio-index li { border: 0; }
body.page-about .studio-index li + li { margin-top: 10px; }
body.page-about .studio-index a { position: relative; padding: 14px 54px 14px 18px; border: 1px solid var(--soft-line); border-radius: 16px; color: var(--k-ink); }
body.page-about .studio-index a span { color: var(--k-text); }
body.page-about .studio-index a::after { content: '→'; position: absolute; right: 14px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft-green-wash); color: var(--brand-green); transform: translateY(-50%); }
body.page-about .studio-index a:hover { background: var(--soft-blue-wash); }

body.page-services .studio-intro .service-finder { --finder-light: var(--brand-green); --finder-line: var(--soft-line); }
body.page-services .studio-intro .service-finder h2,
body.page-services .service-finder-controls legend,
body.page-services .service-finder-results > p { color: var(--k-ink); }
body.page-services .service-finder-choices label { color: var(--k-text); }
body.page-services .service-finder-choices label::before { background-color: #fff; }
body.page-services .service-finder-choices input:checked + label { color: var(--brand-green); }
body.page-services .service-finder-choices input:checked + label::before { background-color: var(--brand-green); box-shadow: inset 0 0 0 4px #fff; }
body.page-services .service-finder-choices input:focus-visible + label,
body.page-services .service-finder a:focus-visible { outline-color: var(--brand-blue); }
body.page-services .service-finder-panel a { border: 1px solid var(--soft-line); border-radius: 16px; background: var(--soft-blue-wash); color: var(--k-ink); }
body.page-services .service-finder-panel a:hover { background: var(--soft-green-wash); }
body.page-services .service-finder-panel a span { border-radius: var(--soft-pill); background: #fff; color: var(--brand-green); }
body.page-services .service-finder-links a { color: var(--brand-blue); }
body.page-services .service-finder-links a:hover { color: var(--brand-green); }

/* --------------------------------------------------------------------------
   Services page
   -------------------------------------------------------------------------- */
body.page-services .service-groups .section-heading { display: block; max-width: 640px; margin: 0 auto 28px; text-align: center; }
body.page-services .service-groups .section-heading .eyebrow { justify-content: center; }
body.page-services .service-filter-bar { flex-direction: column; justify-content: center; margin-bottom: 30px; }
body.page-services .service-filters { justify-content: center; }
body.page-services .service-groups .service-filters button { border: 1px solid var(--soft-line) !important; border-radius: var(--soft-pill); background: #fff; color: var(--k-ink); }
body.page-services .service-groups .service-filters button[aria-pressed="true"] { border-color: var(--brand-blue) !important; background: var(--brand-blue) !important; color: #fff !important; }

body.page-services .service-groups .brochure-service-grid .service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 26px 26px;
  border: 1px solid var(--soft-line) !important;
  border-radius: 24px;
  background: #fff !important;
  box-shadow: var(--soft-shadow);
  text-align: center;
}
body.page-services .service-groups .brochure-service-grid .service-card::after { content: none; }
body.page-services .service-groups .brochure-service-grid .service-card:is(:hover, :focus-visible) { border-color: color-mix(in srgb, var(--brand-leaf) 55%, #fff) !important; box-shadow: var(--soft-shadow-up); }
body.page-services .service-card .card-top { display: flex; flex-direction: column; align-items: center; gap: 12px; }
body.page-services .service-card .card-top > .line-icon { box-sizing: border-box; width: 66px; height: 66px; padding: 17px; border-radius: 50%; background: var(--soft-green-wash); color: var(--brand-green); }
body.page-services .service-card[data-service-category="digital"] .card-top > .line-icon { background: var(--soft-blue-wash); color: var(--brand-blue); }
body.page-services .service-card:is(:hover, :focus-visible) .card-top > .line-icon { background: var(--brand-green); color: #fff !important; }
body.page-services .service-card .card-top .mono { color: var(--k-text) !important; letter-spacing: .08em; }
body.page-services .service-groups .service-card .card-link { justify-content: center; align-self: center; width: auto; margin-top: auto; padding: 10px 22px; border: 0; border-radius: var(--soft-pill); background: var(--brand-blue); color: #fff; }
body.page-services .service-groups .service-card:hover .card-link { background: var(--brand-green); }

/* Service catalogue */
body.page-services .service-catalogue { background: #fff; }
body.page-services .service-catalogue .catalogue-heading { align-items: center; margin-bottom: 30px; }
body.page-services .catalogue-search input { min-height: 54px; padding: 12px 22px 12px 50px; border: 1px solid var(--soft-line); border-radius: var(--soft-pill); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23104e6e' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 20px center / 18px; box-shadow: var(--soft-shadow); }
body.page-services .catalogue-groups { gap: 10px; }
body.page-services .service-catalogue .catalogue-group { border: 1px solid var(--soft-line); border-radius: 18px; background: #fff; }
body.page-services .catalogue-group summary { grid-template-columns: 44px minmax(0, 1fr) 30px; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; min-height: 68px; padding: 11px 14px; border-radius: 17px; }
body.page-services .catalogue-group summary .line-icon { box-sizing: border-box; grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--soft-green-wash); color: var(--brand-green); }
body.page-services .catalogue-group summary strong { align-self: end; font-size: .95rem; line-height: 1.3; }
body.page-services .catalogue-group summary > span { grid-area: 2 / 2; align-self: start; color: var(--k-text); font-weight: 500; font-size: .75rem; }
body.page-services .catalogue-group summary::after { grid-area: 1 / 3 / 3 / 4; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); color: var(--brand-blue); }
body.page-services .catalogue-group[open] summary { background: var(--brand-blue); color: #fff; }
body.page-services .catalogue-group[open] summary > span { color: #d5e6ee; }
body.page-services .catalogue-group[open] summary .line-icon { background: #fff; color: var(--brand-blue); }
body.page-services .catalogue-group[open] summary::after { background: #ffffff26; color: #fff; }
body.page-services .catalogue-group summary:focus-visible { outline-offset: -3px; outline-color: var(--brand-leaf); }

body.page-services .catalogue-panel { padding: 18px; }
body.page-services .catalogue-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
body.page-services .catalogue-panel-head > div { flex: 1 1 280px; }
body.page-services .catalogue-panel-head strong { display: block; color: var(--design-dark); font-size: 1.3rem; line-height: 1.3; }
body.page-services .catalogue-panel-head p { margin: 4px 0 0; color: var(--k-text); font-size: .92rem; line-height: 1.55; }
body.page-services .catalogue-panel-head > a { padding: 11px 22px; border-radius: var(--soft-pill); background: var(--brand-green); color: #fff; font-size: .85rem; font-weight: 700; text-decoration: none; }
body.page-services .catalogue-panel-head > a:hover { background: var(--brand-blue); }
body.page-services .catalogue-group ul { gap: 10px; border: 0; border-radius: 0; background: none; }
body.page-services .catalogue-group li { background: none; }
body.page-services .catalogue-group li a { grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: 7px; height: 100%; padding: 15px 16px; border: 1px solid var(--soft-line); border-radius: 16px; background: #fff; }
body.page-services .catalogue-group li a:hover { border-color: var(--brand-leaf); background: #fff; box-shadow: var(--soft-shadow); }
body.page-services .catalogue-group li strong { font-size: .95rem; line-height: 1.35; }
body.page-services .catalogue-group li small { color: var(--k-text); font-size: .82rem; line-height: 1.5; }
body.page-services .catalogue-code { padding: 2px 10px; border: 0; border-radius: var(--soft-pill); background: var(--soft-green-wash); font-size: .75rem; }

@media (min-width: 901px) {
  body.page-services .catalogue-groups.is-tabs { position: relative; grid-template-columns: clamp(290px, 28%, 380px); align-content: start; }
  body.page-services .catalogue-groups.is-tabs .catalogue-group[open] { border-color: var(--brand-blue); }
  body.page-services .catalogue-groups.is-tabs .catalogue-group summary::after { content: '→'; }
  body.page-services .catalogue-groups.is-tabs .catalogue-panel { position: absolute; top: 0; left: calc(clamp(290px, 28%, 380px) + 22px); right: 0; min-height: 100%; padding: clamp(20px, 2.4vw, 34px); border-radius: 26px; background: linear-gradient(160deg, var(--soft-blue-wash), var(--soft-green-wash)); }
}

/* Integrated packages */
body.page-services .service-packages .catalogue-heading { justify-content: center; margin-bottom: 30px; text-align: center; }
body.page-services .package-grid { gap: 22px; }
body.page-services .service-packages .service-package { gap: 14px; padding: 8px; border: 1px solid var(--soft-line); border-radius: 26px; background: #fff; box-shadow: var(--soft-shadow); }
body.page-services .package-top { display: flex; align-items: center; gap: 14px; padding: 18px 18px 0; }
body.page-services .package-top .line-icon { box-sizing: border-box; flex: none; width: 54px; height: 54px; padding: 14px; border-radius: 18px; background: var(--brand-green); color: #fff; }
body.page-services .service-package:nth-child(even) .package-top .line-icon { background: var(--brand-blue); }
body.page-services .service-packages .service-package h3 { font-size: 1.12rem; line-height: 1.3; }
body.page-services .service-packages .service-package > p { padding-inline: 18px; }
body.page-services .package-related { margin-top: auto; padding: 14px 10px 10px; border: 0; border-radius: 20px; background: var(--paper); }
body.page-services .package-label { display: block; margin: 0 8px 9px; color: var(--brand-green); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
body.page-services .package-related ul { gap: 6px; }
body.page-services .package-related a { grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px 8px 8px; border: 1px solid var(--soft-line); border-radius: 14px; background: #fff; line-height: 1.35; }
body.page-services .package-related a::after { content: '→'; color: var(--brand-green); }
body.page-services .package-related a:hover { border-color: var(--brand-leaf); background: var(--soft-green-wash); text-decoration: none; }
body.page-services .package-related .catalogue-code { align-self: center; text-align: center; padding-inline: 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.page-services .service-package { transition: transform .3s ease, box-shadow .3s ease; }
  body.page-services .service-package:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow-up); }
}

body.page-services #work-samples .compact-section { display: block; text-align: center; }
body.page-services #work-samples .compact-section-copy { margin: 0 auto 24px; }
body.page-services #work-samples .compact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; border: 0; list-style: none; }
body.page-services #work-samples .compact-links li { display: flex; border: 0; }
body.page-services #work-samples .compact-links a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 76px; padding: 16px 20px; border: 1px solid var(--soft-line); border-radius: 18px; background: #fff; box-shadow: var(--soft-shadow); }
body.page-services #work-samples .compact-links a:hover { background: var(--soft-green-wash); }
@media (max-width: 760px) { body.page-services #work-samples .compact-links { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */
body.page-about .about-overview-photo,
body.page-about .about-team-photo { border-radius: 28px; }
/* offset brand shape behind the photos */
body.page-about .about-overview-photo { box-shadow: -14px 14px 0 var(--soft-green-wash), var(--soft-shadow-up); }
body.page-about .about-team-photo { margin: 0; box-shadow: 14px 14px 0 var(--soft-blue-wash), var(--soft-shadow-up); }
body.page-about .merger-strip { flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; border: 0; }
body.page-about .merger-strip :is(span:not([aria-hidden]), b) { padding: 10px 18px; border: 1px solid var(--soft-line); border-radius: var(--soft-pill); background: #fff; color: var(--k-ink); box-shadow: var(--soft-shadow); }
body.page-about .merger-strip b { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }
body.page-about #leadership { background: #fff; }
body.page-about #leadership .screen-section-heading { justify-content: center; margin-bottom: 36px; text-align: center; }
body.page-about #leadership .eyebrow { justify-content: center; margin-bottom: 10px; }
body.page-about .leader { border-color: var(--soft-line); border-radius: 24px; box-shadow: var(--soft-shadow); text-align: center; }
body.page-about .leader-portrait { background: var(--soft-green-wash); }
body.page-about .leader-info .leader-role { color: var(--brand-green); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.page-about .leader { transition: transform .35s ease, box-shadow .35s ease; }
  body.page-about .leader:hover { transform: translateY(-6px); box-shadow: var(--soft-shadow-up); }
}
body.page-about .related-grid { align-items: center; }
body.page-about .related-grid .text-link { padding: 11px 22px; border: 1px solid var(--soft-line); border-radius: var(--soft-pill); background: #fff; box-shadow: var(--soft-shadow); }
@media (min-width: 981px) { body.page-about .related-grid > .about-team { order: -1; } }
@media (max-width: 640px) { body.page-about .leader { text-align: left; } }

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
body.page-contact .contact-hero-visual { border: 0; border-radius: 28px; box-shadow: 0 30px 60px -24px #00000073; }
body.page-contact .contact-hero-prep { padding: 22px clamp(18px, 2vw, 28px) 24px; }
body.page-contact .contact-hero .contact-hero-prep h2 { color: var(--k-ink); }
body.page-contact .contact-hero-prep ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; list-style: none; counter-reset: ready; }
body.page-contact .contact-hero-prep li { counter-increment: ready; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 16px; background: var(--soft-blue-wash); color: var(--k-ink); text-align: center; }
body.page-contact .contact-hero-prep li::before { content: counter(ready); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-green); color: #fff; font-weight: 700; }
body.page-contact .contact-hero .contact-hero-prep p { margin-top: 14px; color: var(--k-text); text-align: center; }
@media (max-width: 480px) {
  body.page-contact .contact-hero-prep ul { grid-template-columns: minmax(0, 1fr); }
  body.page-contact .contact-hero-prep li { flex-direction: row; text-align: left; }
}
body.page-contact .contact-grid { align-items: stretch; gap: clamp(22px, 3vw, 40px); }
body.page-contact .contact-info { display: flex; flex-direction: column; overflow: hidden; padding: 0; border: 0; border-radius: 28px; background: var(--brand-band); box-shadow: var(--soft-shadow-up); }
body.page-contact .contact-heading { overflow: hidden; border-radius: 0; }
body.page-contact .contact-info .contact-heading h2 { color: #fff; }
body.page-contact .contact-info .contact-details { display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; flex: 1; gap: 12px; margin: 0; padding: clamp(16px, 2vw, 26px); border: 0; }
body.page-contact .contact-info .contact-details > div { grid-column: 1; padding: 16px 18px; border: 0; border-radius: 18px; background: #fff; }
body.page-contact .contact-info .contact-details dt { color: var(--brand-green); }
body.page-contact .contact-info .contact-details dd { color: var(--k-ink); overflow-wrap: anywhere; }
body.page-contact .contact-office .contact-directions { border-radius: var(--soft-pill); }
body.page-contact .enquiry-card { padding: clamp(22px, 3.2vw, 44px); border: 1px solid var(--soft-line) !important; border-radius: 28px; background: #fff; box-shadow: var(--soft-shadow-up); }
body.page-contact .field :is(input, select, textarea) { border: 1px solid color-mix(in srgb, var(--brand-blue) 22%, #fff); background-color: var(--paper); }
body.page-contact .field :is(input, select, textarea):focus { border-color: var(--brand-blue); background-color: #fff; box-shadow: 0 0 0 4px var(--soft-blue-wash); }
body.page-contact .form-stage-nav { gap: 8px; border: 0; }
body.page-contact .form-stage-nav span { padding: 9px 12px; border: 0; border-radius: var(--soft-pill); background: var(--paper); text-align: center; }
body.page-contact .form-stage-nav span.is-current { background: var(--brand-green); color: #fff; }
body.page-contact .form-back { border-radius: var(--soft-pill); }

body.page-services .service-groups .section-heading > div,
body.page-services .service-groups .section-heading p,
body.page-services #work-samples .compact-section-copy,
body.page-services #work-samples .compact-section-copy p { width: 100%; max-width: none; margin-inline: auto; text-align: center; }

/* Stacked catalogue: the row above already shows the group name */
body.page-services .catalogue-groups:not(.is-tabs) .catalogue-panel-head strong { display: none; }
@media (max-width: 1100px) { body.page-services .package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { body.page-services .package-grid { grid-template-columns: minmax(0, 1fr); } }

/* Contact: office map */
body.page-contact .contact-map { padding-top: 0; }
body.page-contact .contact-map.screen-panel { padding-top: 0; }
.map-frame { overflow: hidden; border: 1px solid var(--soft-line); border-radius: 28px; background: var(--soft-blue-wash); box-shadow: var(--soft-shadow-up); }
.map-frame iframe { display: block; width: 100%; height: clamp(300px, 36vw, 450px); }

/* About: two matching split sections, photos fill their column */
body.page-about :is(.about-story, .related-grid) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(36px, 5vw, 84px); }
body.page-about :is(.about-story, .related-grid) > * { min-width: 0; }
body.page-about .about-team { width: 100%; }
body.page-about .about-overview-photo { width: calc(100% - 14px); max-width: none; height: clamp(450px, 41vw, 620px); justify-self: end; margin: 0 0 14px; object-fit: cover; object-position: center 54%; }
body.page-about .about-team-photo { width: calc(100% - 14px); max-width: none; height: auto; aspect-ratio: 16 / 9; margin: 0 14px 14px 0; object-fit: cover; }
/* the group photo is wide, so its column gets a little more room */
@media (min-width: 981px) { body.page-about .related-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr); } }
@media (max-width: 980px) {
  body.page-about :is(.about-story, .related-grid) { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  body.page-about .about-overview-photo { height: clamp(320px, 90vw, 520px); }
}

/* --------------------------------------------------------------------------
   Blueprint texture so large backgrounds do not feel empty
   -------------------------------------------------------------------------- */
:root {
  --texture-on-dark:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 640' preserveAspectRatio='xMidYMid slice' fill='none' stroke='%23d6efe0' stroke-opacity='.13' stroke-width='1'%3E%3Cpath d='M-40 280C260 150 420 420 760 260S1280 -100 1660 50'/%3E%3Cpath d='M-40 314C260 184 420 454 760 294S1280 -66 1660 84'/%3E%3Cpath d='M-40 348C260 218 420 488 760 328S1280 -32 1660 118'/%3E%3Cpath d='M-40 382C260 252 420 522 760 362S1280 2 1660 152'/%3E%3Cpath d='M-40 416C260 286 420 556 760 396S1280 36 1660 186'/%3E%3Cpath d='M-40 450C260 320 420 590 760 430S1280 70 1660 220'/%3E%3Cpath d='M-40 484C260 354 420 624 760 464S1280 104 1660 254'/%3E%3Cpath d='M-40 518C260 388 420 658 760 498S1280 138 1660 288'/%3E%3Cpath d='M-40 552C260 422 420 692 760 532S1280 172 1660 322'/%3E%3Ccircle cx='1470' cy='30' r='90'/%3E%3Ccircle cx='1470' cy='30' r='150'/%3E%3Ccircle cx='1470' cy='30' r='210'/%3E%3Ccircle cx='1470' cy='30' r='270'/%3E%3Ccircle cx='60' cy='640' r='70'/%3E%3Ccircle cx='60' cy='640' r='125'/%3E%3Ccircle cx='60' cy='640' r='180'/%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(circle, #d6efe02e 1px, transparent 1.6px) 0 0 / 18px 18px,
    linear-gradient(90deg, #d6efe014 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(#d6efe014 1px, transparent 1px) 0 0 / 72px 72px;
  --texture-on-light:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 640' preserveAspectRatio='xMidYMid slice' fill='none' stroke='%23104e6e' stroke-opacity='.11' stroke-width='1'%3E%3Cpath d='M-40 280C260 150 420 420 760 260S1280 -100 1660 50'/%3E%3Cpath d='M-40 314C260 184 420 454 760 294S1280 -66 1660 84'/%3E%3Cpath d='M-40 348C260 218 420 488 760 328S1280 -32 1660 118'/%3E%3Cpath d='M-40 382C260 252 420 522 760 362S1280 2 1660 152'/%3E%3Cpath d='M-40 416C260 286 420 556 760 396S1280 36 1660 186'/%3E%3Cpath d='M-40 450C260 320 420 590 760 430S1280 70 1660 220'/%3E%3Cpath d='M-40 484C260 354 420 624 760 464S1280 104 1660 254'/%3E%3Cpath d='M-40 518C260 388 420 658 760 498S1280 138 1660 288'/%3E%3Cpath d='M-40 552C260 422 420 692 760 532S1280 172 1660 322'/%3E%3Ccircle cx='1470' cy='30' r='90'/%3E%3Ccircle cx='1470' cy='30' r='150'/%3E%3Ccircle cx='1470' cy='30' r='210'/%3E%3Ccircle cx='1470' cy='30' r='270'/%3E%3Ccircle cx='60' cy='640' r='70'/%3E%3Ccircle cx='60' cy='640' r='125'/%3E%3Ccircle cx='60' cy='640' r='180'/%3E%3C/svg%3E") center / cover no-repeat,
    radial-gradient(circle, #104e6e24 1px, transparent 1.6px) 0 0 / 18px 18px,
    linear-gradient(90deg, #104e6e0d 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(#104e6e0d 1px, transparent 1px) 0 0 / 72px 72px;
}

/* Banners: softer behind the copy, clearer towards the edges */
body .page-intro { position: relative; isolation: isolate; }
body .page-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  pointer-events: none;
  background: var(--texture-on-light);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, #0006 25%, #000 100%);
  mask-image: radial-gradient(ellipse 60% 70% at 30% 50%, #0006 25%, #000 100%);
}
body:is(.page-services, .page-about, .page-contact) .page-intro::before { background: var(--texture-on-dark); }

/* Footer on every page */
body .site-footer { position: relative; isolation: isolate; }
body .site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--texture-on-dark);
  opacity: .6;
}

/* Interactive texture: brighter grid in logo colours around the pointer */
body .texture-live { overflow: hidden; }
body .texture-live::before { inset: -24px; transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)); transition: transform .5s ease-out; }
.texture-glow {
  --glow-line: var(--brand-blue);
  --glow-dot: var(--brand-green);
  --glow-wash: #2890bf1f;
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.texture-glow::before,
.texture-glow::after { content: ''; position: absolute; inset: 0; }
.texture-glow::before { background: radial-gradient(280px circle at var(--glow-x, 50%) var(--glow-y, 50%), var(--glow-wash), transparent 72%); }
.texture-glow::after {
  background:
    radial-gradient(circle, var(--glow-dot) 1.7px, transparent 2.3px) 0 0 / 18px 18px,
    linear-gradient(90deg, var(--glow-line) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(var(--glow-line) 1px, transparent 1px) 0 0 / 72px 72px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(190px circle at var(--glow-x, 50%) var(--glow-y, 50%), #000, #0007 45%, transparent 100%);
  mask-image: radial-gradient(190px circle at var(--glow-x, 50%) var(--glow-y, 50%), #000, #0007 45%, transparent 100%);
}
body:is(.page-services, .page-about, .page-contact) .page-intro .texture-glow,
.site-footer .texture-glow { --glow-line: var(--brand-blue-highlight); --glow-dot: var(--brand-leaf-highlight); --glow-wash: #78bfdf30; }
.texture-live.is-glowing > .texture-glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) { body .texture-live::before { transform: none; transition: none; } .texture-glow { display: none; } }
html.motion-paused .texture-glow { display: none; }

/* --------------------------------------------------------------------------
   Careers page
   -------------------------------------------------------------------------- */
body.page-careers .careers-page { --career-ink: var(--ink); background: var(--paper); }

/* Banner */
body.page-careers .careers-page .career-hero { isolation: isolate; padding-block: clamp(28px, 3.5vw, 56px) clamp(80px, 8vw, 124px); background: var(--brand-band) !important; }
body.page-careers .career-hero::after { content: ''; position: absolute; left: -15%; right: -15%; bottom: -1px; height: clamp(44px, 5.5vw, 82px); background: var(--paper); clip-path: ellipse(52% 100% at 50% 100%); pointer-events: none; }
body.page-careers .career-blueprint { inset: -24px; z-index: -2; background: var(--texture-on-dark); transform: translate(var(--drift-x, 0px), var(--drift-y, 0px)); transition: transform .5s ease-out; }
body.page-careers .career-hero .texture-glow { --glow-line: var(--brand-blue-highlight); --glow-dot: var(--brand-leaf-highlight); --glow-wash: #78bfdf30; }
body.page-careers .careers-page .career-hero h1 { color: #fff; }
body.page-careers .careers-page .career-hero h1 span,
body.page-careers .careers-page .career-hero .career-eyebrow { color: var(--design-accent); }
body.page-careers .career-status-dot { background: var(--design-accent); }
body.page-careers .career-hero-copy > p:not(.career-eyebrow) { color: #deebf2; }
body.page-careers .careers-page .career-button-primary { border-color: #fff; border-radius: var(--soft-pill); background: #fff; color: var(--design-dark); box-shadow: var(--soft-shadow-up); }
body.page-careers .careers-page .career-button-primary:hover { background: var(--design-accent); color: var(--design-dark); }
body.page-careers .career-hero-link { padding: 12px 22px; border: 1px solid var(--brand-blue-highlight); border-radius: var(--soft-pill); color: #fff; }
body.page-careers .career-hero-link:hover { background: var(--brand-blue); color: #fff; }
body.page-careers .career-hero a:focus-visible { outline-color: var(--design-accent); }
body.page-careers .career-visual-frame { border: 7px solid #fff; border-radius: 30px; background: #fff; box-shadow: 0 30px 60px -24px #00000080; }
body.page-careers .career-visual-frame img { object-fit: cover; background: var(--design-dark); }
body.page-careers .career-visual-caption { background: linear-gradient(transparent 52%, #0d354aeb); }
body.page-careers .career-visual-caption > span { color: var(--design-accent); }
body.page-careers .career-visual-tag { border-radius: var(--soft-pill); background: #fff; color: var(--design-dark); box-shadow: var(--soft-shadow-up); }
body.page-careers .career-visual-tag i { color: var(--brand-green); }

/* Section headings */
body.page-careers .career-section-heading,
body.page-careers .career-life-heading { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 34px; text-align: center; }
body.page-careers .career-section-heading h2,
body.page-careers .career-life-heading h2 { margin-bottom: 0; color: var(--k-ink); }
body.page-careers .careers-page .career-section-heading > p,
body.page-careers .careers-page .career-life-heading > p { max-width: 46ch; margin: 0; color: var(--k-text); }
body.page-careers .careers-page .career-eyebrow { color: var(--brand-green); }
body.page-careers .careers-page .career-hero .career-eyebrow { color: var(--design-accent); }

/* Why Kepler X */
body.page-careers .careers-page .career-section:not(.career-tinted) { background: var(--paper); }
body.page-careers .career-benefits { gap: 20px; margin-top: 0; }
body.page-careers .careers-page .career-benefit { padding: 34px 26px; border: 1px solid var(--soft-line); border-radius: 24px; background: #fff; box-shadow: var(--soft-shadow); text-align: center; }
body.page-careers .career-benefit > i { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; background: var(--soft-green-wash); color: var(--brand-green); font-size: 1.6rem; }
body.page-careers .career-benefit:nth-child(2) > i { background: var(--soft-blue-wash); color: var(--brand-blue); }
body.page-careers .career-benefit h3 { color: var(--k-ink); font-size: 1.3rem; }
body.page-careers .career-mindset { justify-content: center; margin-top: 30px; }
body.page-careers .career-mindset > span:not(:first-child) { padding: 10px 18px; border-color: var(--soft-line); background: #fff; box-shadow: var(--soft-shadow); }

/* Open roles */
body.page-careers .careers-page .career-tinted { background: #fff; }
body.page-careers .career-role-count { background: var(--brand-green); color: #fff; }
body.page-careers .careers-page .career-job { border: 1px solid var(--soft-line); border-radius: 26px; background: #fff; box-shadow: var(--soft-shadow); }
body.page-careers .careers-page .career-job-department { display: inline-block; padding: 6px 14px; border-radius: var(--soft-pill); background: var(--soft-green-wash); color: var(--brand-green); }
body.page-careers .career-job h3 { color: var(--k-ink); }
body.page-careers .careers-page .career-location { align-items: center; gap: 7px; background: var(--soft-blue-wash); color: var(--brand-blue); }
body.page-careers .careers-page .career-job-details summary { padding: 11px 22px; border-radius: var(--soft-pill); background: var(--brand-blue); color: #fff; font-size: .88rem; }
body.page-careers .careers-page .career-job-details summary:hover { background: var(--brand-green); }
body.page-careers .career-application { border-color: var(--soft-line); }
body.page-careers .career-application p { color: var(--k-text); }
body.page-careers .careers-page .career-button-dark { border-radius: var(--soft-pill); background: var(--brand-green); color: #fff; }
body.page-careers .careers-page .career-button-dark:hover { background: var(--brand-blue); color: #fff; }

body.page-careers .careers-page .career-profile { padding: 28px clamp(22px, 3vw, 40px); border: 0; border-radius: 26px; background: var(--brand-band); box-shadow: var(--soft-shadow-up); }
body.page-careers .career-profile h3 { color: #fff; font-size: 1.35rem; }
body.page-careers .careers-page .career-profile p { color: #deebf2; }
body.page-careers .careers-page .career-profile .career-text-link { padding: 12px 28px; border-radius: var(--soft-pill); background: #fff; color: var(--design-dark); }
body.page-careers .careers-page .career-profile .career-text-link:hover { background: var(--design-accent); }
body.page-careers .careers-page .career-profile a:focus-visible { outline-color: var(--design-accent); }

/* Life at Kepler X: every photo visible in one grid */
body.page-careers .careers-page .career-life { background: var(--paper); }
body.page-careers .career-life h2 span { color: var(--brand-green); }
body.page-careers .career-life.screen-panel .career-gallery { width: min(1424px, calc(100% - 112px)); margin-inline: auto; }
body.page-careers .career-life.screen-panel .career-gallery-viewport { overflow: visible; }
body.page-careers .career-gallery-track { display: block; width: auto; }
body.page-careers .career-gallery-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 18vw, 260px); gap: 16px; padding: 0; }
body.page-careers .career-gallery-item { width: auto; border-radius: var(--soft-radius); box-shadow: var(--soft-shadow); }
body.page-careers .career-gallery-item:first-child { grid-area: span 2 / span 2; }
body.page-careers .career-gallery-item:nth-child(n + 6) { grid-column: span 2; }
body.page-careers .career-gallery-item a { height: 100%; }
body.page-careers .career-gallery-item img { height: 100%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  body.page-careers .career-gallery-item img { transition: transform .4s ease; }
  body.page-careers .career-gallery-item:hover img { transform: scale(1.04); }
  body.page-careers .career-benefit { transition: transform .3s ease, box-shadow .3s ease; }
  body.page-careers .career-benefit:hover { transform: translateY(-5px); box-shadow: var(--soft-shadow-up); }
}
@media (max-width: 760px) {
  body.page-careers .career-gallery-group { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; }
  body.page-careers .career-gallery-item:nth-child(n + 6) { grid-column: auto; }
  body.page-careers .career-gallery-item figcaption { padding: 22px 10px 9px; font-size: .72rem; }
  body.page-careers .career-gallery-item figcaption i { display: none; }
}
@media (prefers-reduced-motion: reduce) { body.page-careers .career-blueprint { transform: none; transition: none; } }
@media (max-width: 1200px) { body.page-careers .career-life.screen-panel .career-gallery { width: calc(100% - 64px); } }
@media (max-width: 760px) { body.page-careers .career-life.screen-panel .career-gallery { width: calc(100% - 40px); } }
/* An open role grows to fit, so its title stays in view */
body.page-careers .careers-page .career-job:has(details[open]) { max-height: none; overflow: visible; }
body.page-careers .career-jobs .deck-rail { align-items: start; }
