/* Editorial case study layout (templates/case-study-editorial.php). Class prefix .ch-
 * Project colours come from a theme file (for example casestudy-bathroomking.css) through --cs-brand-navy and --cs-brand-gold.
 * The hero: text on the left and the landscape artwork bleeding off the right edge on desktop, stacked on tablets and phones.
 * The curved mask, floating header, typography and dark mode are WaveLocal's own. */
.ch-page {
  --ch-navy: var(--cs-brand-navy, var(--primary));
  --ch-gold: var(--cs-brand-gold, var(--secondary));
}
.ch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ hero */
.ch-hero {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-color: var(--ch-navy);
  padding: clamp(8.5rem, 13vw, 10rem) 0 calc(7.1vw + 0.5rem);
}
.ch-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin: 0 auto;
  max-width: 80rem;
  padding: 0 1rem;
}
.ch-hero__text {
  min-width: 0;
}
.ch-hero .cs-breadcrumbs {
  margin: 0 0 1.75rem;
}
.ch-hero .cs-breadcrumbs li,
.ch-hero .cs-breadcrumbs a {
  color: rgba(255, 255, 255, 0.72);
}
.ch-topper {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.1rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: clamp(0.8125rem, 1.3vw, 0.9375rem);
  line-height: 1.2em;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--ch-gold);
}
.ch-topper:before {
  content: "";
  flex: none;
  background-color: var(--ch-gold);
  height: 2px;
  width: 2.5rem;
  transform-origin: left center;
}
.ch-hero__title {
  margin: 0;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: clamp(2.25rem, 3.7vw, 3.875rem);
  line-height: 1.08em;
  font-weight: 700;
  color: #fff;
}
.ch-hero__a,
.ch-hero__b {
  display: block;
  text-wrap: balance;
}
.ch-hero__b {
  color: var(--ch-gold);
}
.ch-hero__lead {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.1625rem, 1.65vw, 1.3rem);
  line-height: 1.6em;
  color: rgba(255, 255, 255, 0.9);
}
/* The middle dots belong to the start of each item and hang outside the box, so a dot never ends or starts a wrapped line. */
.ch-disciplines {
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  line-height: 1.6em;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.ch-disciplines li {
  position: relative;
  margin: 0 1.5em 0 0;
  padding: 0;
  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}
.ch-disciplines li:before {
  content: "\00b7";
  position: absolute;
  left: -0.95em;
}
.ch-disciplines li:first-child:before {
  content: none;
}
.ch-hero__media {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  border-radius: 1.25rem;
}
.ch-hero__img {
  display: block;
  height: auto;
  width: 100%;
}
.ch-hero .cs-mask {
  --maskBG: #ffffff;
  z-index: 100;
  position: absolute;
  bottom: -1px;
  left: 0;
  display: block;
  height: auto;
  width: 100%;
}
html.dark-mode .ch-hero .cs-mask {
  --maskBG: var(--dark);
}
/* Phones: the artwork runs edge to edge, uncropped. */
@media only screen and (max-width: 39.999rem) {
  .ch-hero__media {
    margin: 0 -1rem;
    border-radius: 0;
  }
  .ch-hero {
    padding-bottom: calc(7.1vw + 1rem);
  }
}
@media only screen and (min-width: 64rem) {
  .ch-hero {
    padding-top: clamp(9rem, 11vw, 10.5rem);
  }
  .ch-disciplines {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
  }
  .ch-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    column-gap: clamp(2rem, 3.5vw, 3.5rem);
    padding-left: max(1rem, calc((100% - 80rem) / 2));
    padding-right: 0;
    max-width: none;
  }
  .ch-hero__media {
    border-radius: 1.5rem 0 0 1.5rem;
  }
}

