.km-brightfit-case-study {
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  --bg: #080909;
  --surface: #101313;
  --surface-strong: #171d1d;
  --text: #f4f2eb;
  --muted: #b7b1a8;
  --soft: #d8d4ca;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --teal: #00465e;
  --blue: #1183ab;
  --mint: #31f8bc;
  --pink: #df0b65;
  --orange: #ff8b0c;
  --yellow: #ffed26;
  --accent: #31f8bc;
  --accent-deep: #1183ab;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --radius: 4px;
  --font-display: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

.km-brightfit-case-study * {
  box-sizing: border-box;
}

.km-brightfit-case-study {
  scroll-behavior: smooth;
  background: var(--bg);
}

.km-brightfit-case-study {
  min-width: 320px;
  margin-top: 0;
  margin-bottom: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(49, 248, 188, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(223, 11, 101, 0.12), transparent 26rem),
    linear-gradient(180deg, #080909 0%, #0a0d0d 42%, #080909 100%);
  overflow: visible;
  overflow-x: visible;
}

.km-brightfit-case-study::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 86%);
}

.km-brightfit-case-study::after {
  position: fixed;
  inset: auto -10vw -28vh -10vw;
  z-index: -1;
  height: 50vh;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at center, rgba(17, 131, 171, 0.18), transparent 64%);
}

.km-brightfit-case-study img {
  display: block;
  max-width: 100%;
}

.km-brightfit-case-study a {
  color: inherit;
}

.km-brightfit-case-study p {
  margin: 0;
}

.km-brightfit-case-study .site-chrome {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  min-height: 5.625rem;
  pointer-events: none;
  transition: background-color 220ms ease, backdrop-filter 220ms ease, height 220ms ease, border-color 220ms ease;
}

.km-brightfit-case-study .site-chrome::before {
  position: absolute;
  inset: 0;
  content: "";
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: inherit;
}

.km-brightfit-case-study .site-badge {
  position: absolute;
  top: 2rem;
  left: 3rem;
  width: 62px;
  height: auto;
  pointer-events: auto;
  transition: top 220ms ease, width 220ms ease, opacity 220ms ease;
}

.km-brightfit-case-study .site-badge img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.km-brightfit-case-study .site-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--blue), var(--orange), var(--pink));
  transform-origin: left center;
}

.km-brightfit-case-study.is-scrolled .site-chrome {
  min-height: 5.625rem;
}

.km-brightfit-case-study.is-scrolled .site-chrome::before {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 9, 9, 0.72);
  backdrop-filter: blur(18px);
}

.km-brightfit-case-study.is-scrolled .site-badge {
  top: 1rem;
  left: 1.5rem;
  width: 48px;
}

.km-brightfit-case-study .hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.km-brightfit-case-study .hero-media,
.km-brightfit-case-study .hero-media img,
.km-brightfit-case-study .hero-overlay {
  position: absolute;
  inset: 0;
}

.km-brightfit-case-study .hero-media {
  z-index: -3;
}

.km-brightfit-case-study .hero-media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.86) contrast(1.04) brightness(0.78);
  transform: scale(1.04);
}

.km-brightfit-case-study .hero-overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 9, 9, 0.86) 0%, rgba(8, 9, 9, 0.54) 40%, rgba(8, 9, 9, 0.34) 100%),
    linear-gradient(0deg, rgba(8, 9, 9, 1) 0%, rgba(8, 9, 9, 0.62) 32%, rgba(8, 9, 9, 0.18) 72%),
    radial-gradient(circle at 72% 28%, rgba(49, 248, 188, 0.16), transparent 30rem);
}

.km-brightfit-case-study .hero-content {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 9rem 0 clamp(4rem, 9vw, 8rem);
}

.km-brightfit-case-study .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.km-brightfit-case-study .eyebrow::before {
  width: 42px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--mint), var(--blue), var(--orange));
}

.km-brightfit-case-study .hero h1,
.km-brightfit-case-study .section-heading h2,
.km-brightfit-case-study .feature-copy h2,
.km-brightfit-case-study .takeaway h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

.km-brightfit-case-study .hero h1 {
  max-width: 980px;
  font-size: clamp(2.8rem, 6.7vw, 6.9rem);
  line-height: 0.92;
}

