/* ==========================================================================
   CityFoundry AG — Homepage
   Intro curtain, hero, Situationsfinder, services, stats, approach,
   testimonials, resources, closing CTA, cookie banner.
   Requires: tokens.css, base.css, components.css
   ========================================================================== */

:root {
  /* The homepage runs its reveals a touch longer and further than the
     inner pages, and zooms images slightly harder. */
  --cf-reveal-shift: 30px;
  --cf-reveal-duration: .85s;
  --cf-zoom-scale: 1.07;
}

body {
  background: var(--cf-ink);
  overflow-x: hidden;
}

a:not([class]):hover { color: var(--cf-cyan); }

input::placeholder { color: var(--cf-placeholder); }

/* The whole document sits on white; the dark body colour only shows
   through during the intro curtain and behind overscroll. */
.cf-page { background: var(--cf-white); }

/* The homepage also eases any filter change on zoomed imagery. */
.cf-zoom img { transition: transform var(--cf-zoom-duration) var(--cf-ease), filter .6s ease; }

/* --- Keyframes ------------------------------------------------------------- */
@keyframes cf-up {
  from { transform: translateY(105%) rotate(3deg); }
  to   { transform: translateY(0) rotate(0); }
}

@keyframes cf-fade {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes cf-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes cf-outT {
  0%, 58% { transform: translateY(0); }
  100%    { transform: translateY(-101%); }
}

@keyframes cf-outB {
  0%, 58% { transform: translateY(0); }
  100%    { transform: translateY(101%); }
}

@keyframes cf-hide {
  0%, 99% { visibility: visible; }
  100%    { visibility: hidden; }
}

@keyframes cf-pulse {
  0%, 100% { opacity: .3; }
  50%      { opacity: 1; }
}

/* --- Intro curtain ----------------------------------------------------------
   Two panels part vertically over the wordmark, then the whole layer is
   taken out of the accessibility tree and hidden. */
.cf-intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  animation: cf-hide 2.5s linear forwards;
}

.cf-intro__panel {
  position: absolute;
  left: 0;
  right: 0;
  height: 50.2%;
  background: var(--cf-ink);
}

.cf-intro__panel--top {
  top: 0;
  animation: cf-outT 2.5s var(--cf-ease-in-out) forwards;
}

.cf-intro__panel--bottom {
  bottom: 0;
  animation: cf-outB 2.5s var(--cf-ease-in-out) forwards;
}

.cf-intro__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  animation: cf-hide 1.5s linear forwards;
}

.cf-intro__mask { overflow: hidden; }

.cf-intro__word {
  margin: 0;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 54px);
  letter-spacing: -.04em;
  color: var(--cf-white);
  animation: cf-up .9s var(--cf-ease) both;
}

.cf-intro__dot { color: var(--cf-cyan); }

.cf-intro__track {
  width: min(280px, 46vw);
  height: 2px;
  background: var(--cf-line-light-16);
  overflow: hidden;
}

.cf-intro__bar {
  height: 100%;
  background: var(--cf-cyan);
  transform-origin: left;
  animation: cf-bar 1.35s cubic-bezier(.6, 0, .2, 1) both;
}

/* --- Hero --------------------------------------------------------------------- */
.cf-hero {
  position: relative;
  background: var(--cf-ink);
  padding: 96px var(--cf-gutter) 120px;
  overflow: hidden;
}

.cf-hero__waves {
  position: absolute;
  right: -6%;
  top: -8%;
  width: min(1100px, 88%);
  opacity: .5;
  pointer-events: none;
}

.cf-hero__glow {
  position: absolute;
  left: -16%;
  bottom: -38%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: var(--cf-gradient-conic);
  filter: blur(120px);
  opacity: .28;
  pointer-events: none;
}

.cf-hero__grid {
  position: relative;
  max-width: var(--cf-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 72px;
  align-items: center;
}

.cf-hero__eyebrow-mask {
  overflow: hidden;
  margin-bottom: 26px;
}

.cf-hero__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cf-cyan);
  animation: cf-up .9s var(--cf-ease) 1.55s both;
}

.cf-hero__title {
  margin: 0 0 30px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--cf-white);
}

/* Each line is masked so the words rise into view one after the other. */
.cf-hero__line {
  display: block;
  overflow: hidden;
}

.cf-hero__line > span {
  display: block;
  animation: cf-up 1s var(--cf-ease) both;
}

.cf-hero__line:nth-of-type(1) > span { animation-delay: 1.6s; }
.cf-hero__line:nth-of-type(2) > span { animation-delay: 1.72s; }

