/* Theme v4, loaded last on every page. One idea: warm paper, near-black ink, one soft pastel per section,
   a tangerine highlighter as the only loud thing. Type is Manrope (horizon.css).
   Everything here overrides the older base files; nothing in this file is page-specific. */

/* ---------- canvas and type ---------- */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  background: var(--bone);
  color: var(--ink);
  font-size: var(--fs-body);
  padding-top: 0;
}
body::before {
  display: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
}
h3 {
  font-size: var(--fs-h3);
  line-height: 1.15;
}
.lead {
  color: var(--ink-2);
}
.eyebrow {
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.eyebrow::before {
  animation: none;
  box-shadow: none;
}
/* the highlighter: used once per page, on the hero headline only */
h1 em,
h2 em,
h3 em,
.hero__title em,
.crossing b,
.sh-giant em {
  padding: 0;
  margin: 0;
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  background: none;
}
.hero__title em,
.page-hero h1 em {
  padding: 0 0.06em;
  margin: 0 -0.06em;
  background: linear-gradient(transparent 62%, var(--hl, color-mix(in srgb, var(--orange) 42%, transparent)) 62% 92%, transparent 92%)
    no-repeat left / 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 1.3s var(--ease-out) 0.55s;
}
.js [data-split]:not(.in) .hero__title em,
.js .hero__title:not(.in) em,
.js .page-hero h1:not(.in) em {
  background-size: 0% 100%;
}
.section--ink h1 em,
.section--ink h2 em,
.section--ink h3 em,
.page-hero em,
.hero em {
  color: inherit;
}
.roll__list > span,
.marquee__item i,
.article blockquote,
.people__i,
.tile--brand .tile__img b {
  font-style: normal;
}
.statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.crossing {
  font-size: clamp(1.8rem, 4.2vw, 3.8rem);
}
.row__t {
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  letter-spacing: -0.015em;
}
.rows--posts .row__t {
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
}
.fact dd,
.fee-amount {
  font-family: var(--font-display);
}
.marquee__item,
.sh-brand-text strong,
.journey h3,
.timeline h3,
.points b,
.people strong,
.mosaic__t,
.tile__t {
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- panels: rounded, one tint each ---------- */
main > .section--ink,
main > .section--mist,
main > .hero,
main > .page-hero,
.sh-footer {
  margin: 6px 12px;
  border-radius: 32px;
  overflow: clip;
}
.section {
  padding-block: clamp(44px, 5.5vw, 80px);
}
.section--mist {
  background: var(--bone-2);
}
.section--ink {
  background: var(--tone, var(--sage));
  color: var(--ink);
  --muted: var(--ink-2);
  --line: var(--line-dark);
}
#what {
  --tone: var(--sage);
}
#work {
  --tone: var(--butter);
}
#themes {
  --tone: var(--sky);
}
#care {
  --tone: var(--peach);
}
#careers {
  --tone: var(--lilac);
}
.cta-band {
  --tone: var(--lilac);
}
#contact {
  --tone: var(--peach);
}
.section--ink .lead,
.section--ink .eyebrow {
  color: var(--ink-2);
}
.section--ink .eyebrow {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
}
.cover,
.frame {
  border-radius: 24px;
}
/* photos keep their own colour: no blue duotone */
.cover {
  background: var(--peach);
}
.cover img {
  filter: saturate(0.92);
  mix-blend-mode: normal;
}
a:hover > .cover img,
.cover:hover img {
  filter: none;
}
.cover--none {
  background: var(--lilac);
}