/* ------------------------------------------------------------------ project at a glance */
.ch-glance {
  position: relative;
  z-index: 1;
  background-color: #fff;
  padding: clamp(1.5rem, 3vw, 2.5rem) 1rem clamp(4.5rem, 9vw, 7.5rem);
}
.ch-glance__inner {
  margin: 0 auto;
  max-width: 80rem;
  border-top: 1px solid #dfe4ea;
  border-bottom: 1px solid #dfe4ea;
}
.ch-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
.ch-fact {
  min-width: 0;
  padding: 1.15rem 1rem;
  border-left: 1px solid #dfe4ea;
}
.ch-fact:nth-child(odd) {
  border-left: 0;
  padding-left: 0;
}
.ch-fact:nth-child(n + 3) {
  border-top: 1px solid #dfe4ea;
}
.ch-fact dt {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.75rem;
  line-height: 1.2em;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #6b7280;
}
.ch-fact dd {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35em;
  font-weight: 700;
  color: var(--headerColor);
}
.ch-fact a {
  color: var(--headerColor);
  text-decoration: underline;
  text-decoration-color: var(--ch-gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}
.ch-fact a:hover {
  text-decoration-color: var(--headerColor);
}
@media only screen and (min-width: 64rem) {
  .ch-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ch-fact {
    padding: 1.6rem 1.5rem;
  }
  .ch-fact:nth-child(odd) {
    border-left: 1px solid #dfe4ea;
    padding-left: 1.5rem;
  }
  .ch-fact:first-child {
    border-left: 0;
    padding-left: 0;
  }
  .ch-fact:nth-child(n + 3) {
    border-top: 0;
  }
  .ch-fact dd {
    font-size: 1.1875rem;
  }
}
html.dark-mode .ch-glance {
  background-color: var(--dark);
}
html.dark-mode .ch-glance__inner,
html.dark-mode .ch-fact,
html.dark-mode .ch-fact:nth-child(n + 3) {
  border-color: rgba(255, 255, 255, 0.16);
}
html.dark-mode .ch-fact dt {
  color: rgba(255, 255, 255, 0.62);
}
html.dark-mode .ch-fact dd,
html.dark-mode .ch-fact a {
  color: #fff;
}

/* ------------------------------------------------------------------ editorial sections (foundation) */
.ch-section {
  padding: 0 1rem clamp(3.5rem, 7vw, 6rem);
  background-color: #fff;
}
.ch-section__inner {
  margin: 0 auto;
  max-width: 50rem;
}
.ch-section__title {
  margin: 0 0 1.25rem;
  font-size: var(--headerFontSize);
  line-height: 1.15em;
  font-weight: 700;
  color: var(--headerColor);
}
.ch-section__body p {
  margin: 0 0 1.1rem;
  font-size: 1.125rem;
  line-height: 1.7em;
  color: var(--bodyTextColor);
}
html.dark-mode .ch-section {
  background-color: var(--dark);
}
html.dark-mode .ch-section__title {
  color: #fff;
}
html.dark-mode .ch-section__body p {
  color: rgba(255, 255, 255, 0.86);
}

/* ------------------------------------------------------------------ motion (subtle, CSS only, never hides content) */
@media (prefers-reduced-motion: no-preference) {
  .ch-topper,
  .ch-hero__title,
  .ch-hero__lead,
  .ch-disciplines {
    animation: ch-rise 0.55s ease-out both;
  }
  .ch-hero__title {
    animation-delay: 0.06s;
  }
  .ch-hero__lead {
    animation-delay: 0.12s;
  }
  .ch-disciplines {
    animation-delay: 0.18s;
  }
  .ch-topper:before {
    animation: ch-rule 0.6s ease-out 0.1s both;
  }
  .ch-hero__img {
    animation: ch-settle 1s ease-out both;
  }
}
@keyframes ch-rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}
@keyframes ch-rule {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}
@keyframes ch-settle {
  from {
    transform: scale(1.03);
  }
  to {
    transform: none;
  }
}

/* WaveLocal's dark mode sets a colour on every paragraph; keep the hero's own text colours there too. */
html.dark-mode .ch-hero .ch-topper {
  color: var(--ch-gold);
}
html.dark-mode .ch-hero .ch-hero__lead {
  color: rgba(255, 255, 255, 0.9);
}
html.dark-mode .ch-hero .ch-disciplines {
  color: rgba(255, 255, 255, 0.92);
}

/* ------------------------------------------------------------------ shared editorial sections */
.ch-page {
  --ch-hair: #dfe4ea;
  --ch-muted: #5b6570;
}
html.dark-mode .ch-page {
  --ch-hair: rgba(255, 255, 255, 0.16);
  --ch-muted: rgba(255, 255, 255, 0.68);
}
.ch-sec {
  position: relative;
  z-index: 1;
  background-color: #fff;
  padding: clamp(3.5rem, 8vw, 7rem) 1rem;
}
.ch-sec__inner {
  margin: 0 auto;
  max-width: 80rem;
}
.ch-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 700;
  letter-spacing: 0.26em;
  color: var(--ch-muted);
}
.ch-eyebrow:before {
  content: "";
  flex: none;
  background-color: var(--ch-gold);
  height: 2px;
  width: 2rem;
}
.ch-h2 {
  margin: 0;
  max-width: 16ch;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: clamp(1.875rem, 3.2vw, 3rem);
  line-height: 1.1em;
  font-weight: 700;
  color: var(--headerColor);
  text-wrap: balance;
}
html.dark-mode .ch-sec {
  background-color: var(--dark);
}
html.dark-mode .ch-h2 {
  color: #fff;
}