.cf-hero__lead {
  margin: 0 0 38px;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.65;
  color: #a9c8c5;
  animation: cf-fade 1s ease 2s both;
}

.cf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  animation: cf-fade 1s ease 2.1s both;
}

.cf-hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 44px;
  padding-top: 30px;
  border-top: 1px solid var(--cf-line-light-12);
  animation: cf-fade 1s ease 2.2s both;
}

.cf-hero__avatars { display: flex; }

.cf-hero__avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cf-ink);
}

.cf-hero__avatars img + img { margin-left: -14px; }

.cf-hero__proof-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #a9c8c5;
}

.cf-hero__proof-text strong {
  color: var(--cf-white);
  font-weight: 700;
}

.cf-hero__media {
  position: relative;
  animation: cf-fade 1.1s ease 1.9s both;
}

/* Arch-topped portrait — the brand's asymmetric corner device. */
.cf-hero__frame {
  position: relative;
  border-radius: 280px 280px 24px 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.cf-hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Situationsfinder ----------------------------------------------------------- */
.cf-finder {
  position: relative;
  background: var(--cf-surface);
}

.cf-finder__head { gap: 28px; }

.cf-finder__head-text { max-width: 660px; }

.cf-finder__intro {
  margin: 0;
  max-width: 380px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--cf-muted);
}

.cf-finder__card {
  position: relative;
  background: var(--cf-white);
  border-radius: 36px;
  padding: 48px;
  box-shadow: 0 40px 90px rgba(4, 33, 31, .10);
}

/* Step indicator ------------------------------------------------------------- */
.cf-steps {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

/* `--step-fg`, `--step-dot`, `--step-dot-fg` and `--step-line` are set
   inline by the page logic as the user moves through the flow. */
.cf-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--step-fg);
}

.cf-steps__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--step-dot);
  color: var(--step-dot-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.cf-steps__line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--step-line);
}

/* Step 1 — perspective ---------------------------------------------------------- */
.cf-fieldset {
  border: 0;
  margin: 0 0 34px;
  padding: 0;
}

.cf-fieldset__legend {
  padding: 0;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--cf-muted);
}

.cf-perspectives {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

/* `--p-border`, `--p-bg` and `--p-fg` carry the selected/unselected state. */
.cf-perspective {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1.5px solid var(--p-border);
  background: var(--p-bg);
  color: var(--p-fg);
  cursor: pointer;
  text-align: left;
  font-family: var(--cf-font-body);
  transition: all .3s var(--cf-ease);
}

.cf-perspective svg { flex-shrink: 0; }

.cf-perspective__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
}

/* Step 2 — situation ------------------------------------------------------------- */

/* Dimmed and inert until a perspective has been chosen. */
.cf-finder__step2 {
  opacity: var(--step2-opacity);
  pointer-events: var(--step2-events);
  transition: opacity .4s ease;
}

.cf-finder__label {
  display: block;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--cf-muted);
}

.cf-combobox {
  position: relative;
  border: 1.5px solid var(--field-border);
  border-radius: var(--cf-radius-md);
  background: var(--cf-white);
  padding: 12px;
  transition: border-color .3s ease, box-shadow .3s ease;
  box-shadow: var(--field-shadow);
}

.cf-combobox__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cf-combobox__input {
  flex: 1;
  min-width: 230px;
  border: 0;
  outline: 0;
  padding: 11px 10px;
  font-family: var(--cf-font-body);
  font-size: 16.5px;
  color: var(--cf-ink);
  background: transparent;
}

/* Chips ------------------------------------------------------------------------- */
.cf-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 9px 9px 15px;
  border-radius: var(--cf-radius-pill);
  background: var(--cf-surface-2);
  color: var(--cf-ink);
  font-size: 14px;
  font-weight: 500;
  max-width: 100%;
}

.cf-chip--perspective {
  background: var(--cf-ink);
  color: var(--cf-white);
}

.cf-chip__kind {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .6;
}

.cf-chip__label { overflow-wrap: anywhere; }

.cf-chip__remove {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: var(--cf-white);
  color: var(--cf-link);
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cf-chip--perspective .cf-chip__remove {
  background: var(--cf-line-light-16);
  color: var(--cf-white);
}

/* Autocomplete listbox ------------------------------------------------------------ */
.cf-listbox {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  background: var(--cf-white);
  border-radius: var(--cf-radius-md);
  box-shadow: 0 28px 70px var(--cf-line-ink-18);
  padding: 12px;
  max-height: 320px;
  overflow-y: auto;
  animation: cf-fade .22s ease both;
}

.cf-listbox__group {
  margin: 12px 10px 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #9ab8b6;
}

.cf-listbox__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--cf-radius-sm);
  background: var(--opt-bg);
  color: var(--cf-ink);
  font-size: 16px;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.cf-listbox__enter {
  color: var(--opt-arrow);
  font-size: 14px;
}

