/* KIBESCO: brand tokens, base styles, components, then responsive layouts. */

:root {
  --purple: #39315c;
  --deep: #28223f;
  --magenta: #a72279;
  --pink: #c02082;
  --ink: #292633;
  --muted: #66616e;
  --soft: #f7f5f8;
  --line: #e5dfe7;
  --section-space: clamp(56px,7vw,96px);
  --grid-gap: clamp(24px,4vw,64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: 'DM Sans',Arial,sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

h1,h2,h3 {
  font-family: Manrope,Arial,sans-serif;
  line-height: 1.16;
  letter-spacing: -.035em;
  margin: 0 0 24px;
  color: var(--deep);
}

h1 {
  font-size: clamp(38.6px,4.876vw,69.9px);
  font-weight: 800;
}

h2 {
  font-size: clamp(29.4px,2.852vw,42.3px);
  font-weight: 800;
}

h3 {
  font-size: 23px;
  letter-spacing: -.025em;
}

p {
  margin: 0 0 24px;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

a,button,summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,button:focus-visible,summary:focus-visible {
  outline: 3px solid #d436a2;
  outline-offset: 6px;
}

.wrap {
  width: min(1200px,calc(100% - 64px));
  margin: auto;
}

.topbar {
  background: var(--purple);
  color: white;
  font-size: 13px;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
}

.topbar a {
  color: #f5dbea;
}

header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 12px #30233a08;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}

.logo {
  width: 180px;
  height: 80px;
  object-fit: contain;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}

.nav nav>a:not(.button) {
  padding: 25px 0;
  white-space: nowrap;
}

.nav nav>a:hover,.nav nav>a[aria-current=page] {
  color: var(--magenta);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 25px;
  background: var(--magenta);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background .2s,transform .2s;
  line-height: 1.4;
}

.button:hover {
  background: var(--purple);
  transform: translateY(-2px);
}

.button.small {
  font-size: 14px;
  padding: 14px 20px;
}

.white {
  background: white;
  color: var(--magenta);
}

.white:hover {
  background: #f2e9f2;
  color: var(--purple);
}

.menu-toggle {
  display: none;
}

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: white;
  padding: 15px;
}

.skip:focus {
  top: 10px;
}

.hero {
  min-height: 640px;
  position: relative;
  display: grid;
  align-items: center;
  padding: 88px 0 112px;
  background: var(--deep);
  color: white;
}

.hero>img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(25,17,36,.87),rgba(29,18,38,.58) 48%,rgba(29,18,38,.06));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: .12em;
  font-weight: 800;
  display: block;
  color: var(--magenta);
  margin-bottom: 18px;
  line-height: 1.5;
}

.hero .eyebrow {
  color: #f8d4eb;
}

.hero h1 {
  color: white;
  max-width: 900px;
  font-size: clamp(38.6px,4.692vw,67.2px);
}

em {
  font-style: normal;
  color: #f2a8d5;
}

.hero p {
  color: #eee5ed;
  max-width: 565px;
  font-size: 16.6px;
  line-height: 1.75;
}

.actions {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 34px;
}

.hero-link {
  font-size: 15px;
  font-weight: 700;
  border-bottom: 1px solid #ffffff70;
  padding: 9px 0;
}

.hero-link span {
  margin-left: 16px;
}

.hero-bottom {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: .13em;
}

.section {
  padding-block: var(--section-space);
}

.split {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: var(--grid-gap);
  align-items: center;
}

.split p {
  font-size: 16px;
}

.photo-stack {
  position: relative;
  padding-bottom: 30px;
}

.photo-stack>img {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--purple);
  color: #eee7f2;
  padding: 22px 32px;
  line-height: 1.6;
  font-size: 16px;
  border-left: 5px solid var(--pink);
}

.photo-caption strong {
  color: white;
}

.text-link {
  display: inline-block;
  color: var(--magenta);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid #c39bb5;
  padding-bottom: 5px;
}

