/* ==========================================================================
   Cloud Ape — "Sunny Cloud" design system
   Warm cream canvas, muted versions of the logo's sun-gold (#F0B800) and
   cloud-blue (#0070C0), rounded shapes and a friendly, playful tone.
   Loaded after bootstrap + theme CSS, so it wins on equal specificity.
   ========================================================================== */

:root {
  /* Brand — muted sun gold */
  --sun-50:  #FFF8EA;
  --sun-100: #FCEFD6;
  --sun-200: #F7DCA9;
  --sun-300: #EFC66F;
  --sun-400: #E9AB43;
  --sun-500: #DE9A2E;
  --sun-600: #C4831F;
  --sun-ink: #4A3410;

  /* Brand — muted cloud blue */
  --sky-50:  #F2F9FD;
  --sky-100: #E3F0F8;
  --sky-200: #C6E1EF;
  --sky-300: #9AC7DE;
  --sky-400: #5F9FC0;
  --sky-500: #337BA4;
  --sky-600: #2A678C;
  --sky-700: #235676;
  --sky-800: #1D4660;

  /* Warm neutrals */
  --ink:    #2B2A27;
  --body:   #56524B;
  --muted:  #6B6358;
  --cream:  #FFFAF1;
  --cream-deep: #FDF4E4;
  --line:   #EFE4D3;
  --line-strong: #E5D6BE;
  --white:  #ffffff;

  /* Shape + depth */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 40px;
  --shadow-sm: 0 2px 8px rgba(88, 66, 30, 0.06);
  --shadow-md: 0 14px 30px -12px rgba(88, 66, 30, 0.22);
  --shadow-lg: 0 30px 60px -30px rgba(35, 86, 118, 0.35);

  /* Type */
  --font-display: "Baloo 2", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Hand-drawn squiggle used under section titles */
  --squiggle: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='9' viewBox='0 0 108 9'%3E%3Cpath d='M2 6.2c13-6.6 24 3.4 37-1.4s24-5.2 37 .4 22 3.2 30 .8' fill='none' stroke='%23EFC66F' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ===== Base ===== */
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.navbar-brand h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.14;
}
h1 { font-weight: 800; }
p { margin: 0 0 16px; }
strong, b { color: var(--ink); font-weight: 800; }
a {
  color: var(--sky-600);
  text-decoration: underline;
  text-decoration-color: var(--sun-300);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover, a:focus {
  color: var(--sky-700);
  text-decoration-color: var(--sun-400);
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--sky-300);
  outline-offset: 3px;
  border-radius: 6px;
}
img { max-width: 100%; height: auto; }
::selection { background: var(--sun-200); color: var(--sun-ink); }
hr {
  border: 0;
  height: 34px;
  margin: 46px 0;
  background:
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='34' viewBox='0 0 96 34'%3E%3Ccircle cx='48' cy='17' r='7' fill='%23F7DCA9'/%3E%3Cg fill='%23E3F0F8'%3E%3Cellipse cx='22' cy='21' rx='12' ry='8'/%3E%3Cellipse cx='33' cy='18' rx='9' ry='6'/%3E%3Cellipse cx='74' cy='21' rx='12' ry='8'/%3E%3Cellipse cx='63' cy='18' rx='9' ry='6'/%3E%3C/g%3E%3C/svg%3E") no-repeat center center;
  background-size: 96px 34px;
}

/* ===== Buttons ===== */
.btn {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-template-main {
  background: var(--sky-600);
  border: 2px solid var(--sky-700);
  color: #fff;
  box-shadow: 0 3px 0 var(--sky-700);
}
.btn-template-main:hover,
.btn-template-main:focus,
.btn-template-main:active,
.btn-template-main.active {
  background: var(--sky-700);
  border-color: var(--sky-700);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--sky-700);
}
.btn-template-main:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--sky-700);
}
.btn-template-transparent-primary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

/* Shared pill button used by the home sections */
.btn-ape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-ape svg { flex: 0 0 auto; }
.btn-ape--primary {
  background: var(--sky-600);
  border-color: var(--sky-700);
  color: #fff;
  box-shadow: 0 4px 0 var(--sky-700), var(--shadow-md);
}
.btn-ape--primary:hover,
.btn-ape--primary:focus {
  background: var(--sky-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--sky-700), var(--shadow-md);
}
.btn-ape--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--sky-700);
}
.btn-ape--ghost {
  background: var(--white);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--line-strong);
}
.btn-ape--ghost:hover,
.btn-ape--ghost:focus {
  background: var(--sun-50);
  border-color: var(--sun-300);
  color: var(--sun-ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--sun-200);
}
.btn-ape--ghost:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--sun-200);
}

/* ===== Navbar ===== */
.navbar.navbar-default {
  background: rgba(255, 250, 241, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}
.navbar {
  min-height: 74px;
}
.navbar-affixed-top.affix {
  background: transparent;
}
.navbar-affixed-top.affix .navbar-default {
  box-shadow: 0 10px 30px -18px rgba(88, 66, 30, 0.35);
}
.navbar-brand {
  height: 74px;
  padding: 15px 15px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.navbar-brand img {
  max-height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 3px rgba(88, 66, 30, 0.14));
}
.navbar-brand h4,
.navbar-brand .brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--sky-600);
}
.navbar.navbar-default .navbar-nav > li > a {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--body);
  text-decoration: none;
  padding: 10px 15px;
  margin: 16px 2px;
  border-radius: 999px;
  border-top: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  letter-spacing: 0 !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.navbar.navbar-default .navbar-nav > li > a:hover,
