/* Compose the standalone Benn Day Software public stylesheet. */
/* Benn Day Software colours styles migrated from project-owned ui-kit source. */
:root {
  --bds-colour-paper: #f7f3e9;
  --bds-colour-paper-deep: #eee8db;
  --bds-colour-ink: #17221e;
  --bds-colour-ink-soft: #4e5853;
  --bds-colour-forest: #173d34;
  --bds-colour-forest-deep: #0f2e27;
  --bds-colour-clay: #bf6c50;
  --bds-colour-sea-glass: #91ada7;
  --bds-colour-powder: #9dd9e8;
  --bds-colour-butter: #f2d777;
  --bds-colour-lilac: #d9d0ea;
  --bds-colour-cream: #f5e9ba;
  --bds-colour-surface-powder: #add1d7;
  --bds-colour-surface-butter: #ebd07a;
  --bds-colour-surface-lavender: #cfc3dd;
  --bds-colour-surface-clay: #e5bfa8;
  --bds-colour-line: rgb(23 34 30 / 20%);
  --bds-colour-line-light: rgb(247 243 233 / 22%);
  --bds-rule-strong: 1px solid var(--bds-colour-ink);
  --bds-rule-soft: 1px solid var(--bds-colour-line);
  --bds-rule-soft-reversed: 1px solid var(--bds-colour-line-light);
}

/* Benn Day Software fonts styles migrated from project-owned ui-kit source. */
:root {
  --bds-font-masthead: 'BND Josefin', 'Futura', 'Century Gothic', sans-serif;
  --bds-font-display: 'BND Juana', 'Iowan Old Style', 'Baskerville', serif;
  --bds-font-sans: 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --bds-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Benn Day Software tokens styles migrated from project-owned ui-kit source. */
:root {
  --bds-page-padding: clamp(1.25rem, 4vw, 4.75rem);
  --bds-section-space: clamp(7rem, 12vw, 12rem);
  --bds-page-opening-space: clamp(3rem, 5vw, 5rem);
  --bds-content-width: 94rem;
  --bds-reading-width: 46rem;
  --bds-sticky-header-height: 5.25rem;
  --bds-radius-small: 0.25rem;
  --bds-transition: 160ms ease;
}

/* Benn Day Software reset base styles migrated from project-owned ui-kit source. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-padding-top: var(--bds-sticky-header-height);
  scroll-behavior: smooth;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--bds-colour-paper);
  color: var(--bds-colour-ink);
  font-family: var(--bds-font-sans);
  line-height: 1.65;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

::selection {
  background: var(--bds-colour-butter);
  color: var(--bds-colour-ink);
}

:focus-visible {
  outline: 3px solid var(--bds-colour-clay);
  outline-offset: 4px;
}

/* Benn Day Software typography styles migrated from project-owned ui-kit source. */
h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--bds-font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 15ch;
  margin-bottom: 1.75rem;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  line-height: 1;
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  line-height: 1.08;
}

.bds-eyebrow,
.bds-card__number,
.bds-utility-copy {
  font-family: var(--bds-font-masthead);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bds-eyebrow {
  margin-bottom: 1rem;
  color: var(--bds-colour-clay);
}

.bds-lead {
  max-width: 48rem;
  margin-bottom: 0;
  color: var(--bds-colour-ink-soft);
  font-family: var(--bds-font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5;
}

.bds-display-accent {
  color: var(--bds-colour-clay);
  font-style: italic;
}

/* Benn Day Software layout styles migrated from project-owned ui-kit source. */
.bds-shell {
  width: min(100%, var(--bds-content-width));
  margin-inline: auto;
  padding-inline: var(--bds-page-padding);
}

.bds-main {
  min-width: 0;
}

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

.bds-section--compact {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.bds-page-opening {
  --bds-section-start-space: var(--bds-page-opening-space);
}

.bds-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.bds-grid__wide {
  grid-column: span 7;
}

.bds-grid__narrow {
  grid-column: 9 / -1;
}

.bds-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--bds-colour-ink);
  border: 1px solid var(--bds-colour-ink);
}

.bds-reading {
  max-width: var(--bds-reading-width);
}

.bds-reading > * + * {
  margin-top: 1.25rem;
}

/* Benn Day Software components styles migrated from project-owned ui-kit source. */
.bds-skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bds-colour-ink);
  color: var(--bds-colour-paper);
  transform: translateY(-150%);
}

