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

:root {
  --cf-teal: #1FB895;
  --cf-coral: #F84F33;
  --cf-ink: #161615;
  --cf-paper: #F4F4F2;
  --cf-deep-teal: #00847E;
  --cf-grey: #8A8A84;

  /* Brand Vol. 02 / 2026 — Outfit is display, UI and labels; Caveat is the
     accent only. Overrides the mirrored build's Space Grotesk tokens. */
  --app-font-sans: 'Outfit', system-ui, -apple-system, "Segoe UI", sans-serif;
  --app-font-mono: 'Outfit', system-ui, -apple-system, "Segoe UI", sans-serif;
  --app-font-hand: 'Caveat', cursive;
}

/* Labels: Outfit Medium, +0.18em (brand type scale). The build applies
   .font-mono to every eyebrow/label, so this is the label selector. */
.font-mono {
  font-weight: 500;
  letter-spacing: 0.18em;
}

/* Accent: Caveat Bold, always Cofactor Teal, one line under a heading. */
.font-hand {
  font-weight: 700;
}

/* Two-colour lockup: wherever the build draws the C in Cofactor Teal, the
   catalyst dot is Catalyst Coral. On white (reversed) marks the dot stays
   white — that is the correct reversed lockup on ink and teal grounds. */
svg[data-cf-mark].text-cofactor-teal circle {
  fill: var(--cf-coral);
}

/* ---- 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; }
}

/* ---- Nav menu with dropdown ---- */
.cf-nav {
  align-items: center;
  gap: 4px;
}
.cf-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.cf-nav-item:hover { color: #fff; }
.cf-nav-item.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.cf-nav-item svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}
.cf-nav-drop { position: relative; }
.cf-nav-drop:hover > .cf-nav-item svg,
.cf-nav-drop.cf-open > .cf-nav-item svg { transform: rotate(180deg); }
.cf-nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 60;
}
.cf-nav-drop:hover .cf-nav-panel,
.cf-nav-drop.cf-open .cf-nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.cf-nav-panel-inner {
  background: #1c1c1b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.cf-nav-panel-inner a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.cf-nav-panel-inner a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ---- 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);
}
.cf-cap-icon.cf-cap-icon--inline {
  position: static;
  display: inline-block;
  width: 30px;
  height: 30px;
  margin-right: 14px;
  vertical-align: -4px;
  color: var(--cf-teal);
}

/* ---- About / team section ---- */
.cf-about {
  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; }
}

/* ---- Language switcher ---- */
.cf-lang { position: relative; margin-left: 4px; }
.cf-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; font: inherit;
}
.cf-lang-btn svg { width: 15px; height: 15px; }
.cf-lang-current { font-size: 13px; letter-spacing: 0.06em; }
.cf-lang-menu {
  position: absolute; top: 100%; right: 0; padding-top: 10px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60; display: flex; flex-direction: column;
}
.cf-lang:hover .cf-lang-menu { opacity: 1; visibility: visible; transform: none; }
.cf-lang-menu {
  background: transparent;
}
.cf-lang-menu::before { content: ''; position: absolute; inset: 10px 0 0 0; background: #1c1c1b; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; box-shadow: 0 18px 40px rgba(0,0,0,0.4); }
.cf-lang-opt {
  position: relative; padding: 9px 22px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.85); text-decoration: none; text-align: center;
  transition: background .15s ease, color .15s ease;
}
.cf-lang-opt:first-of-type { margin-top: 10px; }
.cf-lang-opt:hover { background: rgba(255,255,255,0.08); color: #fff; }
.cf-lang-opt.is-active { color: var(--cf-teal); }

/* Language switcher on the standalone careers pages (plain <header>, not .cf-nav) */
header .cf-lang { margin-left: auto; margin-right: 18px; }
header .cf-lang-btn { color: rgba(255,255,255,0.75); padding: 6px 10px; }
header .cf-lang-btn:hover { color: #fff; }
header .cf-lang-menu { right: 0; }

/* ---- Typeform contact embed (replaces the build's footer form) ---- */
.cf-typeform {
  width: 100%;
  max-width: 42rem;   /* matches the form it replaces (max-w-2xl) */
  min-height: 520px;
  margin-bottom: 7rem; /* mb-28 */
  border-radius: 14px;
  overflow: hidden;
}
.cf-typeform iframe { border: 0; display: block; }
@media (max-width: 640px) {
  .cf-typeform { min-height: 560px; }
}

/* ---- Case studies: one fold per study, with the work inside ---- */
.cf-cs-card { cursor: pointer; }
.cf-cs-card:focus-visible { outline: 2px solid var(--cf-teal); outline-offset: 4px; }

.cf-fold-head {
  width: 100%; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 30px 24px; color: #fff; font-family: inherit;
}
.cf-fold-head:hover .cf-fold-name { color: var(--cf-teal); }
.cf-fold-head:focus-visible { outline: 2px solid var(--cf-teal); outline-offset: -4px; }
.cf-fold-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cf-teal); flex: 0 0 auto;
}
.cf-fold-name { font-size: clamp(22px, 3vw, 34px); font-weight: 600; letter-spacing: -0.02em; transition: color .2s; }
.cf-fold-chev { width: 16px; height: 16px; margin-left: auto; flex: 0 0 auto; align-self: center; transition: transform .25s; color: rgba(255,255,255,0.5); }
[data-cf-fold].is-open .cf-fold-chev { transform: rotate(180deg); color: var(--cf-teal); }
[data-cf-fold] .cf-fold-body { display: none; }
[data-cf-fold].is-open .cf-fold-body { display: block; }