.navbar.navbar-default .navbar-nav > li > a:focus {
  color: var(--sun-ink);
  background: var(--sun-100);
}
.navbar.navbar-default .navbar-nav > .active > a,
.navbar.navbar-default .navbar-nav > .active > a:hover,
.navbar.navbar-default .navbar-nav > .active > a:focus {
  color: var(--sky-700);
  background: var(--sky-100);
}
/* Contact gets a playful sticker treatment */
.navbar.navbar-default .navbar-nav > .nav-cta > a {
  background: var(--sun-400);
  color: var(--sun-ink);
  border: 2px solid var(--sun-500);
  padding: 9px 20px;
  margin-top: 15px;
  margin-bottom: 15px;
  box-shadow: 0 3px 0 var(--sun-600);
}
.navbar.navbar-default .navbar-nav > .nav-cta > a:hover,
.navbar.navbar-default .navbar-nav > .nav-cta > a:focus {
  background: var(--sun-300);
  color: var(--sun-ink);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--sun-600);
}
.navbar.navbar-default .navbar-nav > .nav-cta.active > a {
  background: var(--sun-400);
  color: var(--sun-ink);
}
.lang-flag {
  display: inline-flex !important;
  align-items: center;
  padding: 9px 12px !important;
  margin-left: 6px !important;
}
.lang-flag .flag {
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(43, 42, 39, 0.16);
  vertical-align: middle;
  display: block;
}
/* Eight items now, so between 992 and 1199 the row is tight enough to push the
   menu onto its own line under the brand. Tighten it rather than let the header
   grow a second row on small laptops. */
@media (min-width: 992px) and (max-width: 1199px) {
  .navbar.navbar-default .navbar-nav > li > a {
    font-size: 14px;
    padding: 10px 11px;
    margin-left: 0;
    margin-right: 0;
  }
  .navbar.navbar-default .navbar-nav > .nav-cta > a { padding: 9px 16px; }
  .navbar-brand .brand-name { font-size: 21px; }
}
.navbar-toggle {
  border: 2px solid var(--line-strong);
  border-radius: 12px;
  margin-top: 19px;
  margin-bottom: 19px;
  padding: 8px 10px;
  background: var(--white);
  color: var(--ink);
}
.navbar-toggle svg {
  color: var(--ink);
  width: 1.15em;
  height: 1.15em;
}
.navbar-toggle .icon-bar {
  background-color: var(--ink);
  border-radius: 2px;
}
.navbar-toggle:hover,
.navbar-toggle:focus {
  background: var(--sun-50) !important;
}
/* Collapse the navigation into a hamburger on tablets and below */
@media (max-width: 991px) {
  .navbar-header { float: none; }
  .navbar-toggle { display: block; }
  .navbar-collapse {
    border-top: 1px solid var(--line);
    padding-top: 8px;
    background: var(--cream);
    box-shadow: none;
  }
  .navbar-collapse.collapse { display: none !important; }
  .navbar-collapse.collapse.in { display: block !important; }
  .navbar-affixed-top .navbar-collapse.in {
    max-height: calc(100vh - 82px);
    overflow-y: auto;
    padding-bottom: 16px;
  }
  .navbar-nav,
  .navbar-nav.navbar-right { float: none !important; margin: 8px -15px; }
  .navbar-nav > li { float: none; }
  .navbar.navbar-default .navbar-nav > li > a {
    margin: 4px 10px;
    padding: 12px 16px;
  }
  .navbar.navbar-default .navbar-nav > .nav-cta > a {
    margin: 6px 10px 12px;
    text-align: center;
  }
  .navbar.navbar-default .navbar-nav > li > a:hover {
    background: var(--sun-100);
  }
  .lang-flag { margin: 4px 10px !important; }
}
@media (max-width: 767px) {
  .navbar-brand { height: 66px; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 78px 0 132px;
  background:
    radial-gradient(760px 480px at 92% -18%, var(--sun-100) 0%, rgba(252, 239, 214, 0) 68%),
    radial-gradient(680px 460px at 4% 108%, var(--sky-100) 0%, rgba(227, 240, 248, 0) 66%),
    var(--cream);
  color: var(--body);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 48px;
  align-items: center;
}
.hero-content { max-width: 700px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  padding: 8px 16px 8px 13px;
  border-radius: 999px;
  margin: 0 0 24px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow svg {
  color: var(--sun-500);
  flex: 0 0 auto;
}
.hero-title {
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.hero-title .hl {
  position: relative;
  z-index: 0;
  padding: 0 0.04em;
  color: var(--sun-600);
}
.hero-title .hl::after {
  content: "";
  position: absolute;
  left: -0.03em;
  right: -0.03em;
  bottom: 0.3em;
  height: 0.17em;
  background: var(--squiggle) no-repeat center center / 100% 100%;
  pointer-events: none;
}
.hero-subtitle {
  font-size: 19px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 34em;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero illustration */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}
.hero-blob {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side circle at 50% 44%, #FFFFFF 0%, #FFFFFF 52%, rgba(255, 255, 255, 0) 86%),
    linear-gradient(158deg, var(--sky-100) 0%, #DCEEF7 48%, var(--sun-50) 100%);
  border-radius: 47% 53% 51% 49% / 53% 47% 53% 47%;
  box-shadow: inset 0 -20px 50px rgba(255, 255, 255, 0.65), var(--shadow-lg);
}
.hero-mark {
  position: relative;
  z-index: 2;
  width: 58%;
  max-width: 250px;
  height: auto;
  filter: drop-shadow(0 18px 24px rgba(35, 86, 118, 0.22));
  animation: ape-float 7s ease-in-out infinite;
}
@keyframes ape-float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}
.hero-cloud {
  position: absolute;
  color: #fff;
  opacity: 0.95;
  filter: drop-shadow(0 12px 20px rgba(35, 86, 118, 0.12));
}
.hero-cloud--a {
  width: 132px;
  left: -18px;
  top: 24px;
  animation: cloud-drift 11s ease-in-out infinite;
}
.hero-cloud--b {
  width: 96px;
  right: -6px;
  bottom: 54px;
  color: var(--sun-100);
  animation: cloud-drift 13s ease-in-out infinite reverse;
}
@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(14px); }
}
.hero-spark {
  position: absolute;
  border-radius: 999px;
  background: var(--sun-400);
  box-shadow: 0 0 0 6px rgba(233, 171, 67, 0.16);
}
.hero-spark--1 { width: 12px; height: 12px; top: 16%; right: 8%; }
.hero-spark--2 { width: 8px; height: 8px; bottom: 20%; left: 6%; background: var(--sky-400); box-shadow: 0 0 0 6px rgba(95, 159, 192, 0.16); }

/* ===== Client logo marquee ===== */
.clients {
  position: relative;
  z-index: 3;
  margin-top: -66px;
}
.clients-band {
  position: relative;
  overflow: hidden;
  padding: 20px 0 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
/* Soft sun / cloud washes so the white band still feels part of the canvas. */
.clients-band::before,
.clients-band::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  pointer-events: none;
}
.clients-band::before {
  top: -190px;
  right: -80px;
  background: radial-gradient(closest-side, rgba(252, 239, 214, 0.9), rgba(252, 239, 214, 0));
}
.clients-band::after {
  bottom: -210px;
  left: -120px;
  background: radial-gradient(closest-side, rgba(227, 240, 248, 0.85), rgba(227, 240, 248, 0));
}
.clients-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 0 56px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.clients-label::before,
.clients-label::after {
  content: "";
  flex: 0 1 64px;
  height: 1px;
  background: linear-gradient(90deg, rgba(229, 214, 190, 0), var(--line-strong));
}
.clients-label::after {
  background: linear-gradient(270deg, rgba(229, 214, 190, 0), var(--line-strong));
}
.clients-label > span {
  white-space: nowrap;
}

/* Pause control — WCAG 2.2.2: moving content needs a way to stop. */
.clients-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.clients-toggle-label {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.clients-toggle-label:hover {
  color: var(--sky-700);
  background: var(--sky-50);
  border-color: var(--sky-200);
}
.clients-toggle:focus-visible + .clients-toggle-label {
  outline: 3px solid var(--sky-300);
  outline-offset: 2px;
}
.clients-icon {
  display: none;
  width: 12px;
  height: 12px;
}
.clients-icon--pause {
  display: block;
}
.clients-toggle:checked + .clients-toggle-label .clients-icon--pause {
  display: none;
}
.clients-toggle:checked + .clients-toggle-label .clients-icon--play {
  display: block;
}

/* Marquee: four identical groups, slide exactly one group (-25%). */
.clients-marquee {
  --gap: 56px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.clients-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: clients-scroll var(--clients-duration, 40s) linear infinite;
}
.clients-group {
  display: flex;
  align-items: center;
  gap: var(--gap);
  margin: 0;
  padding: 0 var(--gap) 0 0;
  list-style: none;
}
.clients-item {
  display: flex;
  align-items: center;
  margin: 0;
}
.clients-logo {
  height: var(--logo-h, 26px);
  width: auto;
  max-width: 190px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.6;
  mix-blend-mode: multiply;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.clients-item:hover .clients-logo {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-1px);
}
/* Fallback for entries that have a name but no logo file yet. */
.clients-wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--sky-800);
  opacity: 0.45;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}