.bds-skip-link:focus {
  transform: translateY(0);
}

.bds-header-utility {
  border-bottom: var(--bds-rule-soft);
}

.bds-header__utility {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.bds-header__availability-dot {
  position: relative;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.45rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--bds-colour-clay);
}

.bds-header__availability-dot::after {
  position: absolute;
  inset: -0.24rem;
  border: 1px solid var(--bds-colour-clay);
  border-radius: inherit;
  animation: bds-availability-pulse 2.4s ease-out infinite;
  content: '';
}

@keyframes bds-availability-pulse {
  0% {
    opacity: 0.6;
    transform: scale(0.45);
  }

  55%,
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

.bds-header {
  position: sticky;
  z-index: 40;
  top: 0;
  border-bottom: var(--bds-rule-strong);
  background: var(--bds-colour-paper);
}

.bds-header__bar {
  min-height: var(--bds-sticky-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.bds-logo {
  flex: 0 1 17rem;
  display: block;
}

.bds-logo img {
  width: 100%;
  display: block;
}

.bds-navigation,
.bds-navigation__links {
  display: flex;
  align-items: center;
}

.bds-navigation__links {
  gap: clamp(1rem, 2.4vw, 2.5rem);
}

.bds-navigation a,
.bds-navigation__toggle {
  border: 0;
  background: transparent;
  font-family: var(--bds-font-masthead);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.bds-navigation a {
  position: relative;
  padding-block: 0.5rem;
}

.bds-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  left: 0;
  height: 1px;
  background: var(--bds-colour-clay);
  content: '';
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--bds-transition);
}

.bds-navigation a:hover::after,
.bds-navigation a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.bds-navigation__toggle {
  display: none;
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.625rem;
  align-items: center;
  justify-content: center;
  color: var(--bds-colour-ink);
  cursor: pointer;
}

.bds-navigation__icon {
  position: relative;
  width: 1.45rem;
  height: 1rem;
  display: block;
}

.bds-navigation__icon span {
  position: absolute;
  right: 0;
  left: 0;
  height: 1.5px;
  background: currentcolor;
  transition:
    top var(--bds-transition),
    transform var(--bds-transition);
}

.bds-navigation__icon span:first-child {
  top: 0.25rem;
}

.bds-navigation__icon span:last-child {
  top: 0.75rem;
}

.bds-navigation__toggle[aria-expanded='true'] .bds-navigation__icon span:first-child {
  top: 0.5rem;
  transform: rotate(45deg);
}

.bds-navigation__toggle[aria-expanded='true'] .bds-navigation__icon span:last-child {
  top: 0.5rem;
  transform: rotate(-45deg);
}

.bds-button,
.crm-website-enquiry-form__submit,
.crm-form-response__action {
  min-height: 3.6rem;
  padding: 0.9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  border: 1px solid var(--bds-colour-forest);
  background: var(--bds-colour-forest);
  color: var(--bds-colour-paper);
  font-family: var(--bds-font-masthead);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    border-color var(--bds-transition),
    background-color var(--bds-transition),
    color var(--bds-transition);
}

.bds-button:hover,
.crm-website-enquiry-form__submit:hover,
.crm-form-response__action:hover {
  border-color: var(--bds-colour-clay);
  background: var(--bds-colour-clay);
}

.bds-button--light {
  border-color: var(--bds-colour-paper);
  background: var(--bds-colour-paper);
  color: var(--bds-colour-forest-deep);
}

.bds-button--light:hover {
  border-color: var(--bds-colour-cream);
  background: var(--bds-colour-cream);
}

.bds-button--outline {
  border-color: var(--bds-colour-ink);
  background: transparent;
  color: var(--bds-colour-ink);
}

.bds-button--outline:hover {
  background: var(--bds-colour-paper-deep);
}

.bds-section-heading {
  max-width: 54rem;
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.bds-section-heading p:last-child {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--bds-colour-ink-soft);
}

.bds-card {
  min-width: 0;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--bds-colour-paper);
}

.bds-card__number {
  margin-bottom: 2.5rem;
}

.bds-card p:last-child {
  margin-bottom: 0;
  color: var(--bds-colour-ink-soft);
}

.bds-pre-footer {
  padding-block: clamp(4.5rem, 8vw, 7rem);
  border-top: var(--bds-rule-soft);
  background: var(--bds-colour-paper-deep);
}

.bds-pre-footer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.7fr);
  gap: clamp(3rem, 8vw, 9rem);
  align-items: end;
}