.km-brightfit-case-study .hero-lede {
  max-width: 620px;
  margin-top: 1.7rem;
  color: var(--soft);
  font-size: clamp(1.1rem, 1.55vw, 1.42rem);
  line-height: 1.45;
}

.km-brightfit-case-study .scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.6rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.km-brightfit-case-study .scroll-cue i {
  position: relative;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
}

.km-brightfit-case-study .scroll-cue i::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--accent);
  transform: translateX(-50%);
  animation: scrollCue 1400ms ease-in-out infinite;
}

@keyframes scrollCue {
  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, 14px);
    opacity: 1;
  }
}

.km-brightfit-case-study .project-meta {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 2rem));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: -2.4rem auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.km-brightfit-case-study .project-meta div {
  min-height: 142px;
  padding: 1.35rem;
  background: rgba(14, 17, 17, 0.88);
  backdrop-filter: blur(16px);
}

.km-brightfit-case-study .project-meta span,
.km-brightfit-case-study .flow-step-number,
.km-brightfit-case-study .flow-type,
.km-brightfit-case-study .flow-note span,
.km-brightfit-case-study .learning-stack span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.km-brightfit-case-study .project-meta strong {
  display: block;
  max-width: 250px;
  margin-top: 0.75rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.18;
}

.km-brightfit-case-study .section {
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 8rem) 0 0;
}

.km-brightfit-case-study .section-heading {
  display: block;
  margin-bottom: clamp(2.4rem, 5vw, 4.8rem);
}

.km-brightfit-case-study .section-heading h2 {
  max-width: 1160px;
  font-size: clamp(2.2rem, 4.8vw, 5.8rem);
  line-height: 0.94;
}

.km-brightfit-case-study .flow-step h3,
.km-brightfit-case-study .feature-copy h2,
.km-brightfit-case-study .component-copy h3,
.km-brightfit-case-study .learning-stack p,
.km-brightfit-case-study .score-panel p {
  color: var(--text);
}

.km-brightfit-case-study .flow-step p:not(.flow-type),
.km-brightfit-case-study .feature-copy p,
.km-brightfit-case-study .insight-list,
.km-brightfit-case-study .learning-copy,
.km-brightfit-case-study .takeaway p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.km-brightfit-case-study .flow-canvas {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    rgba(13, 16, 16, 0.94);
  background-size: 34px 34px, 34px 34px, auto, auto;
}

.km-brightfit-case-study .flow-canvas::before {
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(90deg, rgba(49, 248, 188, 0.65) 0 11px, transparent 11px 20px);
  transform: translateY(-50%);
}

.km-brightfit-case-study .flow-map {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.2rem);
  margin: 0;
  padding: clamp(4.8rem, 8vw, 6.2rem) 0 clamp(4rem, 7vw, 5.2rem);
  list-style: none;
}

.km-brightfit-case-study .flow-step {
  position: relative;
  display: grid;
  align-content: start;
  min-height: clamp(370px, 35vw, 500px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 36%),
    rgba(17, 19, 19, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.km-brightfit-case-study .flow-step:nth-child(even) {
  transform: translateY(2.6rem);
}

.km-brightfit-case-study .flow-step::before {
  position: absolute;
  top: 50%;
  left: -1px;
  z-index: 2;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(8, 9, 9, 0.96);
  border-radius: 999px;
  content: "";
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(49, 248, 188, 0.14);
  transform: translate(-50%, -50%);
}

.km-brightfit-case-study .flow-step:first-child::before {
  left: 0.9rem;
}

.km-brightfit-case-study .flow-step::after {
  position: absolute;
  top: 50%;
  right: -1px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  content: "";
  transform: translate(30%, -50%) rotate(45deg);
}

.km-brightfit-case-study .flow-step:last-child::after {
  display: none;
}

.km-brightfit-case-study .flow-step figure {
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.km-brightfit-case-study .flow-step img {
  width: 100%;
  height: clamp(155px, 14vw, 230px);
  object-fit: cover;
  object-position: top center;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.1, 1), filter 500ms ease;
}

.km-brightfit-case-study .flow-step:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.045);
}

.km-brightfit-case-study .flow-step > div {
  padding: clamp(1rem, 1.7vw, 1.4rem);
}

.km-brightfit-case-study .flow-step-number {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #061111;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.24);
}

.km-brightfit-case-study .flow-type {
  margin: 0;
}