.clients-item:hover .clients-wordmark {
  opacity: 0.85;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}
.clients-toggle:checked + .clients-toggle-label ~ .clients-marquee .clients-track {
  animation-play-state: paused;
}
@keyframes clients-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-25%, 0, 0); }
}


/* ===== Content shell ===== */
#content {
  padding: 56px 0 84px;
}
#content .container.home-content {
  max-width: 1000px;
}
#post-content {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--body);
}
#post-content > p,
#post-content > h2,
#post-content > h3,
#post-content > h4,
#post-content > blockquote,
#post-content > hr {
  max-width: 780px;
}
#post-content > p {
  margin: 0 0 18px;
}
#post-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: #4B4740;
}
#post-content h2 {
  font-size: 33px;
  font-weight: 800;
  margin: 60px 0 8px;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--ink);
  scroll-margin-top: 100px;
}
#post-content h2::after {
  content: "";
  display: block;
  width: 108px;
  height: 9px;
  margin-top: 8px;
  background: var(--squiggle) no-repeat left center;
  background-size: contain;
}
#post-content h2:first-child { margin-top: 0; }
#post-content h2 + p {
  font-size: 19px;
  line-height: 1.68;
  color: #4B4740;
  margin-top: 14px;
}
#post-content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--sky-700);
  margin: 34px 0 10px;
  padding-left: 15px;
  border-left: 4px solid var(--sun-300);
  border-radius: 2px;
  scroll-margin-top: 100px;
}
#post-content h4 {
  font-size: 19px;
  margin: 26px 0 8px;
}
#post-content ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
#post-content ul li {
  position: relative;
  flex: 1 1 340px;
  max-width: 100%;
  margin: 0;
  padding: 18px 20px 18px 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#post-content ul li:hover {
  transform: translateY(-3px);
  border-color: var(--sun-200);
  box-shadow: var(--shadow-md);
}
#post-content ul li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 26px;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--sun-300);
  transform: rotate(45deg);
}
#post-content ul li ul {
  display: block;
  margin: 10px 0 0;
}
#post-content ul li ul li {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 2px 0 2px 20px;
}
#post-content ul li ul li::before {
  top: 0.75em;
  left: 4px;
  width: 8px;
  height: 8px;
  background: var(--sky-300);
}
#post-content ol {
  padding-left: 0;
  list-style: none;
  counter-reset: ape-ol;
  margin: 18px 0 28px;
}
#post-content ol > li {
  counter-increment: ape-ol;
  position: relative;
  padding-left: 44px;
  margin-bottom: 12px;
}
#post-content ol > li::before {
  content: counter(ape-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sun-100);
  color: var(--sun-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
}
#post-content a { font-weight: 700; }
#post-content code {
  padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--sun-ink);
  background: var(--sun-50);
  border: 1px solid var(--sun-100);
  border-radius: 6px;
}
#post-content pre {
  padding: 18px 20px;
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-md);
  overflow-x: auto;
}
#post-content pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
#post-content img { border-radius: var(--r-md); }
#post-content blockquote {
  margin: 28px 0;
  padding: 20px 26px;
  background: var(--sun-50);
  border-left: 5px solid var(--sun-300);
  border-radius: var(--r-sm);
  color: #4B4740;
}
#post-content blockquote p:last-child { margin-bottom: 0; }

/* Legal pages keep plain, quiet lists */
.page-privacy #post-content ul,
.page-terms #post-content ul {
  display: block;
  margin: 14px 0 24px;
}
.page-privacy #post-content ul li,
.page-terms #post-content ul li {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 4px 0 4px 26px;
  transform: none;
}
.page-privacy #post-content ul li::before,
.page-terms #post-content ul li::before {
  top: 1.05em;
  left: 6px;
  width: 9px;
  height: 9px;
  background: var(--sun-300);
}