.bds-pre-footer h2 {
  max-width: 13ch;
  margin-bottom: 0;
}

.bds-pre-footer__action > p {
  max-width: 31rem;
  margin-bottom: 0;
  color: var(--bds-colour-ink-soft);
}

.bds-pre-footer__action .bds-button {
  margin-top: 2rem;
}

.bds-footer {
  padding-block: clamp(3.5rem, 5vw, 4.75rem) 1.75rem;
  background: var(--bds-colour-forest-deep);
  color: var(--bds-colour-paper);
}

.bds-footer__grid {
  display: grid;
  grid-template-columns: minmax(22rem, 1.6fr) repeat(3, minmax(8rem, 0.55fr));
  gap: clamp(2.5rem, 5vw, 6rem);
  align-items: start;
}

.bds-footer__logo {
  width: min(100%, 16rem);
  filter: none;
}

.bds-footer__identity > p:first-of-type {
  margin: 1.75rem 0 0;
  font-family: var(--bds-font-display);
  font-size: 1.3rem;
  line-height: 1.3;
}

.bds-footer__identity > p:last-child {
  max-width: 25rem;
  margin: 0.7rem 0 0;
  color: rgb(247 243 233 / 68%);
  font-size: 0.88rem;
  line-height: 1.6;
}

.bds-footer__group h2,
.bds-footer__location h2 {
  margin-bottom: 1rem;
  color: var(--bds-colour-sea-glass);
  font-family: var(--bds-font-masthead);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bds-footer__location {
  max-width: 25rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: var(--bds-rule-soft-reversed);
}

.bds-footer__location h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.bds-footer__location p {
  margin: 0;
  line-height: 1.4;
}

.bds-footer__location p:first-of-type {
  font-size: 1rem;
}

.bds-footer__location p:last-child {
  margin-top: 0.25rem;
  color: rgb(247 243 233 / 68%);
  font-size: 0.82rem;
}

.bds-footer__links {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
  list-style: none;
}

.bds-footer__links a {
  min-height: 2.75rem;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.35;
}

.bds-footer a {
  width: fit-content;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  transition:
    color var(--bds-transition),
    text-decoration-color var(--bds-transition);
}

.bds-footer a:hover {
  color: var(--bds-colour-clay);
  text-decoration-color: currentcolor;
}

.bds-icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.bds-icon--move-up-right {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.45;
}

.bds-icon__fill {
  fill: currentcolor;
  stroke: none;
}

.bds-footer__note {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: var(--bds-rule-soft-reversed);
  color: rgb(247 243 233 / 70%);
  font-size: 0.82rem;
}

.bds-footer__note p {
  margin: 0;
}

.bds-footer__utility,
.bds-footer__powered-by {
  display: inline-flex;
  align-items: center;
}

.bds-footer__utility {
  gap: 0.65rem;
}

.bds-footer__powered-by {
  gap: 0.4rem;
}

.bds-footer__powered-by img {
  width: auto;
  height: 1rem;
  display: block;
}

/* Benn Day Software utilities styles migrated from project-owned ui-kit source. */
.bds-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.bds-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.bds-surface-dark {
  background: var(--bds-colour-forest);
  color: var(--bds-colour-paper);
}

.bds-surface-deep {
  background: var(--bds-colour-forest-deep);
  color: var(--bds-colour-paper);
}

.bds-surface-dark .bds-lead,
.bds-surface-deep .bds-lead {
  color: rgb(247 243 233 / 76%);
}

.bds-provisional-note {
  max-width: var(--bds-reading-width);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--bds-colour-clay);
  background: var(--bds-colour-paper-deep);
  color: var(--bds-colour-ink-soft);
  font-size: 0.9rem;
}

