/* Kent Systems Africa — site styles
   Palette: lake teal, malachite, kente gold, cool paper, graphite ink. */

:root {
  --lake: #0D3B40;
  --lake-deep: #082A2E;
  --malachite: #1E7A57;
  --malachite-light: #5FC79A;
  --gold: #E2A62B;
  --gold-soft: #F4DDA6;
  --paper: #F3F5F2;
  --white: #FFFFFF;
  --ink: #1A2220;
  --muted: #52605C;
  --line: #D4DDD8;
  --on-dark: #E8EFEC;
  --on-dark-muted: #A9BDB7;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 10vw, 128px);
  --radius-s: 6px;
  --radius-m: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1.2; }
h4 { font-size: 1.125rem; letter-spacing: 0; line-height: 1.3; }

.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.55; max-width: 38em; color: var(--muted); }
.measure { max-width: 40em; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--lake); color: var(--on-dark); }
.section--dark .lede, .section--dark .muted { color: var(--on-dark-muted); }
.muted { color: var(--muted); }

/* The kente strip: a woven band used as the site's recurring divider */
.kente {
  height: 10px;
  background:
    repeating-linear-gradient(90deg,
      var(--gold) 0 34px, var(--lake) 34px 40px,
      var(--malachite) 40px 58px, var(--lake) 58px 62px,
      var(--gold) 62px 70px, var(--lake) 70px 76px,
      var(--malachite-light) 76px 84px, var(--lake) 84px 90px);
}
.kente--thin { height: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 16px 24px; border-radius: var(--radius-s);
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #F0B947; }
.btn--line { border-color: currentColor; color: inherit; background: transparent; }
.btn--line:hover { background: rgba(255,255,255,.08); }
.section--white .btn--line:hover, .page-light .btn--line:hover { background: rgba(13,59,64,.06); }
.btn--lake { background: var(--lake); color: var(--white); }
.btn--lake:hover { background: var(--lake-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  font-weight: 600; color: var(--malachite); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.section--dark .text-link { color: var(--gold); }
.text-link:hover { color: var(--lake); }
.section--dark .text-link:hover { color: var(--gold-soft); }

/* ---------- Header: same shell as the Kent Toolkit ----------
   Workspaces across the top (a gold underline marks where you are), a kente edge,
   section tabs underneath, search (Ctrl K), and a bottom tab bar on phones. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--lake-deep); color: var(--on-dark); }
.site-header::after { content: ""; display: block; height: 4px; background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='8' viewBox='0 0 90 8'><rect x='0' width='34' height='8' fill='%23E2A62B'/><rect x='34' width='6' height='8' fill='%230D3B40'/><rect x='40' width='18' height='8' fill='%231E7A57'/><rect x='58' width='4' height='8' fill='%230D3B40'/><rect x='62' width='8' height='8' fill='%23E2A62B'/><rect x='70' width='6' height='8' fill='%230D3B40'/><rect x='76' width='8' height='8' fill='%235FC79A'/><rect x='84' width='6' height='8' fill='%230D3B40'/></svg>") repeat-x left center / auto 100%; }
.site-header__bar { display: flex; align-items: center; gap: 12px 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); flex: none; }
.brand img { width: 36px; height: 36px; }
.brand img.brand__lockup { width: auto; height: 40px; }
.brand img.brand__lockup--footer { height: 52px; margin-bottom: 20px; }

.ws { display: flex; gap: 2px; height: 100%; }
.ws a { position: relative; display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 13px; white-space: nowrap; color: #BFD0CA; text-decoration: none; font-weight: 600; font-size: 1rem; transition: color .15s ease, background-color .15s ease; }
.ws a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.ws a[aria-current] { color: var(--white); }
.ws a[aria-current] svg { color: var(--gold); }
.ws a[aria-current]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); }
.ws svg, .search-btn svg, .header-cta svg, .subnav__title svg, .qa__ico svg, .palette svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
.ws a[data-ws="contact"] { display: none; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search-btn { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #BFD0CA; border-radius: 8px; padding: 9px 9px 9px 12px; font: inherit; font-size: .95rem; cursor: pointer; }
.search-btn:hover { background: rgba(255,255,255,.12); color: var(--white); }
.search-btn svg { width: 18px; height: 18px; }
.search-btn__lbl { display: none; }
kbd { font-family: var(--body); font-size: .75rem; font-weight: 600; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--white); color: var(--muted); white-space: nowrap; }
.search-btn kbd { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #BFD0CA; }
.header-cta { padding: 11px 16px 11px 18px; font-size: .98rem; white-space: nowrap; }
.header-cta svg { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .15s ease; }
.header-cta:hover svg { transform: translateX(2px); }

/* Section tabs under the header */
.subnav { background: var(--white); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.subnav__title { display: flex; align-items: center; gap: 9px; flex: none; padding-right: 16px; border-right: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--lake); }
.subnav__title svg { color: var(--malachite); }
.subnav__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 9px 0; min-width: 0; }
.subnav__tabs::-webkit-scrollbar { display: none; }
.subnav__tabs.is-more { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.subnav__tabs a { white-space: nowrap; padding: 7px 15px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: .98rem; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.subnav__tabs a:hover { background: var(--paper); color: var(--lake); }
.subnav__tabs a[aria-current] { background: var(--lake); color: var(--white); }

/* Narrower laptops: the proposal button gives way to a Contact tab */
@media (max-width: 1260px) { .header-cta, .search-btn kbd { display: none; } .ws a[data-ws="contact"] { display: flex; } .ws a { padding: 0 11px; } .site-header__bar { gap: 12px 18px; } }
@media (min-width: 1025px) and (max-width: 1120px) { .ws a svg { display: none; } }

/* Tablets and phones: the workspaces become a tab bar at the bottom of the screen */
@media (max-width: 1024px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .site-header__bar { height: 60px; }
  .brand img.brand__lockup { height: 34px; }
  .ws { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--lake-deep); border-top: 1px solid rgba(255,255,255,.1); box-shadow: 0 -6px 20px rgba(8,42,46,.18); gap: 0; }
  .ws a, .ws a[data-ws="contact"] { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 3px; padding: 0; font-size: .74rem; }
  .ws a svg { width: 22px; height: 22px; }
  .ws a[aria-current]::after { top: 0; bottom: auto; left: 22%; right: 22%; border-radius: 0 0 3px 3px; }
  .subnav__inner { min-height: 50px; gap: 12px; }
}
@media (max-width: 560px) { .subnav__title { font-size: 0; gap: 0; padding-right: 12px; } }
@media (max-width: 360px) { .brand img.brand__lockup { height: 30px; } }

/* Search (Ctrl K) */
.palette { position: fixed; inset: 0; z-index: 120; background: rgba(8,42,46,.6); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.palette__box { width: min(640px, 100%); max-height: 72vh; background: var(--white); border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; display: flex; flex-direction: column; }
.palette__in { display: flex; align-items: center; gap: 10px; padding: 4px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette__in input { border: 0; padding: 15px 0; font-size: 1.1rem; box-shadow: none; background: none; }
.palette__in input:focus { box-shadow: none; }
.palette__in input::-webkit-search-cancel-button { display: none; }
.palette__list { overflow-y: auto; padding: 6px; }
.palette__g { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); padding: 12px 10px 4px; }
.palette__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px 8px 8px; border-radius: 8px; background: none; border: 0; text-align: left; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.palette__item.is-on { background: #E8F2EE; }
.palette__item.is-on::after { content: "↵"; margin-left: auto; color: var(--malachite); font-weight: 700; }
.palette__ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: #E4EEEC; color: var(--lake); }
.palette__ico svg { width: 19px; height: 19px; }
.palette__t { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.palette__t strong { color: var(--lake); font-weight: 600; font-size: 1rem; }
.palette__t em { font-style: normal; font-size: .88rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette__none { margin: 0; padding: 22px 14px; color: var(--muted); font-size: 1rem; }
.palette__foot { display: flex; gap: 18px; padding: 9px 16px; border-top: 1px solid var(--line); background: #FAFBFA; font-size: .82rem; color: var(--muted); }
.palette__foot kbd { margin-right: 3px; }
@media (max-width: 1024px) { .palette { padding-top: 10px; } .palette__box { max-height: calc(100vh - 100px); } .palette__foot { display: none; } }

/* Quick actions (home hero), same as the Toolkit's Home page */
.quick { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px; }
.qa { display: flex; align-items: center; gap: 12px; padding: 9px 18px 9px 9px; border-radius: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; transition: background-color .15s ease, border-color .15s ease; }
.qa:hover { background: rgba(255,255,255,.15); border-color: rgba(226,166,43,.7); }
.qa__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: rgba(226,166,43,.2); color: var(--gold); }
.qa__ico svg { width: 18px; height: 18px; }
.qa--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.qa--gold:hover { background: #F0B947; border-color: #F0B947; }
.qa--gold .qa__ico { background: rgba(8,42,46,.1); color: var(--ink); }
@media (max-width: 480px) { .quick { grid-template-columns: 1fr 1fr; } .qa { font-size: .92rem; padding-right: 10px; } }
@media print { .ws, .subnav, .palette, .search-btn { display: none !important; } body { padding: 0 !important; } }

/* ---------- Home hero ---------- */
.hero { background: var(--lake-deep); color: var(--on-dark); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px);
}
.hero h1 { color: var(--white); max-width: 11em; }
.hero .lede { color: var(--on-dark-muted); margin-bottom: 32px; }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 40px 0 0; padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.12); list-style: none; font-size: .95rem; color: var(--on-dark-muted);
}
.hero__proof li { display: flex; align-items: center; gap: 8px; }
.hero__proof li::before { content: ""; width: 8px; height: 8px; background: var(--malachite-light); border-radius: 1px; }

.map { position: relative; }
.map svg { width: 100%; height: auto; overflow: visible; }
.map .land { fill: url(#dots); stroke: rgba(169,189,183,.35); stroke-width: 1; }
.map .route {
  fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  animation: draw 1.1s cubic-bezier(.6,.05,.3,1) forwards;
}
.map .node { fill: var(--white); }
.map .node--hub { fill: var(--gold); }
.map .ring { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: 0; transform-origin: center; transform-box: fill-box; animation: ring 2.4s ease-out 1.6s infinite both; }
.map .packet__dot { fill: var(--white); }
.map .packet__glow { fill: var(--gold); opacity: .35; }
.map .city { fill: var(--on-dark); font-family: var(--body); font-size: 20px; font-weight: 600; opacity: 0; animation: fade .5s ease forwards;
  /* dark outline so names stay readable where routes cross them */
  paint-order: stroke; stroke: var(--lake-deep); stroke-width: 5px; stroke-linejoin: round; }
.map .city--hub { fill: var(--gold); font-size: 24px; font-weight: 700; }
.map__caption { margin-top: 12px; font-size: .9rem; color: var(--on-dark-muted); max-width: 30em; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

@media (prefers-reduced-motion: reduce) {
  .map .route { animation: none; stroke-dashoffset: 0; }
  .map .city { animation: none; opacity: 1; }
  .map .ring { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .map { max-width: 460px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--lake-deep); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero__inner { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(48px, 6vw, 80px); position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); max-width: 14em; }
.page-hero .lede { color: var(--on-dark-muted); }
.page-hero--photo { min-height: 420px; display: flex; align-items: flex-end; }
.page-hero--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero--photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8,42,46,.95) 0%, rgba(8,42,46,.82) 45%, rgba(8,42,46,.35) 100%);
}
.page-hero--photo .wrap { position: relative; z-index: 1; }

/* ---------- Sectors list (home) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--wide-left { grid-template-columns: 1fr; } }

.sector-list { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sector-list li { border-bottom: 1px solid var(--line); }
.sector-list a {
  display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 8px 24px; align-items: baseline;
  padding: 22px 0; text-decoration: none;
}
.sector-list strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.sector-list span { color: var(--muted); }
.sector-list a:hover strong { color: var(--malachite); }
@media (max-width: 560px) { .sector-list a { grid-template-columns: 1fr; } }

.photo-stack { position: relative; }
.photo-stack img { border-radius: var(--radius-m); width: 100%; object-fit: cover; }
.photo-stack .main { aspect-ratio: 4 / 5; }
.photo-stack .inset {
  position: absolute; width: 52%; aspect-ratio: 1; left: -10%; bottom: -8%;
  border: 6px solid var(--paper); border-radius: var(--radius-m);
}
.section--white .photo-stack .inset { border-color: var(--white); }
@media (max-width: 860px) { .photo-stack { max-width: 520px; margin-bottom: 40px; } .photo-stack .inset { left: auto; right: -4%; } }

/* ---------- Capabilities (home) ---------- */
.capabilities { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 2px solid var(--gold); }
.capability { padding: 28px 28px 8px 0; }
.capability + .capability { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.capability h3 { color: var(--white); font-size: 1.6rem; margin-bottom: 12px; }
.capability p { color: var(--on-dark-muted); font-size: 1rem; }
.capability ul { list-style: none; padding: 0; margin: 16px 0 0; }
.capability li { padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); font-weight: 600; font-size: 1rem; }
.capability li a { text-decoration: none; }
.capability li a:hover { color: var(--gold); }
@media (max-width: 960px) {
  .capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .capability:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 560px) {
  .capabilities { grid-template-columns: 1fr; }
  .capability + .capability { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Conditions band ---------- */
.band { position: relative; color: var(--white); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(8,42,46,.86); }
.band .wrap { position: relative; z-index: 1; }
.band h2 { max-width: 16em; }
.conditions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; margin-top: 48px; }
.conditions h3 { color: var(--gold); font-size: 1.2rem; margin-bottom: 8px; }
.conditions p { color: var(--on-dark); font-size: 1rem; }
@media (max-width: 860px) { .conditions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .conditions { grid-template-columns: 1fr; } }

/* ---------- Process steps (real sequence, so numbered) ---------- */
.steps { list-style: none; margin: 48px 0 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.steps > li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps > li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; background: var(--lake); color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 20px; position: relative; z-index: 1;
}
.steps > li::after { content: ""; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.2rem; margin-bottom: 8px; }
.steps p { font-size: 1rem; color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; padding: 0; }
  .steps > li::before { margin: 0; grid-row: span 2; }
  .steps > li::after { top: 52px; bottom: -24px; left: 21px; right: auto; width: 2px; height: auto; }
}

/* ---------- Founder quote ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.8rem, 3.6vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.02em; color: var(--lake); max-width: 18em; text-wrap: balance;
}
.quote cite { display: flex; align-items: center; gap: 14px; font-style: normal; margin-top: 24px; color: var(--muted); line-height: 1.35; }
.quote cite img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; flex: none; }
.quote cite strong { color: var(--ink); }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- CTA ---------- */
.cta { background: var(--gold); color: var(--ink); }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.cta h2 { margin: 0 0 8px; max-width: 16em; }
.cta p { margin: 0; max-width: 34em; }

/* ---------- Services page ---------- */
.index-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.side-index { position: sticky; top: 96px; }
.side-index h2 { font-size: 1rem; font-family: var(--body); letter-spacing: 0; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.side-index ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side-index a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: .98rem; color: var(--muted); }
.side-index a:hover { color: var(--ink); }
.side-index a.is-active { color: var(--lake); border-left-color: var(--gold); font-weight: 600; }
@media (max-width: 900px) { .index-layout { grid-template-columns: 1fr; } .side-index { display: none; } }

.service { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.service:first-child { padding-top: 0; border-top: 0; }
.service__head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 16px; }
.service__icon { flex: none; width: 52px; height: 52px; border-radius: var(--radius-m); background: var(--lake); display: grid; place-items: center; }
.service__icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 6px 0 0; }
.service > p { max-width: 40em; }
.service__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; margin-top: 24px; }
.service__cols h3 { font-size: 1rem; font-family: var(--body); letter-spacing: 0; font-weight: 700; color: var(--malachite); margin-bottom: 8px; }
.service__cols ul { margin: 0; padding-left: 1.1em; font-size: 1rem; }
.service__cols li { margin-bottom: 6px; }
.service__cols li::marker { color: var(--gold); }
@media (max-width: 640px) { .service__cols { grid-template-columns: 1fr; } }

/* ---------- Sectors page ---------- */
.sector { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.sector:first-of-type { border-top: 0; }
.sector:nth-of-type(even) .sector__img { order: 2; }
.sector__img img { border-radius: var(--radius-m); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.sector h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.sector ul { padding-left: 1.1em; margin: 16px 0 0; }
.sector li { margin-bottom: 8px; }
.sector li::marker { color: var(--gold); }
.sector .problem { font-size: 1.2rem; color: var(--ink); }
@media (max-width: 860px) { .sector { grid-template-columns: 1fr; } .sector:nth-of-type(even) .sector__img { order: 0; } }

/* ---------- About page ---------- */
.statement-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--gold); }
.statement-pair > div { padding: 32px 40px 0 0; }
.statement-pair > div + div { padding-left: 40px; border-left: 1px solid var(--line); }
.statement-pair h2 { font-size: 1.1rem; font-family: var(--body); letter-spacing: 0; font-weight: 700; color: var(--malachite); margin-bottom: 12px; }
.statement-pair .big { font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--lake); margin-bottom: 20px; }
@media (max-width: 760px) {
  .statement-pair { grid-template-columns: 1fr; }
  .statement-pair > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 32px; }
}

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; margin-top: 48px; }
.promises h3 { color: var(--white); font-size: 1.3rem; padding-top: 16px; border-top: 3px solid var(--gold); }
.promises p { color: var(--on-dark-muted); font-size: 1rem; }
@media (max-width: 860px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .promises { grid-template-columns: 1fr; } }
.commitment { margin-top: 64px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.14); max-width: 44em; }
.commitment p { font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 1.8rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--white); font-weight: 500; }