/* ------------------------------------------------------------------ 01 intro (the brief) */
.ch-intro {
  padding-top: 0;
}
.ch-intro__grid {
  display: grid;
  gap: 2rem;
}
.ch-intro__body {
  max-width: 40rem;
}
.ch-intro__body p {
  margin: 0 0 1.2rem;
  font-size: 1.125rem;
  line-height: 1.7em;
  color: var(--bodyTextColor);
}
.ch-intro__body p:first-child {
  margin-bottom: 1.6rem;
  font-size: clamp(1.3rem, 1.9vw, 1.5rem);
  line-height: 1.5em;
  color: var(--headerColor);
}
.ch-intro__body h3 {
  margin: 2.5rem 0 0.9rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ch-muted);
}
.ch-intro__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ch-hair);
}
.ch-intro__body li {
  margin: 0;
  border-bottom: 1px solid var(--ch-hair);
  padding: 1rem 0;
  font-size: 1.0625rem;
  line-height: 1.55em;
  color: var(--bodyTextColor);
}
.ch-intro__body li strong {
  display: block;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 1.125rem;
  line-height: 1.25em;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--headerColor);
}
html.dark-mode .ch-intro__body p,
html.dark-mode .ch-intro__body li {
  color: rgba(255, 255, 255, 0.84);
}
html.dark-mode .ch-intro__body p:first-child,
html.dark-mode .ch-intro__body li strong {
  color: #fff;
}
@media only screen and (min-width: 64rem) {
  .ch-intro__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: start;
  }
  .ch-intro__head {
    position: sticky;
    top: 7.5rem;
  }
}