/* ---------- buttons ---------- */
.btn {
  min-height: 50px;
  padding: 0 26px;
  font-weight: 600;
  transition:
    transform 0.5s var(--ease-out),
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.btn--primary {
  --bg: var(--ink);
  --fg: #fff;
}
.btn--primary:hover,
.btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}
.btn--ghost,
.btn--ghost-light {
  --fg: var(--ink);
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.btn--ghost:hover,
.btn--ghost-light:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.btn--light {
  --bg: #fff;
  --fg: var(--ink);
}

/* ---------- floating pill header, back chip ---------- */
.sh-header,
.page-home .sh-header:not(.scrolled):not(.open) {
  inset: 12px 12px auto 12px;
  height: 60px;
  border: 1px solid color-mix(in srgb, var(--ink) 7%, transparent);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 10px 34px color-mix(in srgb, var(--ink) 10%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  color: var(--ink);
  view-transition-name: site-header;
}
.sh-header.open {
  inset: 0;
  height: 60px;
  margin: 12px 12px 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
}
.sh-bar,
.sh-header .sh-bar {
  width: calc(100% - 28px);
}
.sh-nav a:not(.sh-cta)::after {
  display: none;
}
.sh-nav a:not(.sh-cta) {
  border-radius: 999px;
  transition: background var(--t) var(--ease);
}
.sh-nav a:not(.sh-cta):hover,
.sh-nav a[aria-current="page"]:not(.sh-cta) {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.sh-cta,
.page-home .sh-header:not(.scrolled):not(.open) .sh-cta {
  background: var(--ink);
  color: #fff;
}
.sh-cta:hover {
  background: var(--orange);
  color: var(--ink);
}
.sh-live {
  background: var(--butter);
  color: var(--ink);
}
@media (max-width: 1060px) {
  .sh-nav a:not(.sh-cta):hover,
  .sh-nav a[aria-current="page"]:not(.sh-cta) {
    background: none;
  }
}
.backbar {
  position: sticky;
  top: 84px;
  z-index: 90;
  height: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}
.backbar .container {
  position: relative;
  display: block;
  height: 0;
  width: 100%;
}
.backbar__btn {
  position: absolute;
  left: 24px;
  top: 8px;
  min-height: 40px;
  border: 0;
  background: var(--bone-2);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--ink) 14%, transparent);
}
.crumbs {
  display: none;
}

/* ---------- inner-page hero: the same pastel panel as the home hero, smaller ---------- */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
.page-hero {
  display: flex;
  align-items: flex-end;
  min-height: min(56svh, 520px);
  padding: clamp(140px, 15vw, 190px) 0 clamp(32px, 4vw, 56px);
  color: var(--ink);
  background: linear-gradient(135deg, var(--peach), var(--lilac) 55%, var(--sky));
  --muted: var(--ink-2);
  --line: var(--line-dark);
}
.page-hero::before,
.page-hero::after {
  display: none;
}
.page-hero .container {
  position: relative;
  z-index: 2;
  width: min(var(--max), 100% - 2 * var(--gutter));
}
.page-hero h1 {
  max-width: 14em;
  font-size: var(--fs-h1);
}
.page-hero--article h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  max-width: 20em;
}
.page-hero--tight h1,
.page-hero--split h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}
.page-hero .lead,
.page-hero .byline {
  color: var(--ink-2);
}
.page-hero .eyebrow {
  background: rgba(255, 255, 255, 0.7);
}
.page-hero .jumpnav a {
  border-color: color-mix(in srgb, var(--ink) 40%, transparent);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.4);
}
.page-hero .jumpnav a:hover {
  background: var(--ink);
  color: #fff;
}
.hero-photo .frame {
  border-radius: 200px 200px 28px 28px;
}

/* ---------- rows ---------- */
.row::before {
  border-radius: 16px;
  inset: 4px -14px;
  background: var(--bone-2);
}
.rows--light .row::before,
.section--ink .row::before {
  background: rgba(255, 255, 255, 0.75);
}
.row:hover,
.row:focus-visible {
  padding-left: 18px;
  color: var(--ink);
}
.row:hover .row__t,
.row:focus-visible .row__t {
  color: var(--ink);
}
.section--ink .row:hover,
.section--ink .row:hover .row__s,
.section--ink .row:hover .row__n {
  color: var(--ink);
}

/* ---------- marquee ---------- */
.marquee {
  margin: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
}
.marquee__item {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}
.marquee__item i {
  color: var(--ink);
}
.marquee__item b {
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  transform: none;
  background: var(--orange);
}