/* ===== Page header (interior pages) ===== */
#heading-breadcrumbs {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 260px at 88% -40%, var(--sun-100) 0%, rgba(252, 239, 214, 0) 70%),
    linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%) !important;
  border-bottom: 1px solid var(--line);
  padding: 46px 0 40px;
  margin-bottom: 0;
}
#heading-breadcrumbs h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0;
}
#heading-breadcrumbs h1::after {
  content: "";
  display: block;
  width: 120px;
  height: 9px;
  margin-top: 12px;
  background: var(--squiggle) no-repeat left center;
  background-size: contain;
}
#heading-breadcrumbs::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 50%;
  width: 120px;
  height: 60px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 60'%3E%3Cg fill='%23ffffff'%3E%3Cellipse cx='42' cy='38' rx='26' ry='17'/%3E%3Cellipse cx='66' cy='32' rx='22' ry='15'/%3E%3Cellipse cx='84' cy='40' rx='18' ry='12'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0.9;
  pointer-events: none;
}
@media (max-width: 991px) {
  #heading-breadcrumbs { padding: 36px 0 30px; }
  #heading-breadcrumbs h1 { text-align: left; }
  #heading-breadcrumbs::after { display: none; }
}

/* ===== Listing lead ===== */
.listing-lead {
  max-width: 720px;
  margin: 0 auto 34px;
  font-size: 19px;
  line-height: 1.66;
  color: #4B4740;
}
.listing-lead p:last-child { margin-bottom: 0; }

/* ===== Blog listing ===== */
#blog-listing-medium .post {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#blog-listing-medium .post:hover {
  transform: translateY(-3px);
  border-color: var(--sun-200);
  box-shadow: var(--shadow-md);
}
#blog-listing-medium .post .image {
  margin-bottom: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sun-50);
}
#blog-listing-medium .post .image img {
  border-radius: var(--r-md);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
#blog-listing-medium .post h2 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 26px;
  font-weight: 800;
  margin: 2px 0 8px;
}
#blog-listing-medium .post h2 a {
  color: var(--ink);
  text-decoration: none;
}
#blog-listing-medium .post h2 a:hover { color: var(--sky-600); }
#blog-listing-medium .post .author-category {
  float: none;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}
#blog-listing-medium .post .date-comments {
  float: none;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  background: var(--sun-50);
  border: 1px solid var(--sun-100);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}
#blog-listing-medium .post .date-comments a { color: var(--sun-600); text-decoration: none; }
#blog-listing-medium .post .intro { color: var(--body); }
#blog-listing-medium .post .read-more { text-align: left; margin: 14px 0 0; }
#blog-listing-medium .post .read-more .btn {
  font-size: 14px;
  padding: 8px 18px;
  box-shadow: none;
}

/* ===== Blog / content post meta ===== */
.post-meta {
  color: var(--muted) !important;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 12.5px;
  text-transform: uppercase;
  text-align: left !important;
  margin-bottom: 24px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-meta-author { color: var(--sky-600); }
.post-meta-sep { color: var(--sun-400); }
#blog-post > .text-muted {
  color: var(--muted) !important;
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 12.5px;
  text-transform: uppercase;
  text-align: left !important;
  margin-bottom: 22px !important;
}
#blog-post > .text-muted a { color: var(--sky-600); }

/* ===== Sidebar / aside ===== */
.ape-aside {
  position: sticky;
  top: 100px;
}
.ape-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  text-align: center;
  margin-bottom: 20px;
}
.ape-card img {
  width: 74px;
  height: auto;
  margin: 0 auto 10px;
  display: block;
}
.ape-card h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 6px;
}
.ape-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--body);
  margin: 0 0 16px;
}
.ape-card .btn { width: 100%; }
.ape-card--sun {
  background: linear-gradient(160deg, var(--sun-50), var(--sun-100));
  border-color: var(--sun-200);
}
.ape-card--sun h4 { color: var(--sun-ink); }
.ape-card--sun p { color: #6B5227; }
.ape-card__label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8A6A34;
  margin-bottom: 6px;
}
.ape-card--sun p a {
  color: var(--sun-ink);
  font-weight: 800;
  text-decoration-color: var(--sun-400);
}
.ape-card__place {
  font-size: 13px;
  line-height: 1.55;
  color: #7A5F2C;
  margin: 0;
}
.ape-card--sun p:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  .ape-aside { position: static; margin-top: 34px; }
}

/* ===== Taxonomy / certifications ===== */
.heading {
  margin-bottom: 34px;
}
.heading h1,
.heading h2,
.heading h3,
.heading h4 {
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
  padding-bottom: 0;
  display: inline-block;
}
.heading h1::after,
.heading h2::after {
  content: "";
  display: block;
  width: 108px;
  height: 9px;
  margin: 10px auto 0;
  background: var(--squiggle) no-repeat center;
  background-size: contain;
}
.text-center .heading h1::after,
.text-center .heading h2::after { margin-left: auto; margin-right: auto; }

#certifications-page .col-xs-6 > img,
#certifications-page .col-sm-4 > img {
  width: 100%;
  max-height: 150px !important;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
#certifications-page .col-xs-6:hover > img {
  transform: translateY(-4px);
  border-color: var(--sun-200);
  box-shadow: var(--shadow-md);
}
#taxonomy-list-page .btn-block,
#taxonomy-page .btn-block {
  margin-bottom: 10px;
  background: var(--white);
  color: var(--sky-700);
  border: 2px solid var(--line-strong);
  box-shadow: 0 3px 0 var(--line);
  font-size: 14px;
  padding: 12px 10px;
}
#taxonomy-list-page .btn-block:hover,
#taxonomy-page .btn-block:hover {
  background: var(--sun-50);
  border-color: var(--sun-300);
  color: var(--sun-ink);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--sun-200);
}