/* ------------------------------------------------------------------ 02 brand identity (an extract from a brand document) */
.ch-brand {
  background-color: #f5f6f8;
}
html.dark-mode .ch-brand {
  background-color: #071520;
}
.ch-brand__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.ch-brand__copy {
  max-width: 34rem;
}
.ch-brand__copy p {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.7em;
  color: var(--bodyTextColor);
}
html.dark-mode .ch-brand__copy p {
  color: rgba(255, 255, 255, 0.84);
}
.ch-plates {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  border: 1px solid var(--ch-hair);
  background-color: var(--ch-hair);
}
.ch-plate {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: 13rem;
  padding: 2.25rem 1.5rem 3.25rem;
  background-color: #fff;
}
.ch-plate--dark {
  background-color: var(--ch-navy);
}
.ch-plate--light {
  background-color: #fff;
}
.ch-plate--colours,
.ch-plate--type {
  align-items: stretch;
  background-color: #fff;
}
html.dark-mode .ch-plate--colours,
html.dark-mode .ch-plate--type {
  background-color: #0a1824;
}
.ch-plate__logo {
  display: block;
  height: auto;
  width: min(100%, 32rem);
}
.ch-plate--light .ch-plate__logo {
  width: min(100%, 22rem);
}
.ch-plate__symbol {
  display: block;
  height: auto;
  width: clamp(6.5rem, 14vw, 9.5rem);
}
.ch-plate__cap {
  position: absolute;
  left: 1.25rem;
  bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.75rem;
  line-height: 1.2em;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ch-muted);
}
.ch-plate__cap span {
  margin-right: 0.6em;
  color: inherit;
}
.ch-plate--dark .ch-plate__cap {
  color: rgba(255, 255, 255, 0.72);
}
.ch-plate--light .ch-plate__cap {
  color: #5b6570;
}
.ch-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0 0 0.75rem;
  width: 100%;
  list-style: none;
}
.ch-swatch {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}
.ch-swatch__fill {
  display: block;
  margin-bottom: 0.8rem;
  border: 1px solid var(--ch-hair);
  height: clamp(5rem, 9vw, 8rem);
  width: 100%;
}
.ch-swatch__name {
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.9375rem;
  line-height: 1.2em;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--headerColor);
}
.ch-swatch__val {
  font-size: 0.8125rem;
  line-height: 1.5em;
  font-variant-numeric: tabular-nums;
  color: var(--ch-muted);
}
html.dark-mode .ch-swatch__name {
  color: #fff;
}
.ch-types {
  display: grid;
  gap: 2rem;
  width: 100%;
  padding-bottom: 0.75rem;
}
.ch-type__sample {
  margin: 0 0 0.6rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.15em;
  color: var(--headerColor);
}
.ch-type--0 .ch-type__sample {
  font-family: var(--cs-font-0, serif);
}
.ch-type--1 .ch-type__sample {
  font-family: var(--cs-font-1, sans-serif);
}
.ch-type__meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ch-muted);
}
html.dark-mode .ch-type__sample {
  color: #fff;
}
@media only screen and (min-width: 40rem) {
  .ch-plate {
    min-height: 17rem;
  }
  .ch-types {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media only screen and (min-width: 64rem) {
  .ch-brand__head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
  }
  .ch-plates {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }
  .ch-plate--logo {
    grid-column: span 8;
    min-height: 23rem;
  }
  .ch-plate--logo-light {
    grid-column: span 4;
    min-height: 23rem;
  }
  .ch-plate--symbol {
    grid-column: span 4;
    min-height: 19rem;
  }
  .ch-plate--colours {
    grid-column: span 8;
    padding: 2.75rem 2.5rem 3.5rem;
  }
  .ch-plate--type {
    grid-column: 1 / -1;
    padding: 2.75rem 2.5rem 3.5rem;
  }
}

/* ------------------------------------------------------------------ motion for the sections (transform only, never hides content) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ch-intro__body,
    .ch-brand__head,
    .ch-plate {
      animation: ch-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes ch-reveal {
  from {
    transform: translateY(14px);
  }
  to {
    transform: none;
  }
}

/* Small refinements */
.ch-hero__lead {
  text-wrap: pretty;
}
@media only screen and (max-width: 39.999rem) {
  .ch-disciplines {
    letter-spacing: 0.06em;
  }
  .ch-disciplines li {
    margin-right: 1.25em;
  }
  .ch-swatch__val {
    white-space: nowrap;
    font-size: 0.75rem;
  }
}
@media only screen and (max-width: 63.999rem) {
  .ch-h2 {
    max-width: 24ch;
  }
}

/* ------------------------------------------------------------------ the brief: tighter, more scannable */
.ch-intro .ch-h2 {
  max-width: none;
}
.ch-intro__grid {
  gap: 1.75rem;
}
@media only screen and (min-width: 64rem) {
  .ch-intro__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }
}
.ch-intro__body li {
  padding: 0.85rem 0;
}
.ch-intro__body li strong {
  display: block;
  margin: 0 0 0.1rem;
}