/* Founder's statement: long-form reading */
.founder-open { background: var(--lake-deep); color: var(--white); text-align: left; }
.founder-open h2 {
  font-size: clamp(2.2rem, 5.2vw, 4.4rem); line-height: 1.04; max-width: 13em; color: var(--white); margin-bottom: 20px;
}
.founder-open h2 .second { display: block; color: var(--gold); }
.founder-open p { color: var(--on-dark-muted); font-size: 1.1rem; margin: 0; }
.founder-open__text { padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }

/* Statement on the left, founder portrait on the right (portrait first on small screens) */
.founder-layout { display: grid; grid-template-columns: minmax(0, 40rem) minmax(0, 360px); justify-content: space-between; gap: clamp(40px, 6vw, 96px); align-items: start; }
.founder-layout .letter { grid-column: 1; grid-row: 1; margin: 0; }
.founder-photo { grid-column: 2; grid-row: 1; margin: 0; position: sticky; top: 104px; }
.founder-photo img { width: 100%; border-radius: var(--radius-m); display: block; }
.founder-photo figcaption { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--gold); font-size: 1rem; color: var(--muted); line-height: 1.4; }
.founder-photo figcaption strong { display: block; font-family: var(--display); font-size: 1.2rem; color: var(--ink); letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .founder-layout { grid-template-columns: minmax(0, 1fr); }
  .founder-photo { grid-column: 1; position: static; max-width: 340px; margin-bottom: 16px; }
  .founder-layout .letter { grid-row: 2; }
}