.cf-listbox__empty {
  margin: 10px;
  font-size: 15px;
  color: var(--cf-muted);
}

/* Suggested chips ------------------------------------------------------------------ */
.cf-suggest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.cf-suggest__label {
  font-size: 14.5px;
  color: var(--cf-muted);
  flex-shrink: 0;
}

.cf-suggest__track {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.cf-suggest__chip {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--cf-radius-pill);
  border: 1px solid var(--cf-line-ink-14);
  background: var(--cf-white);
  color: var(--cf-ink);
  font-family: var(--cf-font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all .25s ease;
}

.cf-suggest__chip:hover {
  background: var(--cf-ink);
  color: var(--cf-white);
  border-color: var(--cf-ink);
}

/* Step 3 — submit -------------------------------------------------------------------- */
.cf-finder__submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}

.cf-finder__error {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #8a5a00;
}

.cf-finder__error-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--cf-yellow);
  color: var(--cf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

/* Results ------------------------------------------------------------------------------ */
.cf-finder__results { margin-top: 28px; }

.cf-finder__loading {
  background: var(--cf-white);
  border-radius: 36px;
  padding: 44px;
}

.cf-finder__loading-text {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--cf-muted);
}

.cf-skeleton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cf-skeleton__block {
  height: 150px;
  border-radius: 24px;
  background: var(--cf-surface);
  animation: cf-pulse 1.4s ease-in-out infinite;
}

.cf-skeleton__block:nth-child(2) { animation-delay: .2s; }
.cf-skeleton__block:nth-child(3) { animation-delay: .4s; }

.cf-results-wrap { animation: cf-fade .5s var(--cf-ease) both; }

/* Shown when nothing matched — never a dead end. */
.cf-fallback {
  background: var(--cf-ink);
  border-radius: 28px;
  padding: 30px 36px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  justify-content: space-between;
}

.cf-fallback__text { max-width: 640px; }

.cf-fallback__title {
  margin: 0 0 8px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 21px;
  color: var(--cf-white);
}

.cf-fallback__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #a9c8c5;
}

.cf-fallback__cta {
  padding: 14px 26px;
  border-radius: var(--cf-radius-pill);
  background: var(--cf-yellow);
  color: var(--cf-ink);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.cf-results__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 0 4px 20px;
}

.cf-results__title {
  margin: 0;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.03em;
}

.cf-results__count {
  font-size: 14px;
  color: var(--cf-muted);
}

.cf-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cf-result {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--cf-white);
  border-radius: 28px;
  padding: 30px;
  transition: transform .35s var(--cf-ease), box-shadow .35s ease;
}

.cf-result:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px rgba(4, 33, 31, .14);
}

/* `--badge-bg` differs per offer type (Dienstleistung / Software / Webinar). */
.cf-result__badge {
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--cf-radius-pill);
  background: var(--badge-bg);
  color: var(--cf-ink);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.cf-result__title {
  margin: 0;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

.cf-result__desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cf-muted);
}

/* "Why this matched" — the line that turns the black box into something
   a visitor can trust. */
.cf-result__reason {
  margin: auto 0 0;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 18px;
  border-top: 1px solid var(--cf-line-ink-08);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cf-link);
}

.cf-result__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cf-cyan);
  color: var(--cf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}

.cf-result__reason-text { overflow-wrap: anywhere; }

.cf-result__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  font-weight: 500;
  text-decoration: none;
}