/* ------------------------------------------------------------------ typography plates */
.ch-plate--type {
  align-items: stretch;
  justify-content: flex-start;
  padding: 2.25rem 1.5rem 3.5rem;
}
.ch-plate--type-0 {
  background-color: var(--ch-navy);
}
.ch-plate--type-0 .ch-plate__cap {
  color: rgba(255, 255, 255, 0.72);
}
.ch-type {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.ch-type__label {
  margin: 0 0 1.25rem;
  font-family: var(--cs-font-1, sans-serif);
  font-size: 0.8125rem;
  line-height: 1.4em;
  color: var(--ch-muted);
}
.ch-type__label strong {
  display: block;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--headerColor);
}
.ch-plate--type-0 .ch-type__label {
  color: rgba(255, 255, 255, 0.72);
}
.ch-plate--type-0 .ch-type__label strong {
  color: var(--ch-gold);
}
html.dark-mode .ch-type__label strong {
  color: #fff;
}
html.dark-mode .ch-plate--type-0 .ch-type__label strong {
  color: var(--ch-gold);
}
.ch-type__glyph {
  margin: 0 0 0.5rem;
  font-size: clamp(5rem, 9vw, 8rem);
  line-height: 1em;
  color: var(--headerColor);
}
.ch-type--0 .ch-type__glyph,
.ch-type--0 .ch-type__sample,
.ch-type--0 .ch-type__alpha {
  font-family: var(--cs-font-0, serif);
  font-weight: 400;
}
.ch-type--1 .ch-type__glyph,
.ch-type--1 .ch-type__sample,
.ch-type--1 .ch-type__alpha {
  font-family: var(--cs-font-1, sans-serif);
}
.ch-type--1 .ch-type__glyph {
  font-weight: 500;
}
.ch-type__sample {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  line-height: 1.2em;
  color: var(--headerColor);
}
.ch-type--1 .ch-type__sample {
  font-size: clamp(1.125rem, 1.7vw, 1.4rem);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.ch-type__alpha {
  margin: auto 0 0;
  font-size: 0.9375rem;
  line-height: 1.6em;
  letter-spacing: 0.04em;
  color: var(--ch-muted);
}
.ch-plate--type-0 .ch-type__glyph,
.ch-plate--type-0 .ch-type__sample {
  color: #fff;
}
.ch-plate--type-0 .ch-type__glyph {
  color: var(--ch-gold);
}
.ch-plate--type-0 .ch-type__alpha {
  color: rgba(255, 255, 255, 0.72);
}
html.dark-mode .ch-type__glyph,
html.dark-mode .ch-type__sample {
  color: #fff;
}
html.dark-mode .ch-plate--type-0 .ch-type__glyph {
  color: var(--ch-gold);
}
@media only screen and (min-width: 64rem) {
  .ch-plate--type {
    padding: 2.75rem 2.5rem 3.5rem;
  }
  .ch-plate--type-0 {
    grid-column: span 7;
  }
  .ch-plate--type-1 {
    grid-column: span 5;
  }
}
html.dark-mode .ch-plate--type-0 {
  background-color: var(--ch-navy);
}

/* ------------------------------------------------------------------ 03 website showcase (navy, immersive) */
.ch-showcase {
  background-color: var(--ch-navy);
  color: #fff;
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
html.dark-mode .ch-showcase {
  background-color: var(--ch-navy);
}
.ch-showcase .ch-eyebrow {
  color: rgba(255, 255, 255, 0.72);
}
.ch-showcase .ch-h2 {
  color: #fff;
  max-width: 18ch;
}
html.dark-mode .ch-showcase .ch-h2 {
  color: #fff;
}
.ch-showcase__head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.ch-showcase__intro {
  max-width: 32rem;
}
.ch-showcase__intro p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65em;
  color: rgba(255, 255, 255, 0.86);
}
html.dark-mode .ch-showcase__intro p {
  color: rgba(255, 255, 255, 0.86);
}
.ch-scene {
  margin: 0 0 clamp(3rem, 6vw, 5.5rem);
}
.ch-scene:last-child {
  margin-bottom: 0;
}
/* minimal frames, drawn in CSS around the genuine screenshots */
.ch-browser {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.75rem;
  background-color: #fff;
  box-shadow: 0 1.5rem 3rem -1.5rem rgba(0, 0, 0, 0.55);
}
.ch-browser__bar {
  display: flex;
  gap: 0.4rem;
  background-color: #17293b;
  padding: 0.6rem 0.9rem;
}
.ch-browser__bar i {
  display: block;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.28);
  height: 0.5rem;
  width: 0.5rem;
}
.ch-shot {
  display: block;
  height: auto;
  width: 100%;
}
.ch-cap {
  display: grid;
  gap: 0.35rem 2rem;
  margin: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 0.9rem;
}
.ch-cap__label {
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.875rem;
  line-height: 1.3em;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ch-gold);
}
.ch-cap__label span {
  margin-right: 0.5em;
  opacity: 0.85;
}
.ch-cap__text {
  max-width: 34rem;
  font-size: 1rem;
  line-height: 1.6em;
  color: rgba(255, 255, 255, 0.84);
}
.ch-scene--pair {
  display: grid;
  gap: 2.75rem;
}
.ch-scene--phones {
  display: grid;
  gap: 2rem;
}
.ch-phones {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem 0 1rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.ch-phone {
  flex: 0 0 min(62vw, 15rem);
  margin: 0;
  scroll-snap-align: start;
}
.ch-phone__body {
  overflow: hidden;
  border: 0.4rem solid #1b2e42;
  border-radius: 2rem;
  background-color: #1b2e42;
  outline: 1px solid rgba(255, 255, 255, 0.14);
}
.ch-phone__body .ch-shot {
  border-radius: 1.55rem;
}
.ch-phones:focus-visible {
  outline: 2px solid var(--ch-gold);
  outline-offset: 4px;
}
@media only screen and (min-width: 64rem) {
  .ch-showcase__head {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    column-gap: clamp(3rem, 7vw, 7rem);
    align-items: end;
  }
  .ch-cap {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
  .ch-scene--wide .ch-cap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }
  .ch-scene--pair {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }
  .ch-pair__a {
    grid-column: 1 / span 7;
    margin: 0;
  }
  .ch-pair__b {
    grid-column: 8 / span 5;
    margin: 6rem 0 0;
  }
  .ch-pair__a .ch-cap,
  .ch-pair__b .ch-cap {
    grid-template-columns: 1fr;
  }
  .ch-scene--phones {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
  }
  .ch-phones {
    justify-content: center;
    gap: clamp(1rem, 2.5vw, 2rem);
    overflow: visible;
    padding: 0;
  }
  .ch-phone {
    flex: 0 1 30%;
  }
  .ch-phone--1 {
    margin-top: -2.5rem;
  }
  .ch-phone--1,
  .ch-phone--0,
  .ch-phone--2 {
    transform: none;
  }
  .ch-phones__cap .ch-cap {
    grid-template-columns: 1fr;
  }
}
@media only screen and (min-width: 40rem) and (max-width: 63.999rem) {
  .ch-phone {
    flex-basis: 30%;
  }
  .ch-phones {
    overflow: visible;
  }
}
@media only screen and (min-width: 64rem) {
  .ch-intro .ch-h2 {
    max-width: 10.4em;
  }
}

/* ------------------------------------------------------------------ 04 behind the build (conceptual system visualisations, deep navy) */
.ch-systems {
  --sys-bg: color-mix(in srgb, var(--ch-navy) 62%, #000);
  --sys-line: rgba(255, 255, 255, 0.16);
  --sys-soft: rgba(255, 255, 255, 0.06);
  --sys-text: rgba(255, 255, 255, 0.86);
  --sys-dim: rgba(255, 255, 255, 0.72);
  background-color: var(--sys-bg);
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  color: #fff;
}
html.dark-mode .ch-systems {
  background-color: var(--sys-bg);
}
.ch-systems .ch-eyebrow {
  color: var(--sys-dim);
}
.ch-systems .ch-h2,
html.dark-mode .ch-systems .ch-h2 {
  max-width: 14ch;
  color: #fff;
}
.ch-systems__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.ch-systems__intro {
  max-width: 34rem;
  border-top: 1px solid var(--ch-gold);
  padding-top: 1.1rem;
}
.ch-systems__intro p,
html.dark-mode .ch-systems__intro p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.65em;
  color: var(--sys-text);
}
.ch-sys {
  display: grid;
  gap: 1.75rem;
  margin: 0 0 clamp(3.5rem, 7vw, 6.5rem);
}
.ch-sys__cap {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  max-width: 30rem;
}
.ch-sys__num {
  font-family: var(--headerFont);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ch-gold);
}
.ch-sys__title {
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.2em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
}
.ch-sys__text {
  font-size: 1rem;
  line-height: 1.6em;
  color: var(--sys-text);
}
.ch-sys__viz {
  position: relative;
  min-width: 0;
}
.ch-sys__tag {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  line-height: 1.2em;
  letter-spacing: 0.14em;
  color: var(--sys-dim);
}