.km-brightfit-case-study .flow-step h3 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(1.25rem, 1.7vw, 1.8rem);
  line-height: 1.05;
}

.km-brightfit-case-study .flow-step p:not(.flow-type) {
  margin: 0;
}

.km-brightfit-case-study .flow-note {
  position: absolute;
  z-index: 2;
  width: min(255px, 42%);
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 237, 38, 0.11);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.km-brightfit-case-study .flow-note span {
  display: block;
  color: var(--yellow);
}

.km-brightfit-case-study .flow-note p {
  margin-top: 0.35rem;
  color: var(--text);
  font-size: clamp(0.98rem, 1.25vw, 1.16rem);
  font-weight: 600;
  line-height: 1.25;
}

.km-brightfit-case-study .flow-note-start {
  top: 1rem;
  left: clamp(1rem, 3vw, 2.2rem);
  transform: rotate(-1.2deg);
}

.km-brightfit-case-study .flow-note-end {
  right: clamp(1rem, 3vw, 2.2rem);
  bottom: 1rem;
  background: rgba(223, 11, 101, 0.12);
  transform: rotate(1.1deg);
}

.km-brightfit-case-study .flow-note-end span {
  color: #ff9ac2;
}

.km-brightfit-case-study .feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.km-brightfit-case-study .feature:not(.feature-left) {
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.44fr);
}

.km-brightfit-case-study .feature-copy {
  max-width: 510px;
}

.km-brightfit-case-study .feature-copy h2 {
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 0.95;
}

.km-brightfit-case-study .feature-copy p {
  margin-top: 1.3rem;
}

.km-brightfit-case-study .insight-list {
  display: grid;
  gap: 0.9rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.km-brightfit-case-study .insight-list li {
  position: relative;
  padding-left: 1.45rem;
}

.km-brightfit-case-study .insight-list li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: linear-gradient(130deg, var(--mint), var(--blue));
}

.km-brightfit-case-study .screen-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.km-brightfit-case-study .screen-frame::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.km-brightfit-case-study .screen-frame img {
  width: 100%;
  height: auto;
}

.km-brightfit-case-study .screen-frame.large {
  max-height: 740px;
}

.km-brightfit-case-study .screen-frame.large img {
  min-height: 520px;
  object-fit: cover;
  object-position: top center;
}

.km-brightfit-case-study .screen-frame figcaption,
.km-brightfit-case-study .image-band figcaption,
.km-brightfit-case-study .artifact-wall figcaption {
  padding: 0.75rem 0.95rem;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: rgba(8, 9, 9, 0.78);
  border-top: 1px solid var(--line);
}

.km-brightfit-case-study .image-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.km-brightfit-case-study .image-band figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 19, 0.9);
}

.km-brightfit-case-study .image-band img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
}

.km-brightfit-case-study .score-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.3fr);
  gap: 1rem;
  align-items: start;
}

.km-brightfit-case-study .score-layout .screen-frame {
  max-height: 860px;
}

.km-brightfit-case-study .score-layout .screen-frame img {
  object-fit: cover;
  object-position: top center;
}

.km-brightfit-case-study .score-panel {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 139, 12, 0.2), transparent 15rem),
    rgba(17, 19, 19, 0.92);
  box-shadow: var(--shadow);
}