.cf-results__more {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.cf-btn--more {
  padding: 15px 30px;
  border-radius: var(--cf-radius-pill);
  border: 1px solid var(--cf-line-ink-18);
  background: transparent;
  color: var(--cf-ink);
  font-family: var(--cf-font-body);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s ease;
}

.cf-btn--more:hover {
  background: var(--cf-ink);
  color: var(--cf-white);
  border-color: var(--cf-ink);
}

/* --- Services -------------------------------------------------------------------------- */
.cf-services { background: var(--cf-white); }

.cf-services__head {
  gap: 28px;
  margin-bottom: 56px;
}

.cf-services__head-text { max-width: 680px; }

.cf-services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* --- Stats ------------------------------------------------------------------------------- */
.cf-stats-section {
  position: relative;
  background: var(--cf-ink);
  padding: 96px var(--cf-gutter);
  overflow: hidden;
}

.cf-stats__waves {
  position: absolute;
  left: -8%;
  top: -45%;
  width: 900px;
  opacity: .32;
  pointer-events: none;
}

.cf-stats__inner {
  position: relative;
  max-width: var(--cf-shell);
  margin: 0 auto;
}

.cf-stats__head {
  gap: 26px;
}

.cf-stats__head-text { max-width: 600px; }

.cf-stats__title {
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.06;
  color: var(--cf-white);
}

.cf-stats__intro {
  margin: 0;
  max-width: 330px;
  font-size: 16px;
  line-height: 1.65;
  color: #a9c8c5;
}

.cf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.cf-stat {
  position: relative;
  padding: 34px 30px 30px;
  border-radius: var(--cf-radius-md);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cf-line-light-10);
  overflow: hidden;
  transition: background .4s ease, transform .4s var(--cf-ease);
}

/* Each tile is capped by a consecutive slice of the signature gradient. */
.cf-stat__rule {
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 100%;
}

.cf-stat__rule--1 { background: linear-gradient(90deg, var(--cf-grad-1), var(--cf-grad-2)); }
.cf-stat__rule--2 { background: linear-gradient(90deg, var(--cf-cyan), var(--cf-grad-1)); }
.cf-stat__rule--3 { background: linear-gradient(90deg, var(--cf-grad-2), var(--cf-grad-3)); }
.cf-stat__rule--4 { background: linear-gradient(90deg, var(--cf-grad-3), var(--cf-grad-4)); }

.cf-stat__value {
  margin: 0 0 10px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--cf-white);
}

.cf-stat__value--cyan { color: var(--cf-cyan); }
.cf-stat__value--amber { color: var(--cf-grad-4); }

.cf-stat__label {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: #a9c8c5;
}

/* --- Approach ------------------------------------------------------------------------------- */
.cf-approach { background: var(--cf-white); }

.cf-approach__grid {
  max-width: var(--cf-shell);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 80px;
  align-items: start;
}

.cf-approach__aside {
  position: sticky;
  top: 140px;
}

.cf-approach__title {
  margin: 0 0 20px;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.05;
}

.cf-approach__lead {
  margin: 0 0 30px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--cf-muted);
}

.cf-approach__media {
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
}

.cf-approach__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-approach__steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cf-step {
  display: flex;
  gap: 26px;
  padding: 34px;
  border-radius: 26px;
  background: var(--cf-surface);
  transition: background .35s ease;
}

.cf-step:hover { background: var(--cf-surface-2); }

.cf-step__num {
  flex-shrink: 0;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--cf-link);
}

.cf-step__title {
  margin: 0 0 10px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -.025em;
}

.cf-step__text {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--cf-muted);
}

/* Dark note that closes the step list. */
.cf-approach__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px;
  border-radius: 26px;
  background: var(--cf-ink);
}

.cf-approach__quote {
  margin: 0;
  max-width: 420px;
  font-family: var(--cf-font-head);
  font-weight: 500;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: var(--cf-white);
}

.cf-approach__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 9px 9px 24px;
  border-radius: var(--cf-radius-pill);
  background: var(--cf-cyan);
  color: var(--cf-ink);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.cf-approach__cta:hover {
  background: #7ED957;
  color: var(--cf-ink);
}

/* --- Testimonials ------------------------------------------------------------------------------ */
.cf-quotes { background: var(--cf-surface-2); }

.cf-quotes__title { max-width: 620px; font-size: clamp(32px, 4vw, 52px); }

.cf-quotes__controls {
  display: flex;
  gap: 10px;
}

.cf-quotes__btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--cf-line-ink-18);
  background: transparent;
  color: var(--cf-ink);
  font-size: 19px;
  cursor: pointer;
  transition: all .3s ease;
}

.cf-quotes__btn:hover {
  background: var(--cf-ink);
  color: var(--cf-white);
}

.cf-quotes__card {
  display: grid;
  grid-template-columns: .62fr 1.38fr;
  gap: 0;
  background: var(--cf-white);
  border-radius: 32px;
  overflow: hidden;
}

.cf-quotes__media {
  position: relative;
  min-height: 360px;
}

/* The three portraits are stacked and cross-faded via `--slide-opacity`. */
.cf-quotes__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--slide-opacity);
  transition: opacity .6s var(--cf-ease);
}

.cf-quotes__body {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}

.cf-quotes__mark {
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 56px;
  line-height: .6;
  color: var(--cf-cyan);
}