/* 4.1 flow: unboxed, a chain of stages on fine lines */
.ch-sys--flow .ch-sys__viz {
  border-top: 1px solid var(--sys-line);
  border-bottom: 1px solid var(--sys-line);
  padding: 1.1rem 0 2rem;
}
.ch-flow {
  --gap: 1.75rem;
  display: grid;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ch-flow__step {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.ch-flow__glyph {
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--sys-line);
  border-radius: 50%;
  background-color: var(--sys-bg);
  color: rgba(255, 255, 255, 0.82);
  height: 4.5rem;
  width: 4.5rem;
}
.ch-flow__glyph svg {
  height: 2.75rem;
  width: 2.75rem;
}
.ch-gl-gold {
  fill: var(--ch-gold);
  stroke: none;
}
.ch-flow__step:nth-child(4) .ch-flow__glyph {
  border-color: var(--ch-gold);
}
.ch-flow__body {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.55rem;
}
.ch-flow__body strong {
  font-family: var(--headerFont);
  font-size: 1.125rem;
  line-height: 1.25em;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}
.ch-flow__body span {
  font-size: 0.9375rem;
  line-height: 1.45em;
  color: var(--sys-dim);
}
/* the vertical connector (small screens) */
.ch-flow__step:not(:last-child):after {
  content: "";
  position: absolute;
  top: 4.5rem;
  left: 2.25rem;
  width: 1px;
  height: var(--gap);
  background-image: linear-gradient(var(--ch-gold) 50%, transparent 50%);
  background-size: 1px 6px;
}

/* 4.2 pricing: copy beside a calculation panel */
.ch-calc {
  border: 1px solid var(--sys-line);
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.045);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.ch-calc__title,
.ch-portal__title {
  margin: 0 0 1.1rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.875rem;
  line-height: 1.2em;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--ch-gold);
}
.ch-calc__rows {
  margin: 0;
}
.ch-calc__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem 1rem;
  align-items: baseline;
  border-top: 1px solid var(--sys-line);
  padding: 0.85rem 0;
}
.ch-calc__row dt {
  font-size: 1rem;
  color: var(--sys-text);
}
.ch-calc__row dd {
  margin: 0;
  font-family: var(--headerFont);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}