.text-link:hover {
  color: var(--purple);
}

.stats {
  background: var(--purple);
  color: white;
  padding: 48px 0 28px;
}

.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.stats .wrap>div {
  text-align: center;
  border-right: 1px solid #ffffff28;
  padding: 10px 18px;
}

.stats .wrap>div:last-child {
  border: 0;
}

.stats strong {
  font: 800 48px Manrope,Arial;
  display: block;
  letter-spacing: -.04em;
  margin-bottom: 9px;
}

.stats span {
  font-size: 14px;
  color: #eee4f1;
}

.stats>p {
  text-align: center;
  font-size: 12px;
  color: #d6c9df;
  margin: 26px 20px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}

.section-heading h2,.section-heading p {
  margin-bottom: 0;
}

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

.pillars article {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.pillar-number {
  font-size: 16px;
  color: var(--magenta);
  font-weight: 700;
  display: block;
  margin-bottom: 38px;
}

.pillars h3 {
  max-width: 240px;
}

.pillars p {
  margin-bottom: 0;
}

.soft {
  background: var(--soft);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 32px;
}

.program-card .image-wrap {
  height: auto;
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
  margin: 0 0 24px;
}

.program-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}

.program-card:hover img {
  transform: scale(1.045);
}

.program-card h3 {
  font-size: 23.9px;
  margin-bottom: 16px;
}

.program-card p {
  font-size: 16px;
  line-height: 1.75;
}

.program-card .eyebrow {
  font-size: 13px;
  letter-spacing: .08em;
  margin-bottom: 12px;
}

.round-arrow {
  position: absolute;
  bottom: 13px;
  right: 13px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: white;
  color: var(--purple);
  text-align: center;
  line-height: 35px;
}

.stories {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 30px;
}

.story {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 36px;
}

.story img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent,#21162ce8);
}

.story>div {
  position: relative;
  z-index: 1;
  color: white;
}

.story .eyebrow {
  color: #f8bfdf;
}

.story h3 {
  color: white;
  font-size: 33.1px;
  margin-bottom: 18px;
}

.story-side {
  padding: 42px;
  background: #f4edf4;
  border-top: 3px solid var(--magenta);
}

.story-side h3 {
  font-size: 33.1px;
}

.story-side p {
  font-size: 16px;
}

.join {
  background: var(--magenta);
  padding: 55px 0;
  color: white;
}

.join .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.join .eyebrow {
  color: #f4cde6;
}

.join h2 {
  color: white;
  font-size: 33.1px;
  margin: 0;
}

footer {
  padding-top: 65px;
  background: #fcfbfd;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 35px;
}

.footer-grid .logo {
  margin: 0 0 20px;
}

.footer-grid p {
  font-size: 14px;
  line-height: 1.8;
}

.footer-grid h3 {
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 20px;
}

.footer-grid>div>a:not(:has(img)) {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 9px;
}

.footer-grid a:hover {
  color: var(--magenta);
}

.social {
  display: flex;
  gap: 18px;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 700;
}