.km-brightfit-case-study .score-stat {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.km-brightfit-case-study .score-stat span {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.km-brightfit-case-study .score-stat strong {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.84;
}

.km-brightfit-case-study .mini-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.km-brightfit-case-study .mini-metrics span {
  padding: 0.48rem 0.62rem;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.km-brightfit-case-study .learning-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(280px, 0.34fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.km-brightfit-case-study .screen-frame.tall {
  max-height: 920px;
}

.km-brightfit-case-study .screen-frame.tall img,
.km-brightfit-case-study .artifact-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.km-brightfit-case-study .learning-copy {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 1.2rem;
}

.km-brightfit-case-study .learning-copy > p {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 19, 19, 0.9);
  box-shadow: var(--shadow);
}

.km-brightfit-case-study .learning-stack {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.km-brightfit-case-study .learning-stack article {
  padding: 1.25rem;
  background: rgba(17, 19, 19, 0.92);
}

.km-brightfit-case-study .learning-stack p {
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.48;
}

.km-brightfit-case-study .system-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}

.km-brightfit-case-study .palette {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 0.75rem;
}

.km-brightfit-case-study .palette span {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: end;
  padding: 0.8rem;
  overflow: hidden;
  color: #0b1010;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--swatch);
  border-radius: var(--radius);
}

.km-brightfit-case-study .palette span:first-child,
.km-brightfit-case-study .palette span:nth-child(2),
.km-brightfit-case-study .palette span:nth-child(4) {
  color: var(--text);
}

.km-brightfit-case-study .responsive-section {
  width: 100%;
  overflow: visible;
}

.km-brightfit-case-study .responsive-section > .section-heading {
  width: min(1320px, calc(100% - 2rem));
  margin-right: auto;
  margin-left: auto;
}

.km-brightfit-case-study .component-scroll-stage {
  position: relative;
  min-height: 360vh;
  background:
    radial-gradient(circle at 18% 32%, rgba(49, 248, 188, 0.12), transparent 28rem),
    radial-gradient(circle at 76% 48%, rgba(223, 11, 101, 0.1), transparent 25rem);
}

.km-brightfit-case-study .component-sticky {
  position: sticky;
  top: 62px;
  display: grid;
  width: min(1320px, calc(100% - 2rem));
  min-height: calc(100vh - 62px);
  min-height: calc(100svh - 62px);
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.1rem, 3vw, 2rem);
  align-content: center;
  justify-items: center;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2.25rem) 0;
}

.km-brightfit-case-study .component-copy {
  max-width: 850px;
  text-align: center;
}

.km-brightfit-case-study .component-copy .eyebrow {
  justify-content: center;
}

.km-brightfit-case-study .component-copy h3 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2.2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.km-brightfit-case-study .component-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.km-brightfit-case-study .component-labels span {
  padding: 0.48rem 0.66rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.06);
  transition: color 240ms ease, background-color 240ms ease, transform 240ms ease;
}

.km-brightfit-case-study .component-labels span.is-active {
  color: #061111;
  background: var(--accent);
  transform: translateY(-2px);
}

.km-brightfit-case-study .component-sequence {
  --phone-width: min(325px, 72vw);

  display: grid;
  justify-items: center;
  margin: 0;
}

.km-brightfit-case-study .phone-shell {
  position: relative;
  width: var(--phone-width);
  aspect-ratio: 446 / 928;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: clamp(2.45rem, 7.5vw, 3.6rem);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 16%),
    linear-gradient(155deg, #252a2b 0%, #070808 42%, #191d1e 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.08),
    inset 0 0 0 7px rgba(0, 0, 0, 0.8),
    0 42px 95px rgba(0, 0, 0, 0.44);
}

.km-brightfit-case-study .phone-screen {
  position: absolute;
  top: 1.72%;
  right: 3.6%;
  bottom: 1.72%;
  left: 3.6%;
  overflow: hidden;
  border-radius: clamp(1.9rem, 6.2vw, 2.7rem);
  background: #f7f8f6;
}

.km-brightfit-case-study .phone-island {
  position: absolute;
  top: 3.15%;
  left: 50%;
  z-index: 4;
  width: 30%;
  height: 3.2%;
  border-radius: 999px;
  background: #050606;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
}

.km-brightfit-case-study .phone-button {
  position: absolute;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4c5253, #151718);
}

.km-brightfit-case-study .phone-button-left-top {
  top: 18%;
  left: -4px;
  height: 6.5%;
}

.km-brightfit-case-study .phone-button-left-bottom {
  top: 28%;
  left: -4px;
  height: 10%;
}

.km-brightfit-case-study .phone-button-right {
  top: 25%;
  right: -4px;
  height: 13%;
}

.km-brightfit-case-study .component-state {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: translateY(34px) scale(0.96);
  transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.km-brightfit-case-study .component-state.is-past {
  transform: translateY(-34px) scale(0.97);
}

.km-brightfit-case-study .component-state.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.km-brightfit-case-study .component-sequence figcaption {
  display: flex;
  width: var(--phone-width);
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.km-brightfit-case-study .component-sequence figcaption i {
  display: block;
  flex: 1;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.km-brightfit-case-study .component-sequence figcaption b {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--mint), var(--blue), var(--orange), var(--pink));
  transform: scaleX(var(--component-progress, 0));
  transform-origin: left center;
}

.km-brightfit-case-study .artifact-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: clamp(118px, 11vw, 168px);
  gap: clamp(0.8rem, 1.4vw, 1.25rem);
}

