/* Cofactor visual enhancements — injected on top of the mirrored build */

:root {
  --cf-teal: #1FB895;
  --cf-coral: #F84F33;
  --cf-ink: #161615;
  --cf-paper: #F4F4F2;
}

/* ---- Hero molecule background ---- */
.cf-hero-molecule {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: cf-fade-in 1.6s ease 0.3s forwards;
}
.cf-hero-molecule--a {
  top: 6%;
  left: -4%;
  width: 34vw;
  min-width: 320px;
  animation: cf-fade-in 1.6s ease 0.3s forwards, cf-float 14s ease-in-out 2s infinite;
}
.cf-hero-molecule--b {
  bottom: 8%;
  right: -2%;
  width: 24vw;
  min-width: 220px;
  animation: cf-fade-in 1.6s ease 0.6s forwards, cf-float 18s ease-in-out 3s infinite reverse;
}
@keyframes cf-fade-in {
  to { opacity: 1; }
}
@keyframes cf-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(1.5deg); }
}

/* ---- Stat card sparklines ---- */
.cf-spark {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 18px;
}

/* ---- Case studies carousel ---- */
.cf-cs {
  position: relative;
  z-index: 1;
}
.cf-cs-head {
  text-align: center;
  margin-bottom: 56px;
}
.cf-cs-title {
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.cf-cs-script {
  display: block;
  font-family: var(--app-font-hand, 'Caveat', cursive);
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  color: var(--cf-teal);
  transform: rotate(-3deg) translateY(-0.45em);
  margin: 0 auto -0.35em;
  line-height: 1;
}
.cf-cs-viewall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}
.cf-cs-viewall:hover { color: var(--cf-teal); }
.cf-cs-stage {
  position: relative;
}
.cf-cs-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px;
}
.cf-cs-track::-webkit-scrollbar { display: none; }
.cf-cs-card {
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 260px;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #202020;
}
.cf-cs-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cf-cs-card:hover img { transform: scale(1.04); }
.cf-cs-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 48%, rgba(0,0,0,0.72) 100%);
  pointer-events: none;
}
.cf-cs-label {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.cf-cs-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 2;
}
.cf-cs-name {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 8px;
}
.cf-cs-result {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.cf-cs-result strong { color: var(--cf-teal); font-weight: 600; }
.cf-cs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(22, 22, 21, 0.7);
  color: #fff;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cf-cs-arrow:hover { background: var(--cf-teal); border-color: var(--cf-teal); }
.cf-cs-arrow--prev { left: -14px; }
.cf-cs-arrow--next { right: -14px; }
.cf-cs-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.cf-cs-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s ease;
}
.cf-cs-dot.is-active {
  width: 26px;
  background: var(--cf-teal);
}
@media (max-width: 900px) {
  .cf-cs-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 600px) {
  .cf-cs-card { flex-basis: 86%; }
  .cf-cs-arrow { display: none; }
}

/* ---- Marquee brand wordmarks ---- */
.cf-lk {
  letter-spacing: 0.18em;
}
.cf-lk sup {
  font-size: 0.45em;
  letter-spacing: 0;
  vertical-align: super;
}
.cf-vg {
  text-transform: none;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
}
.cf-vg svg {
  width: 0.6em;
  height: 0.82em;
  align-self: center;
  transform: translateY(0.05em);
  margin: 0 0.02em;
}
.cf-vg-guru {
  color: #5B8DE0;
}

/* ---- Capability card icons ---- */
.cf-cap-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  color: rgba(22, 22, 21, 0.22);
  transition: color 0.3s ease, transform 0.3s ease;
}
.group:hover .cf-cap-icon {
  color: var(--cf-teal);
  transform: translateY(-2px);
}

