body {
  background-color: #01010D;
}

.epic-nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.epic-nav .nav-logo {
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -1px;
  text-transform: none;
}

.epic-nav .nav-logo span {
  color: #8b9cb5;
}

.epic-nav .nav-connect {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border: 1px solid #a9c6fa40;
  border-radius: 999px;
  background: #142033;
  color: #e6edf7;
  font-size: 13px;
  text-decoration: none;
}

.epic-nav .nav-connect:hover {
  border-color: #a9c6fa80;
  background: #243553;
}

.case-study-page {
  padding-top: 108px;
}

.epic-hero {
  position: relative;
  width: 100%;
  margin: 0 auto 112px;
  isolation: isolate;
  text-align: center;
}

.epic-hero::before,
.epic-hero::after {
  position: absolute;
  top: 310px;
  z-index: -1;
  width: 56vw;
  height: 620px;
  border-radius: 999px;
  content: '';
  filter: blur(68px);
  opacity: 0.42;
  pointer-events: none;
}

.epic-hero::before {
  left: calc(50% - 50vw);
  background: radial-gradient(ellipse at left center, rgba(120, 172, 255, 0.72), rgba(54, 105, 255, 0.3) 48%, rgba(92, 74, 255, 0.08) 78%, transparent 100%);
}

.epic-hero::after {
  right: calc(50% - 50vw);
  background: radial-gradient(ellipse at right center, rgba(194, 142, 255, 0.74), rgba(139, 65, 255, 0.32) 48%, rgba(103, 57, 255, 0.08) 78%, transparent 100%);
}

.epic-hero__title {
  position: relative;
  color: #f7f5ff;
  font-weight: 100;
  isolation: isolate;
  line-height: 0.98;
}

.epic-hero__title::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: min(76vw, 720px);
  height: 190px;
  background: radial-gradient(ellipse, rgba(130, 84, 255, 0.28) 0%, rgba(71, 111, 255, 0.13) 48%, transparent 74%);
  content: '';
  filter: blur(34px);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.epic-hero__title-primary,
.epic-hero__title-accent {
  display: block;
}

.epic-hero__title-primary {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(44px, 6.7vw, 78px);
  letter-spacing: -0.035em;
}

.epic-hero__title-accent {
  margin-top: 12px;
  font-family: 'Lato', sans-serif;
  font-size: clamp(48px, 7.2vw, 86px);
  font-style: italic;
  font-weight: 200;
  letter-spacing: -0.045em;
}

.epic-hero__subtitle {
  margin-top: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.epic-hero__visual {
  position: relative;
  left: 50%;
  z-index: 0;
  width: min(calc(100% + 72px), 1020px);
  margin: 86px auto 0;
  isolation: isolate;
  transform: translateX(-50%);
}

.epic-hero__visual::before {
  position: absolute;
  top: 7%;
  right: 5%;
  bottom: 1%;
  left: 5%;
  z-index: -1;
  border-radius: 30%;
  background: rgba(170, 127, 250, 0.8);
  content: '';
  filter: blur(54px);
  opacity: 0.9;
}

.epic-hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 20px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56), 0 0 30px rgba(225, 209, 255, 0.38);
}

.epic-intro {
  width: 100%;
  margin: 0 auto 72px;
  text-align: center;
}

.intro-h2 {
  color: var(--text-primary);
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 300;
  line-height: 1.35;
}

.intro-body {
  max-width: 100%;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

.epic-layer-stack {
  position: relative;
  height: 116vh;
  margin: -48px auto 96px;
}

.epic-layer-stack__sticky {
  position: sticky;
  top: 50px;
  display: flex;
  min-height: calc(100vh - 160px);
  align-items: center;
}

.epic-layer-stack__stage {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  overflow: visible;
  isolation: isolate;
}

.epic-layer-stack__group {
  position: relative;
  min-width: 0;
  aspect-ratio: 1 / 0.82;
}

.epic-layer-stack__group--right {
  aspect-ratio: 1 / 1.25;
}

.epic-layer-stack__image {
  position: absolute;
  display: block;
  height: auto;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.34));
  will-change: transform;
}

.epic-layer-stack__image--left-one {
  top: 1%;
  left: 0;
  z-index: 1;
  width: 102%;
}

.epic-layer-stack__image--left-two {
  top: 7%;
  left: 5%;
  z-index: 2;
  width: 107%;
}

.epic-layer-stack__image--left-three {
  top: 13%;
  left: 10%;
  z-index: 3;
  width: 105%;
}

.epic-layer-stack__image--right-one {
  top: -1%;
  left: 15%;
  z-index: 1;
  width: 94%;
}

.epic-layer-stack__image--right-two {
  top: 6%;
  left: 22%;
  z-index: 2;
  width: 94%;
}

.epic-component-assembly {
  position: relative;
  height: 124vh;
  margin-top: 56px;
}

.epic-component-assembly__sticky {
  position: sticky;
  top: 96px;
  display: flex;
  min-height: calc(100vh - 176px);
  align-items: center;
}

.epic-component-assembly__stage {
  position: relative;
  width: 92%;
  max-width: 940px;
  margin: 0 auto;
  aspect-ratio: 1834 / 990;
  overflow: visible;
  isolation: isolate;
}

.epic-component-assembly__base,
.epic-component-assembly__layer,
.epic-component-assembly__layer img {
  display: block;
  user-select: none;
  pointer-events: none;
}

.epic-component-assembly__base {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
  opacity: 0;
  will-change: opacity;
}

.epic-component-assembly__layer {
  position: absolute;
  z-index: 2;
  transform-origin: center;
  will-change: transform;
}

.epic-component-assembly__layer img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.32));
}