.copyright {
  border-top: 1px solid var(--line);
  margin-top: 45px;
  padding: 25px 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.page-intro {
  background: var(--soft);
  padding: clamp(48px,7vw,88px) 0;
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 1000px;
  font-size: clamp(33.1px,4.14vw,58.9px);
}

.page-intro p {
  max-width: 720px;
  font-size: 17.5px;
  margin: 0;
}

.feature-image {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.values {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
  margin-top: 40px;
}

.values article {
  border-top: 3px solid var(--magenta);
  padding-top: 24px;
}

.values p {
  font-size: 16px;
}

.note {
  margin: 60px 0 20px;
  background: var(--soft);
  padding: 40px;
  border-left: 4px solid var(--magenta);
}

.note p:last-child {
  margin: 0;
}

.narrow {
  max-width: 850px;
}

details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
  padding-right: 25px;
  font-size: 16.6px;
}

details p {
  margin: 20px 0 8px;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.resource-grid article {
  background: var(--soft);
  padding: 35px;
}

.resource-grid h2 {
  font-size: 28.5px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.contact-item {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 20px;
}

.contact-item span {
  font-size: 14px;
  color: var(--muted);
  display: block;
}

.contact-item a {
  display: block;
  font-size: 22.1px;
  font-weight: 600;
  color: var(--purple);
  overflow-wrap: anywhere;
}

.contact-panel {
  background: var(--soft);
  padding: 45px;
}

.smallprint {
  font-size: 13px;
  margin: 16px 0 30px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}

/* Shared spacing and accessible interactions */
.wrap > *, .split > *, .contact-grid > *, .footer-grid > * {
  min-width: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

p:last-child {
  margin-bottom: 0;
}

.button {
  min-height: 48px;
  border-radius: 4px;
  text-align: center;
}

.text-link {
  width: fit-content;
}

.program-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  padding: 0 24px 28px;
  transition: box-shadow .2s;
}

.program-card:hover {
  box-shadow: 0 12px 32px #28223f14;
}

.program-card .image-wrap {
  margin-inline: -24px;
}

.program-card > .text-link {
  margin-top: auto;
}

.program-card p {
  margin-bottom: 24px;
}

.resource-grid article {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resource-grid article > a {
  margin-top: auto;
}

.contact-panel, .note, .story-side {
  border-radius: 8px;
}

.feature-image, .photo-stack > img {
  border-radius: 8px;
}

.copyright {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 13px;
}

.copyright p {
  margin: 0;
}

.social {
  flex-wrap: wrap;
}

.nav nav {
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
}

.nav nav > a.button:hover {
  color: white;
}

summary {
  min-height: 48px;
}

@media (max-width:1100px) {
  .nav nav:target {
    display: flex;
  }

  .pillars {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pillars h3 {
    max-width: none;
  }

  .pillar-number {
    margin-bottom: 16px;
  }

}

@media(min-width:1600px) {
  .hero {
    min-height: 700px;
  }

}

@media(max-width:1100px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .nav nav {
    gap: 17px;
    font-size: 13px;
  }

  .nav .logo {
    width: 155px;
  }

  .nav .button {
    padding: 12px;
  }

  .split {
    gap: 45px;
  }

  .program-grid {
    grid-template-columns: repeat(2,1fr);
    gap: 40px 25px;
  }

  .program-card .image-wrap {
    height: auto;
  }

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

  .resource-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-grid {
    gap: 40px;
  }

}

@media(max-width:1100px) {
  .topbar .wrap>span {
    font-size: 11px;
  }

  .topbar a {
    display: none;
  }

  .nav {
    min-height: 80px;
  }

  .nav .logo {
    width: 175px;
    height: 78px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    background: none;
    border: 1px solid var(--line);
    padding: 8px 14px;
    color: var(--purple);
    font-size: 14px;
  }

  .nav nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 20px 24px;
    box-shadow: 0 10px 20px #0001;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .nav nav.open {
    display: flex;
  }

  .nav nav>a:not(.button) {
    padding: 12px 0;
    font-size: 16px;
  }

  .nav nav .button {
    margin-top: 12px;
  }

  .hero {
    min-height: 600px;
    padding: 72px 0 100px;
  }

  .hero-shade {
    background: linear-gradient(90deg,#21152be8,#21152b65);
  }

  .hero h1 {
    font-size: clamp(33.1px,5.52vw,47.8px);
  }

  .hero p {
    font-size: 16px;
    max-width: 480px;
  }

  .section {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .photo-stack>img,.feature-image {
    height: 380px;
  }

  .photo-caption {
    right: 0;
  }

  .stats .wrap {
    grid-template-columns: repeat(2,1fr);
    gap: 30px 0;
  }

  .stats .wrap>div:nth-child(2) {
    border: 0;
  }

  .stats strong {
    font-size: 36.8px;
  }

  .pillars {
    gap: 25px;
  }

  .pillars h3 {
    font-size: 20.2px;
  }

  .pillars p {
    font-size: 15px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p,.section-heading>.text-link {
    margin-top: 20px;
  }

  .stories {
    grid-template-columns: 1fr;
  }

  .story-side h3 br {
    display: none;
  }

  .join .wrap {
    align-items: start;
    flex-direction: column;
  }

  .copyright {
    gap: 15px;
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .page-intro {
    padding: 55px 0;
  }

  .page-intro h1 {
    font-size: 44.2px;
  }

}

@media(max-width:520px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .hero {
    min-height: 620px;
    padding: 64px 0 96px;
  }

  .hero h1 {
    font-size: clamp(27.6px,7.176vw,35.9px);
    line-height: 1.2;
    letter-spacing: -.035em;
  }

  .hero .eyebrow {
    font-size: 13px;
  }

  .hero p {
    font-size: 16px;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .hero-bottom {
    font-size: 10px;
  }

  .hero-bottom>span {
    display: none;
  }

  .program-grid,.pillars,.values,.footer-grid {
    grid-template-columns: 1fr;
  }

  .program-card .image-wrap {
    height: auto;
  }

  .pillars article {
    padding-top: 22px;
  }

  .pillar-number {
    margin-bottom: 15px;
  }

  .pillars h3 {
    max-width: none;
  }

  .photo-stack>img,.feature-image {
    height: 290px;
  }

  .stats strong {
    font-size: 31.3px;
  }

  .stats span {
    font-size: 12px;
  }

  .stats .wrap>div {
    padding: 5px;
  }

  .story {
    min-height: 380px;
    padding: 24px;
  }

  .story h3 {
    font-size: 27.6px;
  }

  .story-side {
    padding: 28px;
  }

  .join h2 {
    font-size: 28.5px;
  }

  .footer-grid {
    gap: 25px;
  }

  .footer-grid>div:first-child {
    margin-bottom: 15px;
  }

  .page-intro h1 {
    font-size: clamp(29.4px,7.36vw,35.9px);
  }

  .page-intro p {
    font-size: 16px;
  }

  .contact-panel,.resource-grid article,.note {
    padding: 25px;
  }

  .contact-item a {
    font-size: 18.4px;
  }

  h2 {
    font-size: 29.4px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none!important;
  }

}


/* Compact shared footer and centred social links. */
footer .footer-grid p,
footer .footer-grid > div > a:not(:has(img)) {
  font-size: 13px;
  line-height: 1.7;
}

footer .footer-grid h3 {
  font-size: 14px;
  margin-bottom: 16px;
}

footer .copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding-block: 22px;
  font-size: 12px;
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--purple);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.footer-social a:hover {
  color: var(--magenta);
  background: var(--soft);
}

/* Social links sit above the copyright divider. */
.footer-social-row {
  padding-top: 28px;
  padding-bottom: 18px;
}

footer .copyright {
  margin-top: 0;
}

.nav nav {
  overflow: visible;
}

.team-menu {
  position: relative;
  border: 0;
  padding: 0;
}

.team-menu > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 0;
  font-size: 14px;
  list-style: none;
}

.team-menu > summary::-webkit-details-marker {
  display: none;
}

.team-menu > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.team-menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 245px;
  background: white;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 10px 30px #28223f18;
}

.team-menu-links a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
}

.team-menu-links a:hover {
  color: var(--magenta);
  background: var(--soft);
}

.team-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.team-overview article {
  border-top: 3px solid var(--magenta);
  padding-top: 24px;
}

.team-overview h2 {
  font-size: 25.8px;
}

@media (max-width: 1100px) {
  .nav nav {
    overflow-y: auto;
  }

  .team-menu > summary {
    font-size: 16px;
  }

  .team-menu-links {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    margin-bottom: 12px;
  }

  .team-overview {
    grid-template-columns: 1fr;
  }
}