.letter { max-width: 40rem; margin: 0 auto; font-size: 1.2rem; line-height: 1.7; }
.letter p { margin-bottom: 1.1em; }
.letter .pull {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.18; letter-spacing: -0.015em; color: var(--lake); margin: 1.6em 0;
}
.letter .litany { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.35; color: var(--malachite); margin: 1.4em 0; }
.letter .litany span { display: block; }
.letter .group { margin: 1.6em 0; padding-left: 24px; border-left: 3px solid var(--gold); }
.letter .group p { margin-bottom: .6em; }
.letter .close { font-style: italic; font-size: 1.35rem; color: var(--lake); }
.signature { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; gap: 20px; align-items: center; }
.signature img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; }
.signature strong { display: block; font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.01em; }
.signature span { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.signature em { display: block; font-style: normal; color: var(--malachite); font-weight: 600; font-size: 1rem; margin-top: 4px; }

.team-note { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.team-note img { border-radius: var(--radius-m); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .team-note { grid-template-columns: 1fr; } }

/* ---------- How we work page ---------- */
.models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--lake); margin-top: 40px; }
.model { padding: 28px 32px 0 0; }
.model + .model { padding-left: 32px; border-left: 1px solid var(--line); }
.model h3 { margin-bottom: 10px; }
.model .fit { font-size: .98rem; color: var(--malachite); font-weight: 600; margin-top: 12px; }
@media (max-width: 860px) {
  .models { grid-template-columns: 1fr; }
  .model + .model { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 28px; }
}

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding: 14px 0 14px 36px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 19px; width: 18px; height: 10px;
  border-left: 3px solid var(--malachite); border-bottom: 3px solid var(--malachite); transform: rotate(-45deg);
}
.checklist strong { display: block; }
.checklist span { color: var(--muted); font-size: 1rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--white); border-radius: var(--radius-m); padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); }
.form h2 { font-size: 1.7rem; }
.field { margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid #B9C6C0; border-radius: var(--radius-s); background: var(--white);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--malachite); box-shadow: 0 0 0 3px rgba(30,122,87,.22); }
textarea { min-height: 160px; resize: vertical; }
.hint { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-s); background: #E3F2EA; color: #15563E; font-size: 1rem; display: none; }
.form-status.is-shown { display: block; }
.form-status.is-error { background: #FBEAE5; color: #8A2E17; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { border-top: 1px solid var(--line); }
.contact-list .k { display: block; font-size: .95rem; color: var(--muted); }
.contact-list a, .contact-list .v { font-weight: 600; font-size: 1.15rem; text-decoration: none; color: var(--lake); }
.contact-list a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--lake-deep); color: var(--on-dark-muted); font-size: 1rem; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-footer h2 { font-family: var(--body); font-size: 1rem; letter-spacing: 0; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .tagline { font-family: var(--display); font-weight: 600; font-size: 1.3rem; color: var(--white); letter-spacing: -0.01em; margin: 20px 0 8px; line-height: 1.2; }
.site-footer address { font-style: normal; line-height: 1.45; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px !important; }
.social li { margin: 0 !important; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); color: var(--on-dark);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.site-footer .handle { margin-top: 10px; font-size: .95rem; }
.contact-list address { font-style: normal; line-height: 1.4; }
.contact-list li:has(.contact-item) { padding: 0; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 12px; margin: 0 -12px;
  border-radius: var(--radius-m); text-decoration: none; color: inherit;
  transition: background-color .15s ease;
}
.contact-list a.contact-item:hover { background: var(--white); text-decoration: none; }
.contact-item__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--lake);
  display: grid; place-items: center; transition: background-color .15s ease;
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__icon .stroke { fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-item__icon .fill { fill: var(--gold); }
.contact-item:hover .contact-item__icon { background: var(--malachite); }
.contact-item .v { display: block; font-weight: 600; font-size: 1.1rem; color: var(--lake); line-height: 1.35; overflow-wrap: anywhere; }
.contact-item .hint-link { display: block; font-size: .92rem; color: var(--malachite); font-weight: 600; margin-top: 4px; }
.contact-item:hover .hint-link { text-decoration: underline; }
.site-footer__base { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .92rem; }
@media (max-width: 860px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer__grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Credits page ---------- */
.credits { columns: 2 320px; column-gap: 48px; padding: 0; list-style: none; }
.credits li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-updated { margin: 16px 0 0; font-size: .95rem; color: var(--on-dark-muted); }
.legal { max-width: 44rem; }
.legal-sec { padding: 40px 0; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.legal-sec:first-child { padding-top: 0; border-top: 0; }
.legal h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin-bottom: 14px; }
.legal h3 { font-size: 1.15rem; margin: 24px 0 8px; color: var(--lake); }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal li::marker { color: var(--gold); }
.legal a { color: var(--malachite); font-weight: 600; }
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 1rem; }
.legal-table th { text-align: left; background: var(--lake); color: var(--white); font-weight: 600; padding: 10px 14px; }
.legal-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table td:first-child { font-weight: 600; white-space: nowrap; }
.legal-callout { background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius-s); padding: 18px 20px; margin-top: 20px; }
.legal-contact { list-style: none; padding: 0 !important; }
.legal-contact li { display: grid; grid-template-columns: 9rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.legal-contact span { color: var(--muted); }
.legal-contact address { font-style: normal; }
@media (max-width: 560px) { .legal-contact li { grid-template-columns: 1fr; gap: 2px; } .legal-table td:first-child { white-space: normal; } }
.form-privacy { font-size: .92rem; color: var(--muted); margin: 14px 0 0; }
.form-privacy a { color: var(--malachite); font-weight: 600; }
.site-footer__base a:hover { color: var(--gold); }

/* ---------- Our work and case studies ---------- */
.work-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-weight: 600; font-size: .95rem; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--lake); cursor: pointer; }
.chip:hover { border-color: var(--lake); }
.chip[aria-pressed="true"] { background: var(--lake); border-color: var(--lake); color: var(--white); }
.work-note { color: var(--muted); max-width: 46em; margin: 0 0 28px; font-size: 1rem; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.work-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; text-decoration: none; color: var(--ink); transition: border-color .15s ease; }
.work-card:hover { border-color: var(--lake); }
.work-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper); }
.work-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.work-card:hover .work-img img { transform: scale(1.03); }
.work-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.work-tag { font-size: .88rem; font-weight: 600; color: var(--muted); }
.work-tag.is-project { color: var(--malachite); }
.work-body strong { font-family: var(--display); font-size: 1.35rem; line-height: 1.2; color: var(--lake); letter-spacing: -0.01em; }
.work-sum { color: var(--muted); font-size: 1rem; flex: 1; }
.work-client { font-weight: 600; font-size: .95rem; }
.work-more { font-weight: 600; color: var(--malachite); font-size: .98rem; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.work-grid--more { margin-top: 28px; }

.case-hero { min-height: 480px; }
.case-back { display: inline-block; color: var(--on-dark-muted); font-weight: 600; text-decoration: none; margin-bottom: 20px; font-size: .98rem; }
.case-back::before { content: "‹ "; }
.case-back:hover { color: var(--gold); }
.case-label { color: var(--gold); font-weight: 600; margin: 0 0 10px; }
.case-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 860px) { .case-layout { grid-template-columns: 1fr; } }
.case-meta { position: sticky; top: 100px; }
@media (max-width: 860px) { .case-meta { position: static; } }
.case-meta dl { margin: 0; border-top: 3px solid var(--gold); }
.case-meta div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: .88rem; color: var(--muted); font-weight: 600; }
.case-meta dd { margin: 2px 0 0; font-weight: 600; color: var(--lake); }
.case-disclaimer { font-size: .92rem; color: var(--muted); margin-top: 16px; background: var(--white); border-left: 3px solid var(--gold); padding: 12px 14px; border-radius: var(--radius-s); }
.case-body { max-width: 44rem; }
.case-body h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); margin: 44px 0 16px; }
.case-body h2:first-child { margin-top: 0; }
.case-lead { font-size: 1.2rem; line-height: 1.6; }
.case-steps { list-style: none; counter-reset: cs; padding: 0; margin: 0; }
.case-steps li { counter-increment: cs; position: relative; padding: 14px 0 14px 56px; border-bottom: 1px solid var(--line); }
.case-steps li::before { content: counter(cs); position: absolute; left: 0; top: 11px; width: 36px; height: 36px; border-radius: 50%; background: var(--lake); color: var(--gold); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.case-delivered { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
@media (max-width: 560px) { .case-delivered { grid-template-columns: 1fr; } }
.case-delivered li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px 12px 40px; position: relative; font-weight: 600; font-size: 1rem; }
.case-delivered li::before { content: ""; position: absolute; left: 15px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--malachite); border-bottom: 2.5px solid var(--malachite); transform: rotate(-45deg); }
.case-outcomes { padding-left: 1.2em; margin: 0; }
.case-outcomes li { margin-bottom: 10px; font-size: 1.1rem; }
.case-outcomes li::marker { color: var(--gold); }
.case-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.case-results div { background: var(--lake); color: var(--white); border-radius: var(--radius-m); padding: 20px; }
.case-results strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--gold); line-height: 1.05; }
.case-results span { color: var(--on-dark-muted); font-size: .95rem; }
.case-quote { margin: 44px 0 0; padding: 28px 30px; background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius-s); }
.case-quote p { font-family: var(--display); font-weight: 600; font-size: 1.35rem; line-height: 1.35; color: var(--lake); }
.case-quote cite { font-style: normal; color: var(--muted); }