.km-brightfit-case-study .artifact-wall figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(17, 19, 19, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.km-brightfit-case-study .artifact-wall figure:nth-child(1) {
  grid-column: span 5;
  grid-row: span 3;
}

.km-brightfit-case-study .artifact-wall figure:nth-child(2) {
  grid-column: span 4;
  grid-row: span 4;
}

.km-brightfit-case-study .artifact-wall figure:nth-child(3) {
  grid-column: span 3;
  grid-row: span 3;
}

.km-brightfit-case-study .artifact-wall figure:nth-child(4) {
  grid-column: span 4;
  grid-row: span 4;
}

.km-brightfit-case-study .artifact-wall figure:nth-child(5) {
  grid-column: span 5;
  grid-row: span 3;
}

.km-brightfit-case-study .artifact-wall figure:nth-child(6) {
  grid-column: span 3;
  grid-row: span 4;
}

.km-brightfit-case-study .artifact-wall img {
  transform: scale(1.01);
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.1, 1), filter 500ms ease;
}

.km-brightfit-case-study .artifact-wall figure:hover img {
  filter: saturate(1.04) contrast(1.03);
  transform: scale(1.055);
}

.km-brightfit-case-study .artifact-wall figcaption {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 1.5rem 1rem 0.85rem;
  color: var(--text);
  background: linear-gradient(180deg, transparent, rgba(8, 9, 9, 0.86));
}

.km-brightfit-case-study .project-meta,
.km-brightfit-case-study .screen-frame,
.km-brightfit-case-study .image-band figure,
.km-brightfit-case-study .score-panel,
.km-brightfit-case-study .learning-copy > p,
.km-brightfit-case-study .learning-stack,
.km-brightfit-case-study .learning-stack article,
.km-brightfit-case-study .system-layout .screen-frame,
.km-brightfit-case-study .mini-metrics span {
  border: 0;
  border-radius: 0;
}

.km-brightfit-case-study .project-meta,
.km-brightfit-case-study .learning-stack {
  gap: 1rem;
  background: transparent;
}

.km-brightfit-case-study .project-meta,
.km-brightfit-case-study .screen-frame,
.km-brightfit-case-study .score-panel,
.km-brightfit-case-study .learning-copy > p {
  box-shadow: none;
}

.km-brightfit-case-study .screen-frame::before {
  display: none;
}

.km-brightfit-case-study .screen-frame figcaption,
.km-brightfit-case-study .image-band figcaption,
.km-brightfit-case-study .artifact-wall figcaption {
  border-top: 0;
}

.km-brightfit-case-study .image-zoomable {
  cursor: zoom-in;
}

.km-brightfit-case-study .image-zoomable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.km-brightfit-case-study.km-brightfit-lightbox-open {
  overflow: hidden;
}

body.km-brightfit-lightbox-open {
  overflow: hidden;
}

.km-brightfit-case-study .lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2.4rem);
  pointer-events: none;
  background: rgba(8, 9, 9, 0.84);
  backdrop-filter: blur(18px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.km-brightfit-case-study .lightbox.is-open {
  pointer-events: auto;
  opacity: 1;
}

.km-brightfit-case-study .lightbox-figure {
  display: grid;
  width: min(100%, 1360px);
  max-height: calc(100vh - 3rem);
  max-height: calc(100svh - 3rem);
  gap: 0.9rem;
  justify-items: center;
  margin: 0;
  transform: scale(0.985);
  transition: transform 240ms cubic-bezier(0.2, 0.7, 0.1, 1);
}

.km-brightfit-case-study .lightbox.is-open .lightbox-figure {
  transform: scale(1);
}

.km-brightfit-case-study .lightbox-image {
  max-width: 100%;
  max-height: calc(100vh - 7rem);
  max-height: calc(100svh - 7rem);
  border-radius: 6px;
  object-fit: contain;
  background: #f7f8f6;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.5);
}

.km-brightfit-case-study .lightbox-caption {
  max-width: min(860px, 100%);
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: center;
}

.km-brightfit-case-study .lightbox-caption:empty {
  display: none;
}

.km-brightfit-case-study .lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.35rem);
  right: clamp(0.75rem, 2vw, 1.35rem);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 9, 0.72);
  backdrop-filter: blur(12px);
}