/* ---------- forms ---------- */
.form input,
.form textarea,
.form select,
.section--ink .form input,
.section--ink .form textarea,
.section--ink .form select {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid transparent;
  border-radius: 14px;
}
.form input:focus,
.form textarea:focus,
.form select:focus {
  border-color: var(--ink);
}
.section--ink .form label {
  color: var(--ink);
}
.section--ink .form-status.is-error {
  color: var(--error);
}

/* ---------- people: a photo slot per person (arch frame; drop a photo in and it fills) ---------- */
.people {
  gap: clamp(16px, 2.4vw, 32px);
}
.people li {
  gap: 2px;
}
.people__ph {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  margin-bottom: var(--s3);
  border-radius: 999px 999px 24px 24px;
  overflow: hidden;
  background: var(--tint, var(--peach));
  transition:
    transform 0.7s var(--ease-out),
    border-radius 0.7s var(--ease-out);
}
.people li:nth-child(1) {
  --tint: var(--peach);
}
.people li:nth-child(2) {
  --tint: var(--lilac);
}
.people li:nth-child(3) {
  --tint: var(--sage);
}
.people li:nth-child(4) {
  --tint: var(--butter);
}
.people li:hover .people__ph {
  transform: translateY(-6px) rotate(-1deg);
  border-radius: 40px;
}
.people__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.people__i {
  display: block;
  width: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  aspect-ratio: auto;
  font: 600 clamp(2.4rem, 5vw, 4rem) / 1 var(--font-display);
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
}
.people li:hover .people__i {
  background: none;
  color: var(--ink);
}
.people strong {
  font-size: 1.2rem;
}

/* ---------- DDGIP: the programme journey, topics, flow visual ---------- */
.flowviz {
  position: relative;
  height: clamp(240px, 30vw, 360px);
  margin-bottom: var(--s6);
  border-radius: 28px;
  background: var(--bone);
  overflow: hidden;
}
.flowviz canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.flowviz__lab {
  position: absolute;
  top: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  font: 700 0.8rem / 1 var(--font);
}
.flowviz__lab--a {
  left: 16px;
}
.flowviz__lab--b {
  right: 16px;
  background: var(--ink);
  color: #fff;
}
.journey {
  gap: var(--s3);
}
.journey::before,
.journey li::before {
  display: none;
}
.journey li {
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: var(--tint);
  transition:
    transform 0.7s var(--ease-out),
    box-shadow 0.7s var(--ease-out);
}
.journey li:nth-child(1) {
  --tint: var(--peach);
}
.journey li:nth-child(2) {
  --tint: var(--lilac);
}
.journey li:nth-child(3) {
  --tint: var(--sage);
}
.journey li:nth-child(4) {
  --tint: var(--butter);
}
.journey li:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.journey small,
.journey p {
  color: var(--ink-2);
}
.journey h3 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.topics {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: start;
}
.topics__tabs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.topics__tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font: 600 clamp(1.1rem, 1.8vw, 1.5rem) / 1.15 var(--font-display);
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
  transition:
    background var(--t) var(--ease),
    color var(--t) var(--ease),
    transform 0.5s var(--ease-out);
}
.topics__tab:hover {
  background: #fff;
  transform: translateX(6px);
}
.topics__tab[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
  transform: translateX(10px);
}
.topics__tab i {
  font-style: normal;
  opacity: 0.55;
  font: 600 0.8rem / 1 var(--font);
}
.topics__panel {
  position: relative;
  padding: clamp(22px, 3vw, 36px);
  border-radius: 28px;
  background: #fff;
  min-height: 100%;
  animation: panel-in 0.7s var(--ease-out) both;
}
.topics__panel[hidden] {
  display: none;
}
.topics__panel h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}
.topics__panel p {
  max-width: 46ch;
  color: var(--ink-2);
}
.topics__panel ul {
  display: grid;
  gap: 8px;
  margin: var(--s4) 0 var(--s5);
  padding: 0;
  list-style: none;
}
.topics__panel li {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bone);
  font-weight: 500;
}
.topics__panel .btn-row {
  margin: 0;
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
@media (max-width: 860px) {
  .topics {
    grid-template-columns: 1fr;
  }
}

/* ---------- footer: the one dark surface on the site ---------- */
.sh-footer {
  margin-bottom: 12px;
  background: var(--ink-deep);
  color: #d9d3c7;
  --on-dark: #d9d3c7;
  --label-dark: #a39c8d;
  --line-dark: rgba(255, 255, 255, 0.14);
}
.sh-giant {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10.4vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.07);
  -webkit-text-stroke: 0;
  transition: color 0.8s var(--ease-out);
}
.sh-giant:hover {
  color: color-mix(in srgb, var(--orange) 55%, transparent);
}
.sh-footer a:hover {
  color: var(--orange-text);
}