/* ---- The work: real ad creatives, inside the fold ---- */
.cf-work { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 8px; padding: 36px 0 8px; }
.cf-work-head, .cf-work-job h5, .cf-work-rules h5 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--cf-coral); margin-bottom: 14px;
}
.cf-work-job h5, .cf-work-rules h5 { color: rgba(255,255,255,0.45); }
.cf-work-intro { color: rgba(255,255,255,0.7); line-height: 1.65; max-width: 700px; margin-bottom: 30px; }
.cf-work-job { margin-bottom: 34px; }
.cf-work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.cf-work-ad { margin: 0; }
.cf-work-ad img {
  width: 100%; height: auto; display: block; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1); background: #000;
}
.cf-work-ad figcaption { display: flex; flex-direction: column; gap: 3px; padding-top: 12px; }
.cf-work-ad-title { font-weight: 600; font-size: 15px; color: #fff; }
.cf-work-ad-meta { font-size: 12.5px; color: rgba(255,255,255,0.45); }
.cf-work-ad-desc { font-size: 13.5px; color: rgba(255,255,255,0.7); }
.cf-work-ad-link { margin-top: 5px; font-size: 13px; font-weight: 500; color: var(--cf-teal); text-decoration: none; }
.cf-work-ad-link:hover { text-decoration: underline; }
.cf-work-rules { margin-top: 10px; }
.cf-work-rule {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.cf-work-rule span { font-weight: 500; font-size: 14px; color: #fff; }
.cf-work-rule em { font-style: normal; font-size: 14px; color: rgba(255,255,255,0.5); }
.cf-work-structure { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; max-width: 700px; }
.cf-work-note {
  margin-top: 18px; font-size: 13px; color: rgba(255,255,255,0.5);
  border-left: 2px solid var(--cf-coral); padding-left: 14px; line-height: 1.55; max-width: 700px;
}
@media (max-width: 640px) {
  .cf-fold-head { padding: 22px 16px; gap: 10px; }
  .cf-work-rule { grid-template-columns: 1fr; gap: 2px; }
  .cf-work-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
}

/* ---- Motion layer ---- */
.cf-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--cf-teal), var(--cf-coral));
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.cf-particles {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; display: block;
}
.cf-glow {
  position: fixed; top: 0; left: 0; width: 440px; height: 440px; z-index: 2;
  pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .6s ease;
  background: radial-gradient(circle, rgba(31,184,149,0.34) 0%, rgba(31,184,149,0.10) 38%, rgba(31,184,149,0) 68%);
  mix-blend-mode: screen; will-change: transform;
}
.cf-glow.is-on { opacity: 1; }

.cf-tilt {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
  transform-style: preserve-3d; will-change: transform;
}
.cf-magnet {
  transition: transform .28s cubic-bezier(.2,.8,.2,1); will-change: transform; display: inline-flex;
}
.cf-fold-head { transition: background .25s ease; }
.cf-fold-head:hover { background: rgba(255,255,255,0.03); }

@media (prefers-reduced-motion: no-preference) {
  /* Molecule nodes breathe individually; the whole molecule already drifts. */
  .cf-hero-molecule .cf-node, .mol circle {
    transform-box: fill-box; transform-origin: center;
    animation: cf-breathe 5.6s ease-in-out infinite;
  }
  .mol circle:nth-child(2n) { animation-delay: -1.9s; }
  .mol circle:nth-child(3n) { animation-delay: -3.7s; }
  @keyframes cf-breathe {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(2px, -3px) scale(1.32); }
  }
  /* The catalyst dot pulses — the reaction is live. */
  svg[data-cf-mark] circle {
    transform-box: fill-box; transform-origin: center;
    animation: cf-pulse 3.2s ease-in-out infinite;
  }
  @keyframes cf-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.28); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .cf-particles, .cf-glow, .cf-progress { display: none !important; }
  .cf-tilt, .cf-magnet { transition: none; transform: none !important; }
}
@media print { .cf-particles, .cf-glow, .cf-progress { display: none !important; } }

/* ---- Section seams ---- */
.cf-seam {
  position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  z-index: -1; pointer-events: none;
  /* Painted with the NEXT section's background, flipped so its top row sits
     on the boundary, then faded out upward. The join is therefore exact. */
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,0) 100%);
}
@media (max-width: 640px) { .cf-seam { height: 120px; } }