/* ===== Taxonomy term cloud ===== */
.term-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.term-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.term-pill:hover,
.term-pill:focus {
  transform: translateY(-2px);
  border-color: var(--sun-300);
  background: var(--sun-50);
  color: var(--sun-ink);
  text-decoration: none;
  box-shadow: 0 4px 0 var(--sun-200);
}
.term-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sun-100);
  color: #7A5F2C;
  font-size: 12.5px;
  font-weight: 800;
}

/* ===== Taxonomy index (/tags/, /categories/) ===== */
.term-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.term-index-item {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: 0 2px 0 var(--line);
}
.term-index-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.term-index-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}
.term-index-title a {
  color: var(--ink);
  text-decoration: none;
}
.term-index-title a:hover,
.term-index-title a:focus {
  color: var(--sun-ink);
  text-decoration: underline;
}
.term-index-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #4B4740;
}

/* Lead / intro blocks rendered inline in templates */
.lead {
  font-size: 19px;
  line-height: 1.66;
  color: #4B4740;
  font-weight: 400;
}

/* ===== Blog home teaser cards (if enabled) ===== */
.box-image-text .top .image img { border-radius: var(--r-md); }
.box-image-text .content h4 { font-size: 19px; }
.box-image-text .content h4 a { color: var(--ink); text-decoration: none; }

/* ===== Pager ===== */
.pager {
  border-top: 2px dotted var(--line-strong);
  padding-top: 26px;
  margin-top: 34px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-body);
  font-weight: 800;
}
.pager li > a,
.pager li > span {
  background: var(--white);
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  padding: 9px 20px;
  box-shadow: 0 3px 0 var(--line);
}
.pager li > a:hover,
.pager li > a:focus {
  background: var(--sun-50);
  color: var(--sun-ink);
  border-color: var(--sun-300);
  box-shadow: 0 5px 0 var(--sun-200);
  transform: translateY(-2px);
}
.pager .disabled > a,
.pager .disabled > a:hover {
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
  color: var(--muted);
}

/* ===== CTA ===== */
.cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(360px 300px at 88% 8%, rgba(247, 220, 169, 0.9) 0%, rgba(247, 220, 169, 0) 70%),
    radial-gradient(420px 320px at 8% 110%, var(--sky-100) 0%, rgba(227, 240, 248, 0) 70%),
    var(--sun-50);
  border: 1px solid var(--sun-100);
  border-radius: var(--r-xl);
  margin: 0 24px 84px;
  padding: 68px 0;
  color: var(--body);
  text-align: center;
}
.cta .container { position: relative; z-index: 2; }
.cta h2 {
  color: var(--ink);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.cta p {
  color: var(--body);
  font-size: 18px;
  margin: 0 auto 28px;
  max-width: 42em;
}
.cta-ape {
  width: 92px;
  height: auto;
  display: block;
  margin: 0 auto 4px;
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 16px rgba(88, 66, 30, 0.16));
}
.cta-sun {
  position: absolute;
  right: 6%;
  top: 14%;
  width: 110px;
  height: 110px;
  color: var(--sun-300);
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 767px) {
  .cta { margin: 0 12px 56px; padding: 46px 0; border-radius: var(--r-lg); }
  .cta-sun { display: none; }
}

/* ===== Footer ===== */
#footer {
  position: relative;
  overflow: hidden;
  background: var(--sky-700);
  color: rgba(255, 250, 241, 0.82);
  padding: 62px 0 46px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  margin-top: 6px;
}
#footer::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: var(--sun-400);
  opacity: 0.18;
  pointer-events: none;
}
#footer .container { position: relative; z-index: 1; }
#footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-200);
  margin: 0 0 14px;
}
#footer p { color: rgba(255, 250, 241, 0.82); }
#footer strong { color: #fff; }
#footer a { color: #FFF4E0; text-decoration: none; }
#footer a:hover { color: var(--sun-200); }
#footer .text-uppercase { letter-spacing: 0.08em; color: rgba(255, 250, 241, 0.72); }
#footer ul { padding-left: 0; list-style: none; }
#footer .btn-template-main {
  background: var(--sun-400);
  border-color: var(--sun-500);
  color: var(--sun-ink);
  box-shadow: 0 3px 0 var(--sun-600);
}
#footer .btn-template-main:hover {
  background: var(--sun-300);
  color: var(--sun-ink);
  box-shadow: 0 5px 0 var(--sun-600);
}
#footer .blog-entries .item { margin-bottom: 14px; }
#footer .blog-entries .item .image img {
  border-radius: var(--r-sm);
  width: 74px;
  height: 56px;
  object-fit: cover;
}
#footer .blog-entries .item .name h5 { margin: 0; font-size: 14px; }
#footer .blog-entries .item .name a { color: #FFF4E0; }
#footer .social-link-footer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.12);
  transition: background 0.15s ease, transform 0.15s ease;
}
#footer .social-link-footer svg { fill: var(--sun-200); }
#footer .social-link-footer:hover {
  background: var(--sun-400);
  transform: translateY(-2px);
}
#footer .social-link-footer:hover svg { fill: var(--sun-ink); }

#copyright {
  background: var(--sky-800);
  color: rgba(255, 250, 241, 0.7);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 250, 241, 0.1);
  font-size: 12px;
  line-height: 1.7;
}
#copyright a { color: rgba(255, 250, 241, 0.78); text-decoration: none; }
#copyright a:hover { color: var(--sun-200); }
#copyright strong { color: rgba(255, 250, 241, 0.9); }
#copyright .ape-signoff {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--sun-200);
}
@media (max-width: 767px) {
  #footer { border-radius: var(--r-lg) var(--r-lg) 0 0; padding: 44px 0 30px; }
  #footer .pull-right { float: none !important; text-align: left !important; }
}

/* Footer layout */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-brand img {
  width: 52px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.18));
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  color: #fff;
  letter-spacing: -0.01em;
}
.footer-tagline {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 250, 241, 0.78);
  max-width: 32em;
  margin-bottom: 0;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-contact { text-align: left; }