/* ---------- Careers ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 36px; border-top: 2px solid var(--gold); }
.why-grid > div { padding: 24px 24px 0 0; }
.why-grid > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.why-grid h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--lake); }
.why-grid p { color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why-grid > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } .why-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.jobs { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.job { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--paper); }
.job summary { cursor: pointer; padding: 20px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; align-items: baseline; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--malachite); line-height: 1; }
.job[open] summary::after { content: "–"; }
.job-title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; color: var(--lake); }
.job-meta { color: var(--muted); font-size: .95rem; flex: 1; }
.job-body { padding: 0 24px 24px; }
.job-body h3 { font-size: 1.1rem; margin: 20px 0 8px; color: var(--lake); }
.job-body ul { padding-left: 1.2em; margin: 0 0 12px; }
.job-body li::marker { color: var(--gold); }
.jobs-empty { margin-top: 20px; background: var(--paper); border-radius: var(--radius-m); padding: 28px 30px; max-width: 48rem; }
.jobs-empty .btn-row { margin-top: 18px; }
.intern p { color: var(--on-dark); }
.intern h3 { color: var(--gold); font-size: 1.15rem; margin: 26px 0 10px; }
.intern-areas { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.intern-areas li { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; font-size: .95rem; font-weight: 600; }
.intern-note { font-size: .95rem; color: var(--on-dark-muted) !important; margin-top: 16px; }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .steps--4 { grid-template-columns: 1fr; } }
.values-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line); }
.values-row h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--lake); }
.values-row p { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .values-row { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Products: Sentebook (it keeps its own indigo and terracotta colours) ---------- */
:root { --sb: #2B2870; --sb-deep: #17163A; --sb-mid: #4A43C9; --sb-accent: #E0562B; --sb-soft: #E9E8FB; --sb-on-dark: #C5C6E8; }
.btn--sb { background: var(--sb-accent); color: var(--white); }
.btn--sb:hover { background: #C9471F; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sb-hero { background: radial-gradient(1100px 560px at 88% -10%, rgba(74,67,201,.55), transparent 62%), linear-gradient(160deg, var(--sb-deep), var(--sb) 75%); color: var(--sb-on-dark); overflow: hidden; }
.sb-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 8vw, 96px); }
.sb-hero h1 { color: var(--white); font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.sb-hero .lede { color: var(--sb-on-dark); }
.sb-hero .btn-row { margin: 28px 0 26px; }
.sb-hero .btn--line { color: var(--white); }
.sb-eyebrow, .sb-kicker { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.sb-eyebrow { color: #A9B0FF; }
.sb-kicker { color: var(--sb-accent); margin-bottom: 10px; }
.sb-brand { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.sb-brand img { width: 52px; height: 52px; }
.sb-brand b { color: var(--sb-accent); }
.sb-proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sb-proof li { display: flex; gap: 10px; align-items: baseline; font-size: 1rem; }
.sb-proof li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sb-accent); transform: translateY(-2px); }
.sb-proof--dark { margin-top: 40px; color: var(--sb-on-dark); }

.sb-shot { margin: 0; position: relative; }
.device { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(23,22,58,.18), 0 0 0 1px var(--line); }
.device__bar { height: 26px; background: #ECECF4; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: #C9CADB; }
.device img { width: 100%; }
.sb-shot--hero { padding-bottom: 30px; margin-right: 22px; }
.sb-shot--hero .device { box-shadow: 0 30px 80px rgba(8,8,30,.45), 0 0 0 1px rgba(255,255,255,.1); }
.sb-shot--hero .phone { position: absolute; right: -22px; bottom: 0; width: 24%; border-radius: 18px; border: 5px solid #0E0D26; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.sb-shot--hero figcaption { position: absolute; left: 0; bottom: 0; font-size: .82rem; color: #9FA1C8; }
@media (max-width: 960px) { .sb-hero__grid { grid-template-columns: 1fr; } }

.sb-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; margin-top: 44px; }
.sb-points > div { border-top: 3px solid var(--sb-accent); padding-top: 18px; }
.sb-points h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--sb); }
.sb-points p { font-size: 1rem; color: var(--muted); }
@media (max-width: 960px) { .sb-points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sb-points { grid-template-columns: 1fr; } }

.sb-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sb-feature + .sb-feature { margin-top: clamp(72px, 9vw, 120px); }
.sb-feature--flip > div { order: 2; }
.sb-feature h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--sb); }
@media (max-width: 900px) { .sb-feature { grid-template-columns: 1fr; } .sb-feature--flip > div { order: 0; } }
.ticks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 1.02rem; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--sb-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A43C9' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