.bds-list-clean {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Benn Day Software pages styles migrated from project-owned ui-kit source. */
.bds-hero {
  padding-block: 0 clamp(3rem, 5vw, 5rem);
}

.bds-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(24rem, 0.78fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
}

.bds-hero__copy h1 {
  max-width: 16ch;
  margin-top: 1.4rem;
  font-size: clamp(3.6rem, 5.6vw, 6.2rem);
}

.bds-hero__copy .bds-lead {
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
}

.bds-hero__copy .bds-actions {
  gap: 2rem;
}

.bds-hero__portrait {
  min-width: 0;
  margin: 0;
  overflow: clip;
}

.bds-hero__portrait-image img {
  width: 100%;
  display: block;
}

.bds-hero__portrait-mask {
  position: relative;
  width: 104%;
  margin-inline: -2%;
  aspect-ratio: 1;
  display: block;
  overflow: clip;
  background: var(--bds-colour-paper);
  -webkit-mask-image: url("/assets/media/benn_day_five_fold_portrait_mask-c037587b2d.svg");
  mask-image: url("/assets/media/benn_day_five_fold_portrait_mask-c037587b2d.svg");
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.bds-hero__portrait-mask img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.28);
  transform-origin: center 38%;
}

.bds-hero__portrait-mask::after {
  position: absolute;
  inset: 0;
  background: url("/assets/media/benn-day-mark-8e991e9995.svg") center / contain no-repeat;
  content: '';
  mix-blend-mode: multiply;
  opacity: 0.12;
  pointer-events: none;
}

.bds-hero__portrait figcaption {
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-top: var(--bds-rule-soft);
  font-family: var(--bds-font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.bds-promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--bds-rule-soft);
}

.bds-promises article {
  min-height: 19rem;
  padding: clamp(2rem, 4vw, 4rem);
  text-align: center;
}

.bds-promises article + article {
  border-left: var(--bds-rule-soft);
}