.footer-address .text-uppercase {
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 250, 241, 0.82);
}
.footer-address p {
  margin-bottom: 18px;
  line-height: 1.6;
}
.footer-contact .btn { margin-top: 2px; }
.copyright-right { text-align: right; }
.copyright-links {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.copyright-links .sep {
  margin: 0 9px;
  opacity: 0.4;
}
.copyright-fine {
  font-size: 11.5px;
  line-height: 1.6;
  opacity: 0.78;
}
.copyright-fine .ape-signoff {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--sun-200);
  opacity: 1;
  margin-top: 4px;
}

/* ===== Forms ===== */
label {
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 6px;
}
.form-control {
  border: 2px solid var(--line-strong);
  border-radius: var(--r-sm);
  box-shadow: none;
  background: var(--white);
  color: var(--body);
  font-size: 16px;
  height: auto;
  padding: 12px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea.form-control { min-height: 150px; }
.form-control:focus {
  border-color: var(--sky-400);
  box-shadow: 0 0 0 4px rgba(95, 159, 192, 0.18);
  outline: 0;
}
.form-group { margin-bottom: 18px; }

/* ===== Contact page ===== */
#contact section { margin-bottom: 34px; }
#contact h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-size: 25px;
  margin: 0 0 14px;
}
#contact .heading h3 {
  border-left: 4px solid var(--sun-300);
  padding-left: 15px;
  text-transform: none;
}
#contact address,
#contact .text-uppercase { color: var(--body); }
#contact .col-md-4 section {
  background: linear-gradient(160deg, var(--sun-50), var(--white));
  border: 1px solid var(--sun-100);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
#contact .col-md-4 h3 { font-size: 20px; }
#contact .col-md-4 .text-uppercase {
  text-transform: none;
  letter-spacing: 0;
  color: var(--body);
  line-height: 1.75;
}
#contact .col-md-4 .text-uppercase strong {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 2px;
}
#contact .col-md-4 strong { color: var(--sun-ink); }
#contact form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 26px 18px;
  box-shadow: var(--shadow-sm);
}
#contact .btn-template-main { font-size: 16px; padding: 13px 28px; }

/* ===== Small utilities ===== */
.text-muted { color: var(--muted) !important; }
.required { color: var(--sun-600); }
.bar.background-white { background: var(--cream); }
.background-white { background: var(--cream); }
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
  .hero-title { font-size: clamp(36px, 5vw, 54px); }
  .hero-blob { width: min(360px, 100%); }
}
@media (max-width: 991px) {
  .hero { padding: 60px 0 96px; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .hero-content { max-width: none; }
  .hero-art { order: -1; min-height: 0; }
  .hero-blob { width: min(290px, 78%); }
  .hero-cloud--a { width: 96px; left: 2%; top: 6%; }
  .hero-cloud--b { width: 70px; right: 4%; bottom: 6%; }
  .clients { margin-top: -52px; }
  .clients-marquee { --gap: 44px; }
  #post-content h2 { font-size: 29px; }
  #blog-listing-medium .post h2 { font-size: 23px; }
}
@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .hero { padding: 46px 0 88px; }
  .hero-title { font-size: clamp(32px, 8.6vw, 42px); }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-ape { width: 100%; font-size: 16px; padding: 13px 22px; }
  .hero-art { margin-bottom: 6px; }
  .hero-blob { width: min(250px, 72%); }
  .hero-spark--1 { display: none; }
  .clients { margin-top: -44px; }
  .clients-band { padding: 16px 0 20px; border-radius: var(--r-md); }
  .clients-label { padding: 0 46px; margin-bottom: 14px; font-size: 10px; letter-spacing: 0.15em; gap: 10px; }
  .clients-label::before,
  .clients-label::after { flex-basis: 22px; }
  .clients-marquee {
    --gap: 34px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%);
  }
  .clients-logo { height: calc(var(--logo-h, 26px) * 0.86); max-width: 140px; }
  .clients-wordmark { font-size: 18px; }
  .clients-toggle-label { top: 8px; right: 10px; width: 26px; height: 26px; }
  #content { padding: 48px 0 56px; }
  #post-content h2 { font-size: 26px; margin-top: 44px; }
  #post-content h2 + p { font-size: 17.5px; }
  #post-content ul { display: block; }
  #post-content ul li { margin-bottom: 12px; }
  #post-content ul li { padding: 16px 18px 16px 44px; }
  #post-content ul li::before { left: 18px; top: 24px; }
  #post-content h3 { font-size: 20px; }
  .ape-card { padding: 20px; }
  #footer { padding: 40px 0 26px; }
  #copyright { padding: 16px 0; text-align: center; }
  #copyright .pull-left,
  #copyright .pull-right { float: none !important; text-align: center !important; }
  #blog-listing-medium .post { padding: 16px; }
  #blog-listing-medium .post .image { margin-bottom: 14px; }
}

/* ===== Footer service areas ===== */
.footer-areas {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 250, 241, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  font-size: 14px;
}
.footer-areas-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun-200);
}
.footer-areas-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}
.footer-areas-links a {
  color: #FFF4E0;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 244, 224, 0.32);
}
.footer-areas-links a:hover {
  color: var(--sun-200);
  border-bottom-color: var(--sun-200);
}
.footer-areas .area-sep { color: rgba(255, 250, 241, 0.4); }

/* ===== Contact page map link ===== */
.contact-map-link { margin-top: 14px; font-size: 15px; }
.contact-map-link a { font-weight: 600; }

/* ===== Motion preferences ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* The marquee becomes a quiet, static grid of logos. */
  .clients-toggle,
  .clients-toggle-label {
    display: none;
  }
  .clients-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .clients-track {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 24px;
    animation: none !important;
    transform: none !important;
  }
  .clients-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 40px;
    padding: 0 24px;
  }
  .clients-group + .clients-group {
    display: none;
  }
}

/* ==========================================================================
   Page notice (About → /cv/ pointer)
   ========================================================================== */
.page-notice {
  background: linear-gradient(160deg, var(--sun-50), var(--sun-100));
  border: 1px solid var(--sun-200);
  border-left: 5px solid var(--sun-400);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #6B5227;
}
.page-notice a {
  color: var(--sun-ink);
  font-weight: 800;
  text-decoration-color: var(--sun-400);
}
.page-notice p { margin: 0; }