.km-brightfit-case-study .lightbox-close::before,
.km-brightfit-case-study .lightbox-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  content: "";
  background: var(--text);
  transform-origin: center;
}

.km-brightfit-case-study .lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.km-brightfit-case-study .lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.km-brightfit-case-study .lightbox-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.km-brightfit-case-study .takeaway {
  width: 100%;
  margin-top: clamp(5rem, 9vw, 8rem);
  padding: clamp(5rem, 9vw, 8rem) 1rem;
  background:
    linear-gradient(180deg, rgba(8, 9, 9, 0), #080909 18%),
    radial-gradient(circle at 20% 20%, rgba(49, 248, 188, 0.16), transparent 28rem),
    radial-gradient(circle at 78% 42%, rgba(255, 139, 12, 0.16), transparent 30rem);
}

.km-brightfit-case-study .takeaway-inner {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.km-brightfit-case-study .takeaway .eyebrow::before {
  display: none;
}

.km-brightfit-case-study .takeaway h2 {
  font-size: clamp(2.4rem, 5.6vw, 7rem);
  line-height: 0.94;
}

.km-brightfit-case-study .takeaway p:not(.eyebrow) {
  max-width: 720px;
  margin: 1.6rem auto 0;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
}

.km-brightfit-case-study .portfolio-link {
  display: inline-flex;
  align-items: center;
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  color: #061111;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--accent);
}

.km-brightfit-case-study .portfolio-link:hover,
.km-brightfit-case-study .portfolio-link:focus-visible {
  background: var(--text);
}

.km-brightfit-case-study .portfolio-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.km-brightfit-case-study .reveal {
  opacity: 1;
}

.km-brightfit-case-study.km-brightfit-js .reveal {
  transform: translateY(28px);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.1, 1), opacity 700ms ease;
}

.km-brightfit-case-study.km-brightfit-js .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1180px) {
  .km-brightfit-case-study .project-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .km-brightfit-case-study .section-heading,
  .km-brightfit-case-study .feature,
  .km-brightfit-case-study .feature:not(.feature-left),
  .km-brightfit-case-study .score-layout,
  .km-brightfit-case-study .learning-grid,
  .km-brightfit-case-study .system-layout {
    grid-template-columns: 1fr;
  }

  .km-brightfit-case-study .flow-canvas::before {
    display: none;
  }

  .km-brightfit-case-study .flow-step::before,
  .km-brightfit-case-study .flow-step::after {
    display: none;
  }

  .km-brightfit-case-study .flow-note {
    position: static;
    width: 100%;
    transform: none;
  }

  .km-brightfit-case-study .flow-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 1rem 0;
  }

  .km-brightfit-case-study .flow-step:nth-child(even) {
    transform: none;
  }

  .km-brightfit-case-study .feature-copy {
    max-width: 760px;
  }

  .km-brightfit-case-study .score-panel,
  .km-brightfit-case-study .learning-copy,
  .km-brightfit-case-study .palette {
    position: static;
  }

  .km-brightfit-case-study .artifact-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: clamp(112px, 18vw, 158px);
  }

  .km-brightfit-case-study .artifact-wall figure:nth-child(1),
  .km-brightfit-case-study .artifact-wall figure:nth-child(2),
  .km-brightfit-case-study .artifact-wall figure:nth-child(5),
  .km-brightfit-case-study .artifact-wall figure:nth-child(6) {
    grid-column: span 3;
    grid-row: span 3;
  }

  .km-brightfit-case-study .artifact-wall figure:nth-child(3) {
    grid-column: span 2;
    grid-row: span 3;
  }

  .km-brightfit-case-study .artifact-wall figure:nth-child(4) {
    grid-column: span 4;
    grid-row: span 3;
  }
}