.bds-promises h2 {
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.bds-promises article > p:last-child {
  max-width: 21rem;
  margin: 1.2rem auto 0;
  color: var(--bds-colour-ink-soft);
  font-size: 0.92rem;
}

.bds-fifth-cloud {
  padding-block: clamp(3.5rem, 5vw, 4.75rem);
  background: var(--bds-colour-ink);
  color: var(--bds-colour-paper);
}

.bds-fifth-cloud__layout {
  display: grid;
  grid-template-areas:
    'identity'
    'copy'
    'capabilities';
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  row-gap: 0;
}

.bds-fifth-cloud__identity {
  grid-area: identity;
  width: min(100%, 13rem);
  margin: 0;
  align-self: center;
  justify-self: center;
}

.bds-fifth-cloud__lockup {
  width: 100%;
  height: auto;
  display: block;
}

.bds-fifth-cloud__copy {
  grid-area: copy;
  width: 100%;
  max-width: 44rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
  justify-self: center;
  text-align: center;
}

.bds-fifth-cloud__intro {
  max-width: 20ch;
  margin: 0 auto;
  font-family: var(--bds-font-display);
  font-size: clamp(1.9rem, 2.7vw, 2.7rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.bds-fifth-cloud__summary {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: rgb(247 243 233 / 76%);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.65;
}

.bds-fifth-cloud__capabilities {
  grid-area: capabilities;
  margin-top: clamp(3.5rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.bds-fifth-cloud__capabilities ul {
  width: min(100%, 60rem);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  justify-self: center;
  list-style: none;
}

.bds-fifth-cloud__capabilities li {
  min-width: 0;
  min-height: 11rem;
  padding: 0;
  display: grid;
  grid-template-rows: 8.5rem auto;
  align-items: end;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
}

.bds-fifth-cloud__capability-illustration {
  width: 11.25rem;
  height: auto;
  align-self: center;
  display: block;
}

.bds-fifth-cloud__capabilities h3 {
  max-width: 18rem;
  margin: 0;
  font-family: var(--bds-font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.bds-page-intro {
  padding-block: var(--bds-section-start-space, clamp(4rem, 8vw, 8rem)) clamp(4rem, 8vw, 8rem);
  border-bottom: var(--bds-rule-soft);
}

.bds-page-intro h1 {
  max-width: 18ch;
}

.bds-department-heading {
  max-width: 74rem;
  margin-inline: auto;
  text-align: center;
}

.bds-department-heading h1,
.bds-department-heading h2 {
  max-width: 14ch;
  margin: 2rem auto 0;
  font-size: clamp(3.5rem, 6vw, 6.7rem);
  line-height: 0.94;
}

.bds-department-heading > p:last-child {
  max-width: 39rem;
  margin: 2rem auto 0;
  color: var(--bds-colour-ink-soft);
  font-family: var(--bds-font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

.bds-approach-list,
.bds-service-columns {
  margin: clamp(4rem, 7vw, 6rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--bds-rule-soft);
  list-style: none;
}

.bds-service-columns {
  grid-template-rows: auto minmax(7.5rem, 1fr) auto auto auto;
}

.bds-approach-list li,
.bds-service-columns article {
  min-width: 0;
  min-height: 21rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: grid;
}

.bds-approach-list li {
  grid-template-rows: auto minmax(7.5rem, 1fr) auto 6.5rem;
}

.bds-service-columns article {
  min-height: 26rem;
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
}

.bds-approach-list li + li,
.bds-service-columns article + article {
  border-left: var(--bds-rule-soft);
}

.bds-approach-list li > span {
  grid-row: 1;
  font-family: var(--bds-font-mono);
  font-size: 0.62rem;
}

.bds-approach-list h2,
.bds-service-columns h2 {
  grid-row: 3;
  margin: 0 0 clamp(0.75rem, 1vw, 1rem);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.03;
}

.bds-service-columns .bds-card__number {
  grid-row: 1;
  margin: 0;
}

.bds-approach-list p,
.bds-service-columns article > p:last-of-type {
  grid-row: 4;
  margin: 0;
  color: var(--bds-colour-ink-soft);
}

.bds-service-columns ul {
  grid-row: 5;
  margin: 1.5rem 0 0;
  padding: 0;
  align-self: start;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
}

.bds-service-columns li {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--bds-colour-line);
  font-family: var(--bds-font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bds-local {
  padding: 0;
}

.bds-local__inner {
  width: 100%;
  max-width: none;
  min-height: 52rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
}

.bds-local__illustration {
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-right: var(--bds-rule-soft-reversed);
  background: var(--bds-colour-forest-deep);
}

.bds-local__illustration picture,
.bds-local__illustration img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.bds-local__illustration img {
  object-fit: cover;
  object-position: 50% 48%;
}

.bds-local__copy > p:not(.bds-eyebrow) {
  max-width: 36rem;
  margin: 2.5rem 0 0;
  color: rgb(247 243 233 / 68%);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.bds-local__copy {
  padding: var(--bds-section-space) var(--bds-page-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bds-local__copy h2 {
  margin-top: 2rem;
  font-size: clamp(4rem, 7vw, 7rem);
}

.bds-local__audiences {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--bds-rule-soft-reversed);
}

.bds-local__audiences span {
  padding: 0.85rem 0;
  border-bottom: var(--bds-rule-soft-reversed);
  font-family: var(--bds-font-masthead);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bds-local__audiences span:nth-child(odd) {
  border-right: var(--bds-rule-soft-reversed);
}

.bds-local__audiences span:nth-child(even) {
  padding-left: 1rem;
}

.bds-problems {
  padding-block: var(--bds-section-space);
  background: #fffdf8;
  border-top: var(--bds-rule-soft);
}

.bds-problem-grid {
  margin-top: clamp(4rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
}

.bds-problem-card {
  --bds-problem-card-padding: clamp(1.35rem, 2vw, 2rem);
  --bds-problem-card-illustration-field: transparent;

  min-height: 43rem;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto 5.25rem;
  border-radius: 1.6rem;
  overflow: hidden;
}

.bds-problem-card__copy {
  padding: var(--bds-problem-card-padding);
  display: grid;
  grid-template-rows: auto minmax(4.2em, auto) minmax(6.4em, auto);
  align-content: start;
  row-gap: 1rem;
}

.bds-problem-card--blue {
  --bds-problem-card-illustration-field: #7dafba;

  background: var(--bds-colour-surface-powder);
}

.bds-problem-card--yellow {
  --bds-problem-card-illustration-field: #e1a834;

  background: var(--bds-colour-surface-butter);
}

.bds-problem-card--lilac {
  --bds-problem-card-illustration-field: #a692bf;

  background: var(--bds-colour-surface-lavender);
}

.bds-problem-card--clay {
  --bds-problem-card-illustration-field: #dd936e;

  background: var(--bds-colour-surface-clay);
}

.bds-problem-card__copy > p:first-child {
  margin: 0;
  font-family: var(--bds-font-masthead);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.bds-problem-card h3 {
  margin: 0;
  font-family: var(--bds-font-display);
  font-size: clamp(1.7rem, 2.5vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.bds-problem-card__copy p:last-child {
  margin: 0;
  color: rgb(23 34 30 / 76%);
  font-size: 0.88rem;
  line-height: 1.6;
}

.bds-problem-card__illustration {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--bds-problem-card-illustration-field);
}

.bds-problem-card__illustration img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}

.bds-problem-card > a {
  height: 5.25rem;
  padding: 1.25rem var(--bds-problem-card-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--bds-font-masthead);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.bds-problem-card__arrow {
  width: 0.9rem;
  height: 0.975rem;
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  transition: transform var(--bds-transition);
}

.bds-problem-card > a:hover .bds-problem-card__arrow {
  transform: translateX(0.2rem);
}

.bds-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 0.65fr);
  gap: clamp(4rem, 9vw, 10rem);
}

.bds-contact__copy h1 {
  max-width: 10ch;
}

.bds-contact__copy dl {
  margin: 3.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: var(--bds-rule-soft);
}

.bds-contact__copy dl div {
  padding-top: 0.85rem;
}

.bds-contact__copy dt,
.crm-website-enquiry-form__field label {
  font-family: var(--bds-font-masthead);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bds-contact__copy dd {
  margin: 0.3rem 0 0;
  font-family: var(--bds-font-display);
  font-size: 1.25rem;
}

.crm-website-enquiry-form,
.crm-form-response {
  padding: clamp(1.5rem, 4vw, 3rem);
  align-self: end;
  border: 1px solid var(--bds-colour-ink);
  background: var(--bds-colour-paper-deep);
  box-shadow: 0.65rem 0.65rem 0 var(--bds-colour-sea-glass);
}

.crm-website-enquiry-form__required-note {
  margin: 0 0 1.5rem;
  color: var(--bds-colour-ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
}

.crm-website-enquiry-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.crm-website-enquiry-form__field {
  display: grid;
  gap: 0.45rem;
}

.crm-website-enquiry-form__field--full {
  grid-column: 1 / -1;
}

.crm-website-enquiry-form__field input,
.crm-website-enquiry-form__field textarea {
  width: 100%;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid var(--bds-colour-ink);
  border-radius: 0;
  background: transparent;
  color: var(--bds-colour-ink);
  opacity: 1;
  -webkit-text-fill-color: var(--bds-colour-ink);
}

.crm-website-enquiry-form__field input::placeholder,
.crm-website-enquiry-form__field textarea::placeholder {
  color: var(--bds-colour-ink-soft);
  opacity: 0.72;
}

.crm-website-enquiry-form__field textarea {
  resize: vertical;
}

.crm-website-enquiry-form__field input[aria-invalid='true'],
.crm-website-enquiry-form__field textarea[aria-invalid='true'] {
  border-bottom-color: var(--bds-colour-clay);
}

.crm-website-enquiry-form__error {
  margin: 0;
  color: var(--bds-colour-clay);
  font-size: 0.78rem;
}

.crm-website-enquiry-form__summary {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 0.25rem solid var(--bds-colour-clay);
  background: rgb(191 108 80 / 10%);
  font-size: 0.88rem;
}

.crm-website-enquiry-form__privacy {
  margin: 1.25rem 0 0;
  color: var(--bds-colour-ink-soft);
  font-size: 0.78rem;
}

.crm-website-enquiry-form__privacy a {
  text-underline-offset: 0.18em;
}

.crm-website-enquiry-form__honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.crm-website-enquiry-form__submit {
  width: 100%;
  margin-top: 1.4rem;
}

.crm-website-enquiry-form__submit:disabled,
.crm-website-enquiry-form__submit[aria-busy='true'] {
  cursor: not-allowed;
  opacity: 0.72;
}

.crm-form-response {
  min-height: 26rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.crm-form-response__title {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.crm-form-response__copy p:last-child {
  margin-bottom: 0;
  color: var(--bds-colour-ink-soft);
}

.crm-form-response__action {
  margin-top: 2rem;
}

.bds-privacy-list li + li {
  margin-top: 1.25rem;
}

/* Benn Day Software responsive styles migrated from project-owned ui-kit source. */
@media (max-width: 74rem) {
  .bds-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bds-footer__identity {
    grid-column: 1 / -1;
  }

  .bds-problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bds-problem-card {
    min-height: 40rem;
  }

  .bds-approach-list,
  .bds-service-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bds-service-columns {
    grid-template-rows:
      auto minmax(7.5rem, 1fr) auto auto auto
      auto minmax(7.5rem, 1fr) auto auto auto;
  }

  .bds-service-columns article:nth-child(-n + 2) {
    grid-row: 1 / span 5;
  }

  .bds-service-columns article:nth-child(n + 3) {
    grid-row: 6 / span 5;
  }

  .bds-approach-list li:nth-child(3),
  .bds-service-columns article:nth-child(3) {
    border-top: var(--bds-rule-soft);
    border-left: 0;
  }

  .bds-approach-list li:nth-child(4),
  .bds-service-columns article:nth-child(4) {
    border-top: var(--bds-rule-soft);
  }
}

@media (max-width: 64rem) {
  .bds-hero__layout,
  .bds-local__inner,
  .bds-contact__layout {
    grid-template-columns: 1fr;
  }

  .bds-hero__portrait {
    width: min(100%, 34rem);
  }

  .bds-contact__layout {
    gap: 3rem;
  }

  .bds-pre-footer__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .bds-local__illustration {
    min-height: 30rem;
    border-right: 0;
    border-bottom: var(--bds-rule-soft-reversed);
  }
}

@media (max-width: 53.99rem) {
  .bds-header__utility span:nth-child(2) {
    display: none;
  }

  .bds-header__bar {
    position: relative;
    flex-wrap: wrap;
  }

  .js .bds-header__bar {
    flex-wrap: nowrap;
  }

  .bds-logo {
    width: min(13rem, calc(100% - 4rem));
    flex: 0 1 13rem;
  }

  .js .bds-navigation__toggle {
    display: inline-flex;
  }

  .bds-navigation {
    flex: 1 0 100%;
  }

  .js .bds-navigation {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: calc(var(--bds-page-padding) * -1);
    left: calc(var(--bds-page-padding) * -1);
  }

  .bds-navigation__links {
    width: 100%;
    padding-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
  }

  .js .bds-navigation__links {
    padding: 1.25rem var(--bds-page-padding);
    visibility: hidden;
    border-bottom: var(--bds-rule-strong);
    background: var(--bds-colour-paper);
    box-shadow: 0 1rem 2rem rgb(23 34 30 / 12%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition:
      visibility 0s linear 160ms,
      opacity var(--bds-transition),
      transform var(--bds-transition);
  }

  .js .bds-navigation__links[data-open] {
    display: flex;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .bds-hero {
    padding-top: clamp(1.75rem, 5vw, 2.5rem);
  }

  .bds-promises,
  .bds-fifth-cloud__layout {
    grid-template-columns: 1fr;
  }

  .bds-fifth-cloud__layout {
    grid-template-areas:
      'identity'
      'copy'
      'capabilities';
  }

  .bds-promises article {
    padding-block: 2rem;
  }

  .bds-promises article + article {
    border-top: var(--bds-rule-soft);
    border-left: 0;
  }

  .bds-fifth-cloud__identity {
    width: min(100%, 11.5rem);
    justify-self: center;
  }

  .bds-fifth-cloud__capabilities {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 38rem) {
  :root {
    --bds-section-space: clamp(4.5rem, 16vw, 6.25rem);
    --bds-page-opening-space: clamp(2.25rem, 9vw, 3.25rem);
  }

  h1,
  .bds-hero__copy h1,
  .bds-department-heading h1,
  .bds-department-heading h2 {
    font-size: clamp(2.75rem, 12vw, 3.8rem);
    line-height: 0.98;
  }

  .bds-header__utility {
    justify-content: flex-start;
  }

  .bds-header__utility span:last-child {
    display: none;
  }

  .bds-navigation__links,
  .js .bds-navigation__links[data-open] {
    align-items: flex-start;
    flex-direction: column;
  }

  .bds-footer__grid {
    grid-template-columns: 1fr;
  }

  .bds-footer__identity {
    grid-column: auto;
  }

  .bds-footer__note {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .bds-approach-list,
  .bds-service-columns,
  .crm-website-enquiry-form__fields {
    grid-template-columns: 1fr;
  }

  .bds-service-columns {
    grid-template-rows: none;
  }

  .bds-problem-grid {
    grid-template-columns: 1fr;
  }

  .bds-fifth-cloud__capabilities ul {
    grid-template-columns: 1fr;
  }

  .bds-fifth-cloud__capabilities li {
    min-height: 0;
    padding: 0;
    grid-template-columns: minmax(6rem, 7.5rem) 1fr;
    grid-template-rows: auto;
    align-items: center;
    justify-items: start;
    gap: 1.25rem;
    text-align: left;
  }

  .bds-problem-card {
    min-height: 0;
    grid-template-rows: auto auto auto;
  }

  .bds-problem-card__copy {
    grid-template-rows: auto auto auto;
  }

  .crm-website-enquiry-form__field--full {
    grid-column: auto;
  }

  .bds-approach-list li + li,
  .bds-service-columns article + article {
    border-top: var(--bds-rule-soft);
    border-left: 0;
  }

  .bds-approach-list li,
  .bds-service-columns article {
    min-height: 0;
    grid-template-rows: auto;
  }

  .bds-service-columns article:nth-child(n) {
    grid-row: auto;
  }

  .bds-approach-list h2,
  .bds-service-columns h2 {
    margin-top: 3rem;
  }

  .bds-button {
    width: 100%;
  }

  .bds-local__audiences,
  .bds-contact__copy dl {
    grid-template-columns: 1fr;
  }

  .bds-local__audiences span:nth-child(odd) {
    border-right: 0;
  }

  .bds-local__audiences span:nth-child(even) {
    padding-left: 0;
  }

  .bds-contact__copy dl div + div {
    margin-top: 0.85rem;
    border-top: var(--bds-rule-soft);
  }
}

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

  .bds-header__availability-dot::after {
    animation: none;
    display: none;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