.footer-cv-link {
  margin: 14px 0 0;
  font-size: 14px;
}
.footer-cv-link a {
  color: var(--sky-700);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sun-300);
  text-underline-offset: 3px;
}

/* ==========================================================================
   Home — "for recruiters" strip
   One clear route from the home page to /cv/, without putting a job-hunting
   link in the navigation of a consulting site.
   ========================================================================== */
.recruiter-band {
  margin-top: 18px;
}
.recruiter-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, var(--sky-50), var(--white) 70%);
  border: 1px solid var(--sky-100);
  border-radius: var(--r-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
}
.recruiter-band-copy { min-width: 0; }
.recruiter-band-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky-600);
}
.recruiter-band-title {
  margin: 0 0 4px;
  padding: 0;
  border: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
}
.recruiter-band-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}
.recruiter-band .btn-ape { flex: 0 0 auto; }

@media (max-width: 767px) {
  .recruiter-band-inner { padding: 20px 20px; }
  .recruiter-band .btn-ape { width: 100%; }
}

/* ==========================================================================
   /cv/ — candidate brief for recruiters
   In the English main menu and behind the home-page recruiter strip; the
   visual language is still the site's.
   ========================================================================== */
/* The hero carries the name, so the breadcrumb strip (which would be an
   empty white band because hide_h1 is set) is dropped entirely. */
.page-cv #heading-breadcrumbs { display: none; }

.cv-hero {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  background:
    radial-gradient(520px 320px at 92% -10%, rgba(247, 220, 169, 0.85) 0%, rgba(247, 220, 169, 0) 70%),
    radial-gradient(420px 300px at -10% 110%, var(--sky-100) 0%, rgba(227, 240, 248, 0) 70%),
    var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 38px 40px 34px;
  box-shadow: var(--shadow-md);
}
.cv-portrait {
  flex: 0 0 168px;
  width: 168px;
}
.cv-portrait img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  /* Stored square (513x513), so the circular mask cannot frame it differently
     on the page and in the PDF. */
  object-position: 50% 50%;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
  display: block;
}
.cv-hero-main { flex: 1 1 auto; min-width: 0; }

.cv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sky-700);
}
.cv-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2E9E5B;
  box-shadow: 0 0 0 4px rgba(46, 158, 91, 0.16);
}
.cv-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
}
.cv-role {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--sky-600);
  margin: 0 0 14px;
}
.cv-intro {
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  margin: 0 0 16px;
  max-width: 60ch;
}

.cv-status {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 14.5px;
  color: var(--body);
}
.cv-status li { position: relative; }
/* No separators. A middle dot either leads the next item (stranding a "·" at
   the start of a wrapped line) or trails this one (dangling at the end), and
   this list wraps at every width. Spacing separates them cleanly. */
.cv-status strong { color: var(--ink); }

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cv-actions .btn-ape { font-size: 15px; padding: 12px 22px; }

/* Facts strip */
.cv-facts {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cv-fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.cv-fact-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  color: var(--sky-700);
}
.cv-fact-label {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* Two-column body */
.cv-body { margin-top: 40px; }

.cv-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 14px;
  padding: 0;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: none;
}
.cv-h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  margin: 8px 0 0;
  background: var(--squiggle) no-repeat left center;
  background-size: contain;
}
.cv-section { margin-bottom: 38px; }
.cv-prose p {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--body);
  margin: 0 0 14px;
}
.cv-prose p:last-child { margin-bottom: 0; }

.cv-section--remote {
  background: var(--sky-50);
  border: 1px solid var(--sky-100);
  border-radius: var(--r-md);
  padding: 24px 26px;
}
.cv-section--remote .cv-h2 { color: var(--sky-800); }

/* Same size as the other actions: the filled treatment is what marks it out,
   not extra bulk. */
.cv-actions-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

/* Role chips */
.cv-chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.cv-chips li {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sky-700);
}

/* Experience timeline */
.cv-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}
.cv-job {
  position: relative;
  padding: 0 0 26px 26px;
}
.cv-job::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--sun-400);
}
.cv-job:last-child { padding-bottom: 0; }
.cv-job-role {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 2px;
}
.cv-via {
  display: inline-block;
  margin-left: 9px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sky-500);
}
.cv-job-company {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--sky-700);
  margin: 0 0 2px;
}
.cv-job-meta {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 9px;
}
.cv-job-dates { font-weight: 700; }
.cv-sep { margin: 0 7px; color: var(--sun-500); }
.cv-job-bullets {
  margin: 0;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--body);
}
.cv-job-bullets li { margin-bottom: 5px; }
.cv-earlier {
  margin: 22px 0 0;
  padding: 14px 18px;
  background: var(--cream-deep);
  border-radius: var(--r-sm);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* Aside */
.cv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 38px;
}
.cv-card--contact {
  background: linear-gradient(160deg, var(--sun-50), var(--white));
  border-color: var(--sun-200);
}
.cv-card-actions {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
}
.cv-card-actions a {
  color: var(--sky-700);
  text-decoration-color: var(--sun-300);
  text-underline-offset: 3px;
}
.cv-dl { margin: 0; font-size: 14.5px; }
.cv-dl dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 12px;
}
.cv-dl dt:first-child { margin-top: 0; }
.cv-dl dd {
  margin: 2px 0 0;
  line-height: 1.45;
  color: var(--ink);
}
.cv-skill-group { margin-bottom: 14px; }
.cv-skill-group:last-child { margin-bottom: 0; }
.cv-skill-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sky-600);
  margin: 0 0 3px;
}
.cv-skill-items {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--body);
}
.cv-edu { margin-bottom: 14px; }
.cv-edu:last-child { margin-bottom: 0; }
.cv-edu-school {
  margin: 0;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.cv-edu-detail {
  margin: 0;
  font-size: 14px;
  color: var(--body);
}
.cv-edu-dates {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.cv-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
}
.cv-list li { margin-bottom: 4px; }
.cv-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.cv-note a { color: var(--sky-600); }

/* Closing band */
.cv-contact-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 10px;
  background:
    radial-gradient(360px 240px at 90% 0%, rgba(247, 220, 169, 0.9) 0%, rgba(247, 220, 169, 0) 70%),
    var(--sun-50);
  border: 1px solid var(--sun-100);
  border-radius: var(--r-lg);
  padding: 26px 30px;
}
.cv-contact-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--sun-ink);
  margin: 0 0 3px;
}
.cv-contact-sub {
  margin: 0;
  font-size: 15px;
  color: #6B5227;
}
.cv-contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 991px) {
  .cv-hero { flex-direction: column; padding: 28px 24px; gap: 20px; }
  .cv-portrait, .cv-portrait img { width: 120px; height: 120px; flex-basis: auto; }
  .cv-facts { grid-template-columns: repeat(2, 1fr); }
  .cv-aside { margin-top: 8px; }
  .cv-contact-band { padding: 22px 20px; }
}
@media (max-width: 480px) {
  .cv-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cv-fact { padding: 13px 14px; }
  .cv-status { flex-direction: column; gap: 6px; }
  .cv-actions .btn-ape { width: 100%; }
}