@media (max-width: 820px) {
  .km-brightfit-case-study .site-chrome {
    min-height: 5.625rem;
  }

  .km-brightfit-case-study .site-badge {
    top: 2rem;
    left: 3rem;
    width: 62px;
  }

  .km-brightfit-case-study.is-scrolled .site-badge {
    top: 1rem;
    left: 1.5rem;
    width: 48px;
  }

  .km-brightfit-case-study .hero {
    min-height: 84vh;
  }

  .km-brightfit-case-study .hero-media img {
    object-position: 58% top;
  }

  .km-brightfit-case-study .hero-content {
    padding-top: 8rem;
  }

  .km-brightfit-case-study .hero h1 {
    max-width: 13ch;
    font-size: clamp(2.6rem, 13vw, 5rem);
  }

  .km-brightfit-case-study .project-meta,
  .km-brightfit-case-study .image-band {
    grid-template-columns: 1fr;
  }

  .km-brightfit-case-study .flow-map {
    grid-template-columns: 1fr;
  }

  .km-brightfit-case-study .flow-step {
    min-height: 0;
    grid-template-columns: minmax(150px, 0.42fr) minmax(0, 0.58fr);
  }

  .km-brightfit-case-study .flow-step figure {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 0;
  }

  .km-brightfit-case-study .flow-step img {
    height: 100%;
    min-height: 220px;
  }

  .km-brightfit-case-study .screen-frame.large {
    max-height: 620px;
  }

  .km-brightfit-case-study .screen-frame.large img {
    min-height: 430px;
  }

  .km-brightfit-case-study .component-scroll-stage {
    min-height: 330vh;
  }

  .km-brightfit-case-study .component-sticky {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    align-content: center;
  }

  .km-brightfit-case-study .component-copy h3 {
    max-width: 680px;
  }

  .km-brightfit-case-study .component-sequence {
    --phone-width: min(295px, 72vw);
  }

  .km-brightfit-case-study .artifact-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(140px, 31vw, 210px);
  }

  .km-brightfit-case-study .artifact-wall figure,
  .km-brightfit-case-study .artifact-wall figure:nth-child(n) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .km-brightfit-case-study .artifact-wall figure:nth-child(2),
  .km-brightfit-case-study .artifact-wall figure:nth-child(4) {
    grid-row: span 3;
  }

  .km-brightfit-case-study .artifact-wall figure:nth-child(1),
  .km-brightfit-case-study .artifact-wall figure:nth-child(5) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 560px) {
  .km-brightfit-case-study .hero-content,
  .km-brightfit-case-study .section,
  .km-brightfit-case-study .project-meta {
    width: min(100% - 1rem, 1320px);
  }

  .km-brightfit-case-study .hero-lede {
    max-width: 92%;
  }

  .km-brightfit-case-study .project-meta div {
    min-height: 118px;
  }

  .km-brightfit-case-study .section {
    padding-top: 4.2rem;
  }

  .km-brightfit-case-study .section-heading {
    margin-bottom: 2rem;
  }

  .km-brightfit-case-study .section-heading h2,
  .km-brightfit-case-study .feature-copy h2,
  .km-brightfit-case-study .takeaway h2 {
    font-size: clamp(2.05rem, 13vw, 4rem);
  }

  .km-brightfit-case-study .score-stat strong {
    font-size: 5rem;
  }

  .km-brightfit-case-study .palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .km-brightfit-case-study .responsive-section > .section-heading,
  .km-brightfit-case-study .component-sticky {
    width: min(100% - 1rem, 1320px);
  }

  .km-brightfit-case-study .component-scroll-stage {
    min-height: 300vh;
  }

  .km-brightfit-case-study .component-copy h3 {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .km-brightfit-case-study .component-labels {
    gap: 0.4rem;
  }

  .km-brightfit-case-study .component-labels span {
    padding: 0.42rem 0.5rem;
    font-size: 0.68rem;
  }

  .km-brightfit-case-study .component-sequence {
    --phone-width: min(245px, 70vw);
  }

  .km-brightfit-case-study .flow-canvas {
    padding: 0.75rem;
  }

  .km-brightfit-case-study .flow-note {
    padding: 0.85rem;
  }

  .km-brightfit-case-study .flow-step {
    grid-template-columns: 1fr;
  }

  .km-brightfit-case-study .flow-step figure {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .km-brightfit-case-study .flow-step img {
    height: 190px;
    min-height: 0;
  }

  .km-brightfit-case-study .artifact-wall {
    grid-template-columns: 1fr;
    grid-auto-rows: clamp(240px, 72vw, 360px);
  }

  .km-brightfit-case-study .artifact-wall figure,
  .km-brightfit-case-study .artifact-wall figure:nth-child(n) {
    grid-column: 1;
    grid-row: span 1;
  }
}

@media (max-height: 820px) {
  .km-brightfit-case-study .component-sticky {
    gap: 1rem;
    padding: 0.9rem 0;
  }

  .km-brightfit-case-study .component-copy h3 {
    font-size: clamp(1.25rem, 1.7vw, 1.9rem);
  }

  .km-brightfit-case-study .component-labels {
    margin-top: 0.75rem;
  }

  .km-brightfit-case-study .component-sequence {
    --phone-width: min(270px, 70vw);
  }

  .km-brightfit-case-study .component-sequence figcaption {
    margin-top: 0.75rem;
  }
}

@media (max-height: 720px) {
  .km-brightfit-case-study .component-copy .eyebrow {
    margin-bottom: 0.6rem;
  }

  .km-brightfit-case-study .component-labels span {
    padding: 0.38rem 0.5rem;
    font-size: 0.66rem;
  }

  .km-brightfit-case-study .component-sequence {
    --phone-width: min(230px, 64vw);
  }
}

@media (max-height: 640px) {
  .km-brightfit-case-study .component-sticky {
    gap: 0.65rem;
    padding: 0.45rem 0;
  }

  .km-brightfit-case-study .component-copy h3 {
    font-size: 1.05rem;
  }

  .km-brightfit-case-study .component-labels {
    display: none;
  }

  .km-brightfit-case-study .component-sequence {
    --phone-width: min(185px, 56vw);
  }

  .km-brightfit-case-study .component-sequence figcaption {
    margin-top: 0.45rem;
    font-size: 0.62rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .km-brightfit-case-study *,
  .km-brightfit-case-study *::before,
  .km-brightfit-case-study *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .km-brightfit-case-study.km-brightfit-js .reveal {
    transform: none;
    opacity: 1;
  }
}

body.single-portfolio .km-brightfit-case-study {
  color: var(--text) !important;
  background:
    radial-gradient(circle at 18% 8%, rgba(49, 248, 188, 0.16), transparent 28rem),
    radial-gradient(circle at 86% 18%, rgba(223, 11, 101, 0.12), transparent 26rem),
    linear-gradient(180deg, #080909 0%, #0a0d0d 42%, #080909 100%) !important;
  overflow: visible !important;
  overflow-x: visible !important;
}

body.single-portfolio.postid-353 {
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

body.single-portfolio.postid-353 #page-header-wrap,
body.single-portfolio.postid-353 #breadcrumbs {
  display: none !important;
}

body.single-portfolio .km-brightfit-case-study .responsive-section,
body.single-portfolio .km-brightfit-case-study .component-scroll-stage {
  overflow: visible !important;
}

body.single-portfolio .km-brightfit-case-study h1,
body.single-portfolio .km-brightfit-case-study h2,
body.single-portfolio .km-brightfit-case-study h3,
body.single-portfolio .km-brightfit-case-study h4,
body.single-portfolio .km-brightfit-case-study h5,
body.single-portfolio .km-brightfit-case-study h6 {
  color: var(--text) !important;
}

body.single-portfolio .km-brightfit-case-study .eyebrow,
body.single-portfolio .km-brightfit-case-study .project-meta span,
body.single-portfolio .km-brightfit-case-study .flow-step-number,
body.single-portfolio .km-brightfit-case-study .flow-type,
body.single-portfolio .km-brightfit-case-study .learning-stack span,
body.single-portfolio .km-brightfit-case-study .score-stat span {
  color: var(--accent) !important;
}

body.single-portfolio .km-brightfit-case-study .hero-lede,
body.single-portfolio .km-brightfit-case-study .flow-step p:not(.flow-type),
body.single-portfolio .km-brightfit-case-study .feature-copy p,
body.single-portfolio .km-brightfit-case-study .insight-list,
body.single-portfolio .km-brightfit-case-study .learning-copy,
body.single-portfolio .km-brightfit-case-study .takeaway p,
body.single-portfolio .km-brightfit-case-study figcaption {
  color: var(--muted) !important;
}

body.single-portfolio .km-brightfit-case-study .takeaway p:not(.eyebrow) {
  color: var(--soft) !important;
}

body.single-portfolio .km-brightfit-case-study .artifact-wall figcaption,
body.single-portfolio .km-brightfit-case-study .flow-note p {
  color: var(--text) !important;
}

body.single-portfolio .km-brightfit-case-study .flow-note span {
  color: var(--yellow) !important;
}

body.single-portfolio .km-brightfit-case-study .flow-note-end span {
  color: #ff9ac2 !important;
}