/* ---- About / team section ---- */
.cf-about {
  background: radial-gradient(120% 140% at 50% 0%, #1a8a6e 0%, #12695а 35%, #0e4f44 70%, #0b3d35 100%);
  background: radial-gradient(120% 140% at 50% 0%, #1a8a6e 0%, #12695a 35%, #0e4f44 70%, #0b3d35 100%);
  padding: 96px 24px 110px;
  position: relative;
  overflow: hidden;
}
.cf-about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.cf-about-figure {
  position: relative;
  container-type: inline-size;
}
.cf-about-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}
.cf-about-cutout {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 94%;
  max-height: 96%;
  object-fit: contain;
  object-position: bottom center;
}
.cf-about-card {
  position: relative;
  width: 100%;
  border-radius: 24px;
  aspect-ratio: 5 / 4;
  background:
    linear-gradient(rgba(31,184,149,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,184,149,0.22) 1px, transparent 1px),
    #1b2420;
  background-size: 56px 56px, 56px 56px, cover;
  border: 1px solid rgba(31, 184, 149, 0.35);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.cf-about-photo {
  width: 88%;
  height: 92%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(1) contrast(1.05);
  border-radius: 18px 18px 0 0;
  border: 6px solid #fff;
  border-bottom: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.cf-about-placeholder {
  width: 88%;
  height: 92%;
  border-radius: 18px 18px 0 0;
  border: 6px solid rgba(255,255,255,0.9);
  border-bottom: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.10) 0 12px, rgba(255,255,255,0.02) 12px 24px),
    rgba(11, 61, 53, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.cf-about-badge {
  position: absolute;
  right: -10px;
  bottom: 26px;
  background: rgba(16, 42, 37, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 18px;
  transform: rotate(-2deg);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cf-about-badge-est {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--cf-teal);
  margin-bottom: 3px;
}
.cf-about-badge-line {
  font-size: 15px;
  color: #fff;
}
.cf-about-label {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #7fe0c3;
  margin-bottom: 26px;
}
.cf-about-title {
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 700;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.cf-about-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: -0.01em;
}
.cf-about-copy {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin: 0 0 22px;
}
.cf-about-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cf-teal);
  font-size: 16px;
  text-decoration: none;
}
.cf-about-more:hover { color: #7fe0c3; }
.cf-about-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 44px;
  padding: 16px 30px;
  border-radius: 999px;
  background: #161615;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.cf-about-cta:hover { background: #000; transform: translateY(-2px); }
@media (max-width: 900px) {
  .cf-about-inner { grid-template-columns: 1fr; gap: 48px; }
  .cf-about-figure { width: 100%; max-width: 420px; margin: 0 auto; }
}

/* ---- Method formula strip ---- */
.cf-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 40px auto 64px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 15px;
  letter-spacing: 0.08em;
  color: rgba(22, 22, 21, 0.55);
}
.cf-formula .cf-el {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 8px 14px;
  border: 1.5px solid rgba(22, 22, 21, 0.15);
  border-radius: 8px;
  background: #fff;
  color: var(--cf-ink);
  font-weight: 600;
}
.cf-formula .cf-el sub {
  font-size: 10px;
  color: rgba(22, 22, 21, 0.45);
}
.cf-formula .cf-el--teal { border-color: var(--cf-teal); color: var(--cf-teal); }
.cf-formula .cf-el--coral { border-color: var(--cf-coral); color: var(--cf-coral); }
.cf-formula .cf-op { font-size: 18px; }
.cf-formula .cf-arrow { color: var(--cf-teal); font-size: 18px; }

/* ---- Testimonial avatars ---- */
.cf-attrib {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cf-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #fff;
}
.cf-avatar--0 { background: linear-gradient(135deg, #1FB895, #0d7a61); }
.cf-avatar--1 { background: linear-gradient(135deg, #F84F33, #b32c17); }
.cf-avatar--2 { background: linear-gradient(135deg, #1FB895 0%, #0f8f73 60%, #F84F33 160%); }

/* ---- CTA spark ---- */
.cf-cta-spark {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 28px;
  color: var(--cf-coral);
  animation: cf-spin 24s linear infinite;
}
@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .cf-hero-molecule--b { display: none; }
  .cf-formula { font-size: 13px; gap: 10px; }
}