.cf-quotes__text {
  margin: 0;
  font-family: var(--cf-font-head);
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 30px);
  line-height: 1.38;
  letter-spacing: -.02em;
}

.cf-quotes__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--cf-line-ink-10);
}

.cf-quotes__name {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.cf-quotes__role {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--cf-muted);
}

.cf-quotes__pos {
  font-size: 14px;
  color: var(--cf-muted);
}

/* --- Resources ------------------------------------------------------------------------------------ */
.cf-resources { background: var(--cf-white); }

.cf-resources__title { max-width: 620px; font-size: clamp(32px, 4vw, 52px); }

.cf-posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cf-post {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-decoration: none;
  color: var(--cf-ink);
}

.cf-post:hover { color: var(--cf-ink); }

.cf-post__media {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.cf-post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cf-post__meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: var(--cf-muted);
}

.cf-post__category {
  color: var(--cf-link);
  font-weight: 500;
}

.cf-post__title {
  display: block;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.22;
  letter-spacing: -.025em;
}

.cf-post__text {
  display: block;
  font-size: 16px;
  line-height: 1.6;
  color: var(--cf-muted);
}

/* --- Closing CTA -------------------------------------------------------------------------------------- */
.cf-cta {
  background: var(--cf-white);
  padding: 0 var(--cf-gutter) 110px;
}

.cf-cta__panel {
  position: relative;
  max-width: var(--cf-shell);
  margin: 0 auto;
  border-radius: 36px;
  overflow: hidden;
  background: var(--cf-ink);
}

.cf-cta__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .22;
}

.cf-cta__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, var(--cf-ink) 30%, rgba(4, 33, 31, .55) 100%);
}

.cf-cta__waves {
  position: absolute;
  right: -4%;
  bottom: -30%;
  width: 620px;
  opacity: .3;
}

.cf-cta__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
  padding: 72px 56px;
}

.cf-cta__title {
  margin: 0 0 18px;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.02;
  color: var(--cf-white);
}

.cf-cta__lead {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
  color: #a9c8c5;
  max-width: 520px;
}

.cf-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cf-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 11px 11px 26px;
  border-radius: var(--cf-radius-pill);
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
}

.cf-cta__btn--solid {
  background: var(--cf-cyan);
  color: var(--cf-ink);
  transition: transform .3s ease;
}

.cf-cta__btn--solid:hover {
  transform: translateY(-3px);
  color: var(--cf-ink);
}

.cf-cta__btn--ghost {
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--cf-white);
}

.cf-cta__btn--ghost:hover {
  border-color: var(--cf-cyan);
  color: var(--cf-white);
}

/* --- Cookie banner ---------------------------------------------------------------------------------------- */
.cf-cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 300;
  max-width: 420px;
  background: var(--cf-white);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 30px 70px rgba(4, 33, 31, .28);
  animation: cf-fade .5s ease 2.6s both;
}

.cf-cookie__title {
  margin: 0 0 8px;
  font-family: var(--cf-font-head);
  font-weight: 700;
  font-size: 18px;
}

.cf-cookie__text {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--cf-muted);
}

.cf-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cf-cookie__btn {
  padding: 12px 22px;
  border-radius: var(--cf-radius-pill);
  border: 0;
  background: var(--cf-ink);
  color: var(--cf-white);
  font-family: var(--cf-font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.cf-cookie__btn--secondary {
  border: 1px solid var(--cf-line-ink-18);
  background: transparent;
  color: var(--cf-ink);
}

/* --- Responsive ------------------------------------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .cf-hero__grid,
  .cf-approach__grid,
  .cf-quotes__card,
  .cf-cta__grid { grid-template-columns: 1fr; }

  .cf-skeleton,
  .cf-results,
  .cf-services__grid,
  .cf-posts,
  .cf-perspectives,
  .cf-stats { grid-template-columns: repeat(2, 1fr); }

  .cf-approach__aside { position: static; }
}

@media (max-width: 720px) {
  .cf-skeleton,
  .cf-results,
  .cf-services__grid,
  .cf-posts,
  .cf-perspectives,
  .cf-stats { grid-template-columns: 1fr; }

  .cf-hero,
  .cf-finder,
  .cf-services,
  .cf-stats-section,
  .cf-approach,
  .cf-quotes,
  .cf-resources,
  .cf-cta {
    padding-left: var(--cf-gutter-sm);
    padding-right: var(--cf-gutter-sm);
  }

  .cf-finder__card { padding: 24px; }
}

/* The intro curtain and the marquee-free homepage still animate for
   users who have not asked for reduced motion; those who have get a
   static page. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