/* ---------- smoother, slower motion ---------- */
.js [data-reveal] {
  transform: translateY(20px);
  transition:
    opacity 1.2s var(--ease-out),
    transform 1.3s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
[data-split] .w > span {
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms + var(--d, 0ms));
}
/* page-to-page: a soft cross-fade with a small lift (browsers without cross-document view transitions just navigate) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: vt-out 0.35s var(--ease) both;
}
::view-transition-new(root) {
  animation: vt-in 0.7s var(--ease-out) both;
}
@keyframes vt-out {
  to {
    opacity: 0;
  }
}
@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .aurora {
    opacity: 1;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

@media (max-width: 720px) {
  main > .section--ink,
  main > .section--mist,
  main > .hero,
  main > .page-hero,
  .sh-footer {
    margin: 4px 8px;
    border-radius: 24px;
  }
  .backbar__btn {
    left: 16px;
  }
  .page-hero {
    padding-top: 140px;
  }
}
.subscribe__consent input {
  width: 24px;
  height: 24px;
}
.sh-giant em {
  background: none;
  padding: 0;
  margin: 0;
}
.sh-giant {
  letter-spacing: -0.035em;
}
.feature__t em,
.feature__t,
.article em {
  font-style: normal;
}
.people .people__i {
  font: 600 clamp(2.6rem, 5vw, 4.2rem) / 1 var(--font-display);
  color: color-mix(in srgb, var(--ink) 50%, transparent);
}
/* the back chip steps aside once you scroll down, and returns when you scroll up */
.backbar__btn {
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--ease-out);
}
.chip-away .backbar__btn {
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
}
.eyebrow {
  line-height: 1.25;
}
.row:hover .row__n,
.row:focus-visible .row__n {
  color: var(--ink);
}
.backbar__btn {
  min-height: 44px;
}
.sh-footer-base a,
.sh-footer-base nav a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}
.contact__meta a {
  display: inline-block;
  padding-block: 9px;
}

/* one simple frame for photos that float or sit loose: a cloud (an SVG mask, same origin) */
.peek,
.mosaic__item .frame {
  -webkit-mask: url("../assets/frames/cloud.svg") center / 100% 100% no-repeat;
  mask: url("../assets/frames/cloud.svg") center / 100% 100% no-repeat;
  border-radius: 0;
}
.peek {
  width: 280px;
  aspect-ratio: 4 / 3;
  border: 0;
  box-shadow: none;
  animation: none;
}
.peek::after {
  display: none;
}
.mosaic__item .frame {
  transition: none;
}
.mosaic__item:hover .frame {
  border-radius: 0;
}

/* the exposure-to-understanding panel: dark on the left, colour on the right (kept here so it wins over the base panel colour) */
.flowviz {
  background: linear-gradient(
    90deg,
    #14120f 0%,
    #1c1822 34%,
    #3b2f55 47%,
    #c99ab8 57%,
    #f6c4a6 66%,
    #d4c9f3 84%,
    #bedaf0 100%
  );
}
@media (max-width: 560px) {
  .fact dd {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 1.3rem;
  }
}