.sb-docs { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.sb-docs li { border: 1px solid var(--line); border-top: 3px solid var(--sb); border-radius: var(--radius-m); padding: 20px 22px; background: var(--paper); }
.sb-docs h3 { font-size: 1.12rem; margin-bottom: 6px; color: var(--sb); }
.sb-docs p { font-size: .98rem; color: var(--muted); }

.sb-dark { background: var(--sb-deep); }
.sb-dark .lede { color: var(--sb-on-dark); }
.sb-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 44px; border-top: 2px solid var(--sb-accent); }
.sb-roles > div { padding: 24px 24px 0 0; }
.sb-roles > div + div { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.sb-roles h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.sb-roles p { color: var(--sb-on-dark); font-size: 1rem; }
@media (max-width: 960px) { .sb-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sb-roles > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .sb-roles { grid-template-columns: 1fr; } .sb-roles > div + div { padding-left: 0; border-left: 0; } }

.sb-where { display: grid; gap: 14px; }
.sb-where > div { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--sb-mid); border-radius: var(--radius-m); padding: 18px 22px; }
.sb-where h3 { font-size: 1.15rem; margin-bottom: 6px; color: var(--sb); }
.sb-where p { font-size: 1rem; color: var(--muted); }

.faq-wrap { max-width: 880px; }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.7rem; color: var(--sb-accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 0 20px; color: var(--muted); max-width: 46em; }
.faq a { color: var(--sb-mid); font-weight: 600; }