.epic-component-assembly__label {
  position: absolute;
  top: 50%;
  left: calc(100% + 14px);
  z-index: 20;
  min-width: 132px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(11, 11, 11, 0.9);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transform: translateY(-50%);
  white-space: nowrap;
  will-change: opacity;
}

.epic-component-assembly__label::before {
  position: absolute;
  top: 50%;
  right: 100%;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
  content: "";
}

.epic-component-assembly__layer--two .epic-component-assembly__label,
.epic-component-assembly__layer--four .epic-component-assembly__label {
  right: calc(100% + 14px);
  left: auto;
}

.epic-component-assembly__layer--two .epic-component-assembly__label::before,
.epic-component-assembly__layer--four .epic-component-assembly__label::before {
  right: auto;
  left: 100%;
}

.epic-component-assembly__layer--one {
  top: 10.4%;
  left: 1.8%;
  width: 18%;
}

.epic-component-assembly__layer--two {
  top: 9.8%;
  left: 20.8%;
  width: 51.2%;
}

.epic-component-assembly__layer--three {
  top: 54.6%;
  left: 20.8%;
  z-index: 30;
  width: 51.15%;
}

.epic-component-assembly__layer--four {
  top: 10%;
  left: 73%;
  width: 25%;
}

.epic-labeled-visual {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
}

.epic-labeled-visual img {
  display: block;
  width: 90%;
  margin-right: auto;
  margin-left: auto;
  height: auto;
}

.epic-video-visual {
  display: flex;
  flex-direction: column;
  margin-top: 56px;
  padding: 0;
  overflow: hidden;
}

.epic-video-visual video {
  display: block;
  width: 100%;
  height: auto;
}

.epic-figure-caption {
  padding: 24px 32px 32px;
  text-align: left;
}

.epic-figure-caption .epic-body {
  max-width: 100%;
  font-size:14px;
  margin-top: 10px;
}

.epic-section {
  width: 100%;
  margin: 90px auto 96px;
}

.epic-information-surfacing {
  margin-top: 300px;
}

.epic-label {
  margin-bottom: 18px;
  color: rgb(255,255,255,0.80);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
}

.epic-title {
  color: var(--text-primary);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.16;
}

.epic-title span {
  display: block;
}

.epic-header {
  color: var(--text-primary);
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.16;
}

.epic-header span {
  display: block;
}

.epic-test-plans {
  margin-top: 40px;
  padding: 36px;
  border: 1px solid rgba(173, 202, 197, 0.12);
  border-radius: 22px;
  background: rgba(173, 202, 197, 0.07);
}

.epic-outcomes__dimensions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.epic-outcome-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.02));
}

.epic-outcome-card__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.epic-outcome-card__number {
  color: #adcac5;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.epic-outcome-card__method {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.epic-outcome-card__measure {
  margin-top: auto;
  padding-top: 24px;
  color: #adcac5;
  font-size: 12px;
  line-height: 1.6;
}

.epic-outcome-card .epic-body {
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .epic-test-plans {
    padding: 24px;
  }

  .epic-outcomes__dimensions {
    grid-template-columns: 1fr;
  }

  .epic-outcome-card {
    padding: 24px;
  }

}

.epic-body {
  max-width: 680px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
}

.epic-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  margin-top: 56px;
}

.epic-two-column__visual {
  display: flex;
  flex-direction: column;
  margin-top: 0;
  overflow: hidden;
}

.epic-two-column__visual img {
  display: block;
  width: 100%;
  height: auto;
}

.epic-image-label {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.epic-two-column__copy {
  min-width: 0;
}

.epic-h3 {
  color: var(--text-primary);
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 500;
  line-height: 1.25;
}

.epic-h3 + .epic-body {
  margin-top: 18px;
}

.epic-sample-citation {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .case-study-page {
    padding-top: 88px;
  }

  .epic-hero {
    margin-bottom: 80px;
  }

  .epic-hero::before,
  .epic-hero::after {
    top: 270px;
    width: 58vw;
    height: 420px;
    filter: blur(46px);
    opacity: 0.34;
  }

  .epic-hero__title {
    line-height: 1.03;
  }

  .epic-hero__title-accent {
    margin-top: 8px;
  }

  .epic-hero__subtitle {
    max-width: 430px;
    margin: 26px auto 0;
  }

  .epic-hero__visual {
    left: auto;
    width: 100%;
    margin-top: 58px;
    transform: none;
  }

  .epic-hero__visual::before {
    filter: blur(34px);
  }

  .epic-hero__visual img {
    border-radius: 12px;
  }

  .epic-layer-stack {
    height: 108vh;
    margin: -32px auto 72px;
  }

  .epic-layer-stack__sticky {
    top: 56px;
    min-height: calc(100vh - 136px);
  }

  .epic-layer-stack__stage {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .epic-layer-stack__group {
    width: 92%;
    margin: 0 auto;
  }

  .epic-layer-stack__group--right {
    width: 54%;
  }

  .epic-layer-stack__image {
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.3));
  }

  .epic-component-assembly {
    height: 108vh;
    margin-top: 48px;
  }

  .epic-component-assembly__sticky {
    top: 84px;
    min-height: calc(100vh - 148px);
  }

  .epic-component-assembly__stage {
    width: 98%;
    max-width: none;
  }

  .epic-component-assembly__layer {
    position: absolute;
  }

  .epic-component-assembly__layer img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.28));
  }

  .epic-component-assembly__label {
    min-width: 96px;
    padding: 6px 8px;
    font-size: 9px;
  }

  .epic-two-column {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .epic-layer-stack {
    height: auto;
  }

  .epic-layer-stack__sticky {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .epic-component-assembly {
    height: auto;
  }

  .epic-component-assembly__sticky {
    position: relative;
    top: auto;
    min-height: 0;
  }
}