.ch-calc__bar {
  grid-column: 1 / -1;
  display: block;
  position: relative;
  border-radius: 2px;
  background-color: var(--sys-line);
  height: 4px;
}
.ch-calc__bar i {
  position: absolute;
  top: 50%;
  left: 25%;
  border: 2px solid var(--ch-gold);
  border-radius: 50%;
  background-color: var(--sys-bg);
  height: 0.9rem;
  width: 0.9rem;
  transform: translate(-50%, -50%);
}
.ch-calc__bar:before {
  content: "";
  position: absolute;
  inset: 0 75% 0 0;
  border-radius: 2px;
  background-color: var(--ch-gold);
}
.ch-calc__row--result {
  margin-top: 0.25rem;
  border-top-color: var(--ch-gold);
}
.ch-calc__row--result dt {
  color: #fff;
  font-weight: 600;
}
.ch-calc__row--result dd {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--ch-gold);
}
.ch-calc__rules {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.ch-calc__rules li {
  display: grid;
  gap: 0.1rem;
  border-left: 2px solid var(--sys-line);
  padding: 0.15rem 0 0.15rem 0.85rem;
}
.ch-calc__rules li.is-active {
  border-left-color: var(--ch-gold);
}
.ch-calc__rules strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}
.ch-calc__rules span {
  font-size: 0.875rem;
  line-height: 1.4em;
  color: var(--sys-dim);
}

/* 4.3 portal: an application list, an approval line, then the account area */
.ch-portal {
  display: grid;
  gap: 0;
}
.ch-portal__panel {
  border: 1px solid var(--sys-line);
  border-radius: 0.75rem;
  background-color: rgba(255, 255, 255, 0.045);
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}
.ch-portal__panel ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ch-portal__review li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--sys-line);
  border-radius: 0.5rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9375rem;
  color: var(--sys-text);
}
.ch-portal__review li.is-approved {
  border-color: var(--ch-gold);
}
.ch-chip {
  border: 1px solid var(--sys-line);
  border-radius: 99px;
  padding: 0.15rem 0.65rem;
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.3em;
  color: var(--sys-dim);
}
.ch-chip--ok {
  border-color: var(--ch-gold);
  background-color: var(--ch-gold);
  font-weight: 600;
  color: var(--ch-navy);
}
.ch-portal__link {
  justify-self: center;
  position: relative;
  display: block;
  background-image: linear-gradient(var(--ch-gold) 50%, transparent 50%);
  background-size: 1px 6px;
  height: 3rem;
  width: 1px;
}
.ch-portal__link:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  border-right: 1px solid var(--ch-gold);
  border-bottom: 1px solid var(--ch-gold);
  height: 0.5rem;
  width: 0.5rem;
  transform: translateX(-50%) rotate(45deg);
}
.ch-portal__who {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  font-family: var(--headerFont);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}
.ch-portal__tiles {
  grid-template-columns: 1fr;
}
.ch-portal__tiles li {
  border-top: 2px solid var(--ch-gold);
  background-color: var(--sys-soft);
  padding: 0.8rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

/* supporting capabilities: a single ruled row, not cards */
.ch-support {
  border-top: 1px solid var(--sys-line);
}
.ch-support ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ch-support li {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  border-bottom: 1px solid var(--sys-line);
  padding: 1.1rem 0;
}
.ch-support strong {
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ch-gold);
}
.ch-support span {
  font-size: 0.9375rem;
  line-height: 1.55em;
  color: var(--sys-text);
}