.sb-cta { background: var(--sb); color: var(--white); }
.sb-cta p { color: var(--sb-on-dark); }

/* Home page: the product panel */
.product-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 64px); align-items: center; background: linear-gradient(160deg, var(--sb-deep), var(--sb)); color: var(--sb-on-dark); border-radius: 16px; padding: clamp(28px, 5vw, 56px); overflow: hidden; }
.product-panel h2 { color: var(--white); margin-bottom: 14px; }
.product-panel .sb-brand { font-size: 1.6rem; margin-bottom: 14px; }
.product-panel .sb-brand img { width: 44px; height: 44px; }
.product-panel .btn-row { margin-top: 24px; }
.product-panel .btn--line { color: var(--white); }
.product-panel .device { box-shadow: 0 24px 60px rgba(8,8,30,.45); }
@media (max-width: 900px) { .product-panel { grid-template-columns: 1fr; } }

/* ---------- Products: Website development (Sentebook's layout, in the Kent colours) ---------- */
.web { --sb: var(--lake); --sb-deep: var(--lake-deep); --sb-mid: var(--malachite); --sb-accent: var(--gold); --sb-soft: #E1F1E9; --sb-on-dark: var(--on-dark-muted); }
.web .sb-hero { background: radial-gradient(1100px 560px at 88% -10%, rgba(30,122,87,.55), transparent 62%), linear-gradient(160deg, var(--lake-deep), var(--lake) 75%); }
.web .sb-eyebrow { color: var(--gold); }
.web .sb-shot--hero { padding-bottom: 48px; }
.web .sb-shot--hero figcaption { color: var(--on-dark-muted); max-width: 68%; line-height: 1.35; }
.web .sb-docs a { color: var(--malachite); font-weight: 600; }
.web .faq summary::after { color: var(--malachite); }
.web .ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.web .sb-cta p { color: var(--on-dark-muted); }

/* Real client sites in the hero. Screenshots: assets/img/work/ */
.device__url { margin-left: 10px; flex: 1; max-width: 240px; background: var(--white); border-radius: 999px; padding: 1px 12px; font-size: .72rem; color: var(--muted); line-height: 18px; }
.web-shot .phone { width: 22%; }
.web-shot figcaption a { color: var(--gold); font-weight: 600; }

/* What we build: a photo on each card */
.web-types li { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.web-types img { width: 100%; aspect-ratio: 20 / 13; object-fit: cover; }
.web-types li > div { padding: 18px 22px 22px; }

/* Home page: the website development panel, under Sentebook's */
.product-panel--web { background: linear-gradient(160deg, var(--lake-deep), var(--lake)); color: var(--on-dark-muted); }
.product-panel--web .sb-eyebrow { color: var(--gold); }
.product-panel--web .sb-shot--hero { margin-right: 22px; }
.product-panel--web .sb-shot--hero figcaption { color: var(--on-dark-muted); }

/* Case study: the client's site on a laptop and a phone (case studies with "screens" in work-data.js) */
.case-shot { margin: 0 22px 52px 0; padding-bottom: 28px; }
.case-shot .phone { position: absolute; right: -22px; bottom: 0; width: 20%; border-radius: 16px; border: 5px solid #0B1E21; box-shadow: 0 18px 44px rgba(0,0,0,.3); }
.case-link { margin: 20px 0 0; }
.case-link .btn { color: var(--lake); }

/* Home page: products slide in from the right, one after another */
.product-slider__viewport { overflow: hidden; border-radius: 16px; }
.product-slider__track { display: flex; transition: transform .9s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.product-slider__track > .product-panel { flex: 0 0 100%; min-width: 0; }
.product-slider__dots { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.product-slider__dots button { border: 0; padding: 0; cursor: pointer; height: 8px; width: 8px; border-radius: 999px; background: var(--line); transition: width .3s ease, background-color .3s ease; }
.product-slider__dots button[aria-current="true"] { width: 30px; background: var(--lake); }
.product-slider__dots button:hover { background: var(--muted); }
@media (prefers-reduced-motion: reduce) { .product-slider__track { transition: none; } }