/* ==========================================================================
   Print — this is what the PDF CV is built from, so the PDF can never drift
   from the page. `scripts/build-cv-pdf.sh` renders /cv/ through headless
   Chromium, which honours these rules.
   ========================================================================== */
@media print {
  @page { size: A4; margin: 11mm 11mm 12mm; }
  html, body { background: #fff !important; font-size: 10pt; }
  .navbar-affixed-top, #heading-breadcrumbs, #footer, #copyright,
  .cv-actions, .cv-actions-note, .cv-contact-band, .social-link-footer { display: none !important; }
  #content { padding: 0 !important; }
  .container { width: auto !important; max-width: none !important; padding: 0 !important; }
  .row { margin-left: 0 !important; margin-right: 0 !important; }

  .cv-hero {
    display: flex;
    flex-direction: row;
    gap: 7mm;
    box-shadow: none;
    border: none;
    border-bottom: 1.5pt solid var(--line-strong);
    border-radius: 0;
    padding: 0 0 10px;
    background: none !important;
  }
  .cv-portrait, .cv-portrait img { width: 24mm; height: 24mm; flex: 0 0 24mm; }
  .cv-name { font-size: 24pt; line-height: 1; }
  .cv-role { font-size: 11pt; margin-bottom: 6px; }
  .cv-eyebrow { font-size: 8pt; margin-bottom: 4px; }
  .cv-intro { font-size: 9.5pt; line-height: 1.4; margin-bottom: 8px; max-width: none; }
  .cv-status { font-size: 9pt; gap: 4px 18px; margin-bottom: 0; }

  .cv-facts {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 5px;
    margin-top: 10px;
  }
  .cv-fact { padding: 7px 9px; box-shadow: none; border-radius: 6px; }
  .cv-fact-value { font-size: 10.5pt; }
  .cv-fact-label { font-size: 7.5pt; line-height: 1.25; }

  .cv-body {
    display: flex !important;
    align-items: flex-start;
    gap: 7mm;
    margin-top: 14px;
  }
  .cv-main { flex: 0 0 62%; width: 62% !important; padding: 0 !important; min-width: 0; }
  .cv-aside { flex: 0 0 33%; width: 33% !important; padding: 0 !important; min-width: 0; }
  .cv-aside p, .cv-aside h3, .cv-aside li { white-space: normal !important; overflow-wrap: break-word; }

  .cv-h2 { font-size: 11.5pt; margin-bottom: 6px; }
  .cv-h2::after { height: 3px; width: 32px; margin-top: 3px; }
  .cv-section { margin-bottom: 9px; break-inside: auto; }
  .cv-prose p { font-size: 9.2pt; line-height: 1.42; margin-bottom: 5px; }
  .cv-section--remote { padding: 9px 11px; background: var(--sky-50) !important; }
  .cv-chips { gap: 4px; }
  .cv-chips li { font-size: 8pt; padding: 3px 8px; }
  .cv-timeline { border-left-width: 1px; }
  .cv-job { padding: 0 0 7px 14px; break-inside: avoid; }
  .cv-job::before { width: 6px; height: 6px; border-width: 2px; left: -4px; top: 4px; }
  .cv-job-role { font-size: 10pt; }
  .cv-via { font-size: 7pt; }
  .cv-job-company { font-size: 9pt; }
  .cv-job-meta { font-size: 7.5pt; margin-bottom: 3px; }
  .cv-job-bullets { font-size: 8.6pt; line-height: 1.38; padding-left: 14px; }
  .cv-job-bullets li { margin-bottom: 2px; }
  .cv-earlier { font-size: 8pt; padding: 7px 10px; margin-top: 8px; }

  .cv-card { padding: 10px 12px; margin-bottom: 11px; box-shadow: none; break-inside: avoid; }
  .cv-dl { font-size: 8pt; }
  .cv-dl dt { font-size: 6.5pt; margin-top: 6px; }
  .cv-dl dd { font-size: 8.2pt; }
  .cv-card-actions { font-size: 8pt; gap: 2px; margin-top: 8px; }
  .cv-skill-group { margin-bottom: 6px; }
  .cv-skill-title { font-size: 7pt; }
  .cv-skill-items { font-size: 7.8pt; line-height: 1.35; }
  .cv-edu, .cv-skill-group, .cv-dl, .cv-list { break-inside: avoid; }
  .cv-edu { margin-bottom: 6px; }
  .cv-edu-school { font-size: 8.4pt; }
  .cv-edu-detail, .cv-list { font-size: 7.8pt; }
  .cv-edu-dates, .cv-note { font-size: 7pt; }
  .cv-list li { margin-bottom: 1px; }

  /* Bootstrap 3's print stylesheet appends " (href)" after every link, which
     turns a mailto and a LinkedIn anchor into unreadable noise on paper. */
  a[href]:after, a[href]::after, a[href]:before, a[href]::before { content: none !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .cv-h2 { break-after: avoid; }
  /* Chromium will not reliably keep a heading with its list inside a flex
     column, and an "Experience" heading alone at the foot of page 1 looks
     like a mistake. Start the history on its own page instead. */
  .cv-section--experience { break-before: page; }
  .cv-main a, .cv-aside a { color: inherit !important; }
}