@media only screen and (min-width: 40rem) {
  .ch-support ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }
}
@media only screen and (min-width: 64rem) {
  .ch-systems__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: end;
  }
  .ch-systems__head > div:first-child {
    grid-column: 1 / span 6;
  }
  .ch-systems__intro {
    grid-column: 8 / span 5;
  }
  .ch-sys--pricing,
  .ch-sys--portal {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 2rem;
    align-items: center;
  }
  .ch-sys--pricing .ch-sys__cap {
    grid-column: 1 / span 4;
  }
  .ch-sys--pricing .ch-sys__viz {
    grid-column: 6 / span 7;
  }
  .ch-sys--portal .ch-sys__cap {
    grid-column: 9 / span 4;
    grid-row: 1;
  }
  .ch-sys--portal .ch-sys__viz {
    grid-column: 1 / span 8;
    grid-row: 1;
  }
  .ch-sys--flow .ch-sys__cap {
    max-width: 36rem;
  }
  .ch-flow {
    --gap: 3.5rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ch-flow__step {
    flex-direction: column;
    gap: 1.25rem;
  }
  .ch-flow__body {
    padding-top: 0;
  }
  /* the horizontal connector, glyph to glyph */
  .ch-flow__step:not(:last-child):after {
    top: 2.25rem;
    left: 5.25rem;
    width: calc(100% + var(--gap) - 6rem);
    height: 1px;
    background-image: linear-gradient(90deg, var(--ch-gold) 50%, transparent 50%);
    background-size: 6px 1px;
  }
  .ch-portal {
    grid-template-columns: minmax(0, 5fr) 3.5rem minmax(0, 6fr);
    align-items: center;
  }
  .ch-portal__link {
    height: 1px;
    width: 100%;
    background-image: linear-gradient(90deg, var(--ch-gold) 50%, transparent 50%);
    background-size: 6px 1px;
  }
  .ch-portal__link:after {
    bottom: auto;
    top: 50%;
    left: auto;
    right: -1px;
    transform: translateY(-50%) rotate(-45deg);
  }
  .ch-support ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
  .ch-support li {
    border-bottom: 0;
    padding: 1.4rem 0 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ch-sys__viz {
      animation: ch-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}

/* ------------------------------------------------------------------ 05 the partnership (quiet, light conclusion) */
.ch-partner__grid {
  display: grid;
  gap: 1.75rem;
}
.ch-partner__body {
  max-width: 38rem;
}
.ch-partner__body p {
  margin: 0 0 1.1rem;
  font-size: 1.125rem;
  line-height: 1.7em;
  color: var(--bodyTextColor);
}
.ch-partner__body p:first-child {
  margin-bottom: 1.4rem;
  font-size: clamp(1.3rem, 1.9vw, 1.5rem);
  line-height: 1.5em;
  color: var(--headerColor);
}
.ch-partner__body p:last-child {
  margin-bottom: 0;
}
html.dark-mode .ch-partner__body p {
  color: rgba(255, 255, 255, 0.86);
}
html.dark-mode .ch-partner__body p:first-child {
  color: #fff;
}
.ch-delivered {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--ch-gold);
  padding-top: 1.25rem;
}
.ch-delivered__title {
  margin: 0 0 1rem;
  text-transform: uppercase;
  font-family: var(--headerFont);
  font-size: 0.8125rem;
  line-height: 1.2em;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--ch-muted);
}
.ch-delivered__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ch-delivered__list li {
  margin: 0;
  border-bottom: 1px solid var(--ch-hair);
  padding: 0.85rem 0;
  font-family: var(--headerFont);
  font-size: 1.125rem;
  line-height: 1.3em;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--headerColor);
}
.ch-delivered__list li:first-child {
  border-top: 1px solid var(--ch-hair);
}
html.dark-mode .ch-delivered__list li {
  color: #fff;
}
@media only screen and (min-width: 40rem) {
  .ch-delivered__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .ch-delivered__list li:nth-child(2) {
    border-top: 1px solid var(--ch-hair);
  }
}
@media only screen and (min-width: 64rem) {
  .ch-partner__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }
}
